opsd configuration using Packet Tracer
opsd configuration using Packet Tracer
In Packet Tracer, you can configure an Open Shortest Path First (OSPF) dynamic
routing protocol to allow routers to exchange routing information. Here's how to
configure OSPF in a simple topology.
Scenario
1. Assign IP Addresses
Router2:
interface GigabitEthernet0/0
ip address 192.168.2.1 255.255.255.0
no shutdown
interface Serial0/0/0
ip address 11.0.0.1 255.0.0.0
no shutdown
Router3:
interface GigabitEthernet0/0
ip address 192.168.3.1 255.255.255.0
no shutdown
interface Serial0/0/0
ip address 11.0.0.2 255.0.0.0
no shutdown
interface Serial0/0/1
ip address 12.0.0.1 255.0.0.0
no shutdown
Router4:
interface GigabitEthernet0/0
ip address 192.168.4.1 255.255.255.0
no shutdown
interface Serial0/0/0
ip address 12.0.0.2 255.0.0.0
no shutdown
interface Serial0/0/1
ip address 13.0.0.1 255.0.0.0
no shutdown
Router5:
interface GigabitEthernet0/0
ip address 192.168.5.1 255.255.255.0
no shutdown
interface Serial0/0/1
ip address 13.0.0.2 255.0.0.0
no shutdown
Router2:
router ospf 1
network 192.168.2.0 0.0.0.255 area 1
network 11.0.0.0 0.255.255.255 area 1
Router3:
router ospf 1
network 192.168.3.0 0.0.0.255 area 1
network 11.0.0.0 0.255.255.255 area 1
network 12.0.0.0 0.255.255.255 area 1
Router4:
router ospf 1
router ospf 1
network 192.168.5.0 0.0.0.255 area 1
network 13.0.0.0 0.255.255.255 area 1
After configuring OSPF, verify that neighboring routers form OSPF adjacencies.
Command:
show ip route
You should see OSPF routes with an "O" flag in the routing table.
5. Test Connectivity
Notes
The wildcard mask (e.g., 0.0.0.255) represents the range of IPs for a given
subnet.
OSPF Area 0 is the backbone area and is required for all OSPF implementations.
Ensure all interfaces are up using no shutdown