Pcornel
Networking · Network & Protocols › OSPF Protocol Reference

OSPF Neighbor States Reference

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

Back to the Topic

Answer

An OSPF neighbour passes through Down, Init, 2-Way, ExStart, Exchange, Loading and Full. The state shows how far the two routers have got in forming an adjacency.

Remember

Two states are final and healthy: Full, and 2-Way between two routers that are neither DR nor BDR. Init means the other side does not hear this router. ExStart that persists is almost always an MTU mismatch.

First checks

  • show ip ospf neighbor — state, role, dead time and interface per neighbour.
  • show ip ospf interface <interface> — area, network type, timers, DR and BDR.
  • show ip ospf neighbor detail — options and retransmission queue.
  • Run the same on the other router and compare.

Commands

debug ip ospf hello
show ip ospf neighbor
ip ospf priority 0
ip ospf mtu-ignore
ip ospf network
show ip ospf interface brief
show ip protocols
show ip ospf interface <interface>
show ip ospf neighbor detail
show interfaces <interface>
show ip ospf
show ip ospf request-list <neighbor-id> <interface>
show ip ospf retransmission-list
debug ip ospf adj
show ip ospf database
show ip route ospf

Verify in this order

interface in OSPF, not passive → Hello received (Init) → own router ID seen in neighbour's Hello (2-Way) → master/slave agreed (ExStart) → databases described (Exchange) → missing LSAs fetched (Loading) → Full

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=209

Confirmation

Confirm action

Continue?