Objective
Configure Open Shortest Path First (OSPF) in a single area (Area 0) to establish connectivity between routers.
Lab Topology
Topology: R1, R2, and R3 connected via serial or ethernet links.
Task 1 – OSPF Configuration on R1
R1(config)# router ospf 1 R1(config-router)# router-id 1.1.1.1 R1(config-router)# network 10.1.1.0 0.0.0.255 area 0 R1(config-router)# network 192.168.12.0 0.0.0.3 area 0
Task 2 – OSPF Configuration on R2
R2(config)# router ospf 1 R2(config-router)# router-id 2.2.2.2 R2(config-router)# network 10.2.2.0 0.0.0.255 area 0 R2(config-router)# network 192.168.12.0 0.0.0.3 area 0 R2(config-router)# network 192.168.23.0 0.0.0.3 area 0
Task 3 – OSPF Configuration on R3
R3(config)# router ospf 1 R3(config-router)# router-id 3.3.3.3 R3(config-router)# network 10.3.3.0 0.0.0.255 area 0 R3(config-router)# network 192.168.23.0 0.0.0.3 area 0
Task 4 – Verification
Verify neighbor adjacencies and routing tables.
R2# show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 1.1.1.1 0 FULL/ - 00:00:32 192.168.12.1 Serial0/0/0 3.3.3.3 0 FULL/ - 00:00:39 192.168.23.3 Serial0/0/1 R2# show ip route ospf 10.0.0.0/24 is subnetted, 3 subnets O 10.1.1.0 [110/65] via 192.168.12.1, 00:04:12, Serial0/0/0 O 10.3.3.0 [110/65] via 192.168.23.3, 00:03:55, Serial0/0/1