Pcornel
Networking · Infrastructure

OSPF Adjacencies & Packet Types

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

Back to the Topic

Answer

OSPF routers form adjacencies through Hello, DBD, LSR, LSU and LSAck packets. Neighbours move through Down, Init, 2-Way, ExStart, Exchange, Loading and Full; only Full neighbours (and DR/BDR relationships on broadcast links) exchange the database.

Remember

Stuck in Init → one-way Hellos (ACL, multicast). Stuck in 2-Way between DROthers → normal on broadcast segments. Stuck in ExStart/Exchange → MTU mismatch. Hellos must match: area, subnet/mask, hello and dead timers, authentication, stub flags and network type.

First checks

Start with show ip ospf neighbor, show ip ospf interface <interface>, show ip ospf database, show interfaces <interface>, show logging | include OSPF. Compare the relevant peer, area, binding or forwarding dependency, then verify the original traffic consequence.

Commands

show ip interface brief
Compact IPv4 interface/address/protocol state.
show ip ospf neighbor
Display OSPF neighbor adjacencies.
show ip ospf database [router|network|summary|external]
Inspect OSPF LSDB and LSA types.
show ip ospf interface [interface]
Inspect area, network type, timers and cost.
show ip ospf database
show ip ospf interface

Verify in this order

Hellos exchanged with matching parameters → 2-Way → DR/BDR elected on broadcast links → ExStart/Exchange of DBDs (MTU must match) → Loading via LSR/LSU → 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=54

Confirmation

Confirm action

Continue?