OSPF (Open Shortest Path First)
Cheat sheet · https://pcornel.dk/topic.php?topic=1059
Answer
An OSPF RIB entry proves the router selected an OSPF-derived path for that prefix. Route code, administrative distance, metric, next hop and outgoing interface each describe a different part of that decision.
Remember
Adjacency → LSDB → SPF result → RIB selection → FIB/adjacency is a chain. Success at one stage does not prove the next.
First checks
show ip route ospf— O, O IA, O E1/E2 routesshow ip route <prefix>— [110/cost]
Commands
show ip ospf neighborshow ip ospf databaseshow ip route <prefix>
Verify in this order
LSDB → SPF → OSPF routes → RIB
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
OSPF operational reference
| Check | Known-good | Failure signature | Next boundary |
|---|---|---|---|
| Neighbor | Required adjacencies Full | Missing/unstable adjacency | OSPF neighbor |
| LSDB | Prefix/topology represented | LSA absent/wrong | Origination/area |
| OSPF candidate | SPF produces route | No candidate | SPF/policy |
| RIB | OSPF wins when intended | Other source selected | AD/selection |
| FIB | Next hop resolved | Unresolved/drop | Adjacency |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1059