Overview
Configure OSPF single area, understand neighbor relationships, LSA flooding, and SPF calculations.
Prerequisites
IP routing basics, subnetting, understanding of link-state vs distance-vector protocols
Topology
Five routers in Area 0. Mix of point-to-point and broadcast networks. Multiple paths for ECMP demonstration.
OSPF
Routing
Link State
IGP
Lab Steps
Configure OSPF process 1, advertise networks into Area 0.
Checklist:
- OSPF process started
- Networks advertised
- Router IDs configured
Configurations
Basic OSPF Configuration
R1
R1cisco
router ospf 1
router-id 1.1.1.1
network 10.0.0.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
passive-interface Loopback0Verification
Verify OSPF neighbors
Commandscisco
show ip ospf neighbor
show ip ospf interface briefExpected Output:
Outputcisco
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 1 FULL/BDR 00:00:35 10.0.1.2 Gi0/0Check OSPF database and routes
Commandscisco
show ip ospf database
show ip route ospfExpected Output:
Outputcisco
O 10.2.0.0/24 [110/2] via 10.0.1.2, 00:05:23, GigabitEthernet0/0