You are on page 1of 3

OSPF Configuration Lab Guide for 3 Cisco Routers

Step 1: Delete all Static Routes that you’ve configured earlier lab on R1,R2,R3 and R4

R1(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.2


R1(config)# no ip route 173.x.y.0 255.255.255.0 10.x.x.2
R1(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.2
R1(config)# no ip route 173.x.y.0 255.255.255.0 10.x.x.2
R1(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.2
R1(config)# no ip route 173.x.y.0 255.255.255.0 10.x.x.2
R1(config)# no ip route 10.x.x.4 255.255.255.252 10.x.x.2
R1(config)# no ip route 10.x.x.8 255.255.255.252 10.x.x.2

R2(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.1


R2(config)# no ip route 173.x.y.0 255.255.255.0 10.x.x.1
R2(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.6
R2(config)# no ip route 173.x.y.0 255.255.255.0 10.x.x.6
R2(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.6
R2(config)# no ip route 173.x.y.0 255.255.255.0 10.x.x.6
R2(config)# no ip route 10.x.x.8 255.255.255.252 10.x.x.6

R3(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.5


R3(config)# no ip route 173.x.y.0 255.255.255.0 10.x.x.5
R3(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.5
R3(config)# no ip route 173.x.y.0 255.255.255.0 10.x.x.5
R3(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.10
R3(config)# no ip route 173.x.y.0 255.255.255.0 10.x.x.10
R3(config)# no ip route 10.x.x.0 255.255.255.252 10.x.x.5

R4(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.9


R4(config)# no ip route 173.x.y.0 255.255.255.0 10.x.x.9
R4(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.9
R4(config)# no ip route 173.x.y.0 255.255.255.0 10.x.x.9
R4(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.9
R4(config)# no ip route 172.x.y.0 255.255.255.0 10.x.x.9
R4(config)# no ip route 10.x.x.0 255.255.255.252 10.x.x.9
R4(config)# no ip route 10.x.x.4 255.255.255.252 10.x.x.9

Step 2: After, deleting all Static Routes, Enable OSPF right away on all Routers. Make
sure you use same AS number and AREA 0 on all routers.

R1(config)# router ospf 1


R1(config-router)#network 172.x.y.0 0.0.0.255 area 0
R1(config-router)#network 173.x.y.0 0.0.0.255 area 0
R1(config-router)#network 10.x.x.0 0.0.0.3 area 0
R2(config)# router ospf 1
R2(config-router)#network 172.16.30.0 0.0.0.255 area 0
R2(config-router)#network 173.x.y.0 0.0.0.255 area 0
R2(config-router)#network 10.x.x.0 0.0.0.3 area 0
R2(config-router)#network 10.x.x.4 0.0.0.3 area 0

R3(config)# router ospf 1


R3(config-router)#network 172.16.50.0 0.0.0.255 area 0
R3(config-router)#network 172.16.60.0 0.0.0.255 area 0
R3(config-router)#network 10.x.x.4 0.0.0.3 area 0
R3(config-router)#network 10.x.x.8 0.0.0.3 area 0

R4(config)# router ospf 1


R4(config-router)#network 172.16.70.0 0.0.0.255 area 0
R4(config-router)#network 172.16.80.0 0.0.0.255 area 0
R3(config-router)#network 10.x.x.8 0.0.0.3 area 0

Step 4: Verify OSPF configuration

Verify OSPF configuration on all three routers. For example:

Router R1:
show ospf interface
Router R2:

show ospf interface

Router R3:
show ospf interface

This command should show that all interfaces are in the correct area and have an
adjacency status of UP.

Step 5: Test OSPF routing

Test OSPF routing by sending a ping from one router to another router in a different
area. For example:

Router R1:
ping R4 gateway
If the ping is successful, then OSPF routing is working properly.

Verifications
You can verify OSPF routing by checking the following:

 OSPF adjacencies are UP between all routers in the same area.


 OSPF routes are installed in the routing table of all routers.
 You can ping between routers in different areas.

Here are some additional verification commands:

show ospf neighbor


show ip route ospf

These commands will show you detailed information about OSPF adjacencies and
routes.

Once you have verified that OSPF is working properly, you can start using it to route
traffic between your networks.

You might also like