Resolving OSPF Neighbor Adjacency Issues for CCNA
OSPF neighbor adjacencies fail if there are mismatched Hello/Dead timers, subnet masks, area IDs, authentication settings, or if interfaces are passive.
Mismatched OSPF Timers
For two OSPF routers to become neighbors, their **Hello** and **Dead timers** must match exactly. By default, these are 10 and 40 seconds on broadcast networks. If these are manually altered on one router but not the other, the adjacency will stay in the INIT state or fail to form. Use `show ip ospf interface` to verify timer settings.
Area ID and Subnet Mask Issues
OSPF requires routers on a shared segment to agree on the **Area ID** and **Subnet Mask**. If one interface is configured in Area 0 and the other in Area 1, they will not become neighbors. Similarly, differing subnet masks on the connected interfaces will prevent adjacency. Checking configurations with `show ip protocols` and `show run` helps spot these errors.
Passive Interfaces and Authentication
If an interface is configured as **passive** (`passive-interface`), it stops sending Hello packets, breaking any adjacencies on that link. Additionally, if OSPF authentication is enabled on one side but not the other, or if the keys mismatch, the routers will reject each other's OSPF packets. Validate with `show ip ospf neighbor` to see the current state.
❓ Frequently Asked Questions
What command shows the status of OSPF neighbors?
The 'show ip ospf neighbor' command displays neighbor IDs, priorities, state (e.g., FULL/BDR), and interface details.
Why would an OSPF neighbor get stuck in EXSTART state?
This usually indicates an MTU (Maximum Transmission Unit) mismatch between the two neighboring routers.
Do OSPF Router IDs need to match?
No, OSPF Router IDs must be unique. If two routers share the same Router ID, they cannot form an adjacency.