OSPFv2
Cheat sheet · https://pcornel.dk/topic.php?topic=628
Answer
OSPFv2 is OSPF for IPv4. It is configured with a process ID (local only), a router ID (unique 32-bit value), and interfaces placed in areas — with network statements or ip ospf <process> area <area> on the interface.
Remember
The process ID need not match between routers; the area, timers and subnet must. The router ID must be unique in the domain — set it explicitly. Interfaces facing hosts should be passive.
First checks
show ip ospf neighbor— neighbours with state and DR/BDR role.show ip ospf interface brief— OSPF interfaces, area, cost, state.show ip ospf interface <interface>— timers, network type, priority, authentication.show ip ospf database— the LSAs per area.show ip route ospf— the routes OSPF installed.show ip protocols— router ID, areas, passive interfaces.
Commands
ip ospf costip ospf priority 0–255ip ospf hello-intervalip ospf message-digest-key <id> md5 <key>ip ospf <pid> area <id>ip ospf authentication-keyshow ip ospf interfaceshow ip ospf neighborshow ip ospf databaseshow ip route ospf
Verify in this order
interface in OSPF and not passive → hellos match → 2WAY → DR/BDR elected on broadcast links → database exchange → FULL → LSAs in the database → SPF → routes installed
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
OSPFv2 · operational reference
| OSPFv2 layer | Canonical evidence | What it proves |
|---|---|---|
| Interface | show ip ospf interface | Area/type/timers/cost/local state |
| Neighbor | show ip ospf neighbor | Adjacency/FSM state |
| LSDB | show ip ospf database | LSA presence and ownership |
| RIB | show ip route ospf | Installed OSPF routes |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=628