This project simulates a multi-router OSPF (Open Shortest Path First) network with 4 routers connected via point-to-point links. Each router has its own LAN and participates in the same OSPF process (Process ID 10) in Area 0. The configuration includes OSPF routing, verification steps, ACLs for traffic filtering, and failover testing.
- Router0 β LAN: 192.168.1.0/24
- Router1 β LAN: 192.168.20.0/24
- Router2 β LAN: 192.168.30.0/24
- Router3 β LAN: 172.16.0.0/24
- R0 β R2: 10.0.0.0/30
- R0 β R3: 11.0.0.0/30
- R1 β R2: 12.0.0.0/30
- R1 β R3: 13.0.0.0/30
All routers are in OSPF Area 0 and use Process ID 10.
router ospf 10
router-id 5.5.5.5
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
network 10.0.0.0 0.0.0.3 area 0
network 11.0.0.0 0.0.0.3 area 0
show ip ospf neighbor
show ip route ospf
show ip ospf interface brief
To block ICMP (ping) from PC in 192.168.30.0/24 to 172.16.0.0/24, the following ACL is applied on Router2:
access-list 110 deny icmp 192.168.30.0 0.0.0.255 172.16.0.0 0.0.0.255
access-list 110 permit ip any any
interface GigabitEthernet0/2
ip access-group 110 out
To test OSPF failover:
- Shutdown one transit link (e.g.,
GigabitEthernet0/0on Router0):interface GigabitEthernet0/0 shutdown - Ping from a device in Router0's LAN to a PC in
192.168.30.0. - Verify traffic reroutes through the second path using:
show ip route ospf - Re-enable the interface:
no shutdown
- OSPF neighbors form successfully.
- All routers learn remote LANs via OSPF.
- ACL works as expected.
- Network continues to function after link failure (OSPF failover successful).
π Project Completed Successfully