OSPF Neighbors & Adjacencies
Cheat sheet · https://pcornel.dk/topic.php?topic=352
Answer
OSPF routers on the same link that exchange Hellos are neighbours; neighbours that go on to synchronise their databases are adjacent. Routes are calculated only across adjacencies.
Remember
Area, timers, authentication and area type must match — on Ethernet the mask too — and router IDs must differ. Full is the goal, except between two DROTHER routers, where 2-Way is correct. Ping proves reachability, not that the Hello parameters agree.
First checks
show ip ospf neighbor— router ID, state, role, dead time and interface.show ip ospf interface <interface>— area, network type and timers to compare with the other side.show ip ospf interface brief— which interfaces are in OSPF and their neighbour counts.
Commands
show ip ospf neighbor- Display OSPF neighbor adjacencies.
show ip ospf interface [interface]- Inspect area, network type, timers and cost.
show ipv6 ospf neighbor- Inspect OSPFv3 neighbor state.
show ip ospf neighbor detail- Detailed OSPF neighbor state, timers, retransmission and adjacency context.
show ip ospf neighbor <neighbor-id> detail- Inspect adjacency state, retransmit information and database exchange context.
ip ospf network point-to-pointshow ip ospf interface briefshow ip ospf interface <int>
Verify in this order
interface up and in OSPF → Hellos exchanged, parameters match → 2-Way → DR/BDR elected on multi-access links → databases synchronised → Full → kept alive by Hellos
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=352