RIB (Routing Information Base)
Cheat sheet · https://pcornel.dk/topic.php?topic=2602
Answer
The RIB (routing information base) is the routing table: the best route per prefix from all sources. The router builds the FIB — the CEF table — from it, and forwards with the FIB.
Remember
Each routing protocol has its own database; only the winner per prefix enters the RIB. The RIB holds next hops that may be recursive; the FIB holds them resolved to an interface and adjacency. A route in the RIB that is missing from CEF points to a resolution problem.
First checks
show ip route <prefix>— the RIB entry and its source.show ip route summary— routes per source and memory.show ip cef <prefix> detail— the FIB entry.show ip cef summary— the FIB as a whole.show ip protocols— what each protocol offers.
Commands
show ip route- IPv4 RIB routes and selected next hops.
show ip route <prefix>- Display the route the router uses for a destination or prefix.
show ip ospf databaseshow bgpshow ip cefshow adjacency detailip routeshow ip route vrf *
Verify in this order
protocols and static routes offer candidates → best per prefix enters the RIB → next hop resolved → FIB (CEF) entry built with adjacency → packets forwarded
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=2602