Pcornel
Networking · Routing › OSPF › OSPF Fundamentals

Neighbor

Cheat sheet · https://pcornel.dk/topic.php?topic=1090

Back to the Topic

Answer

An OSPF neighbor is a router on the same link whose Hello packets have been received and accepted, which requires matching area, subnet, timers, authentication and stub flags. Neighbors then become Full or, on multiaccess links between DROTHERs, stay in 2-Way.

Remember

Do not infer service health from one command. For Neighbor, distinguish configured intent, protocol/security state, installed forwarding state and the original workload result.

First checks

  • show ip ospf neighbor — neighbour list and state
  • show ip ospf interface <interface> — hello/dead timers

Commands

show ip protocols
Display active routing protocol parameters.
ip ospf hello-interval <seconds>
Changes the OSPF Hello timer on an interface. Peers must be compatible.
ip ospf dead-interval <seconds>
Changes the OSPF Dead timer on an interface.
show ip ospf neighbor
show ip ospf interface <interface>
debug ip ospf hello

Verify in this order

hello sent → parameters match → neighbour listed → adjacency

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

Neighbor · technical reference

ItemMeaning
InitOne-way Hello awareness
2-WayBidirectional neighbor awareness
FullDatabase adjacency completed where required
Dead timerLiveness timer, not route-health proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1090

Confirmation

Confirm action

Continue?