Networking · Network Devices › Router
Routing table
Cheat sheet · https://pcornel.dk/topic.php?topic=846
Answer
The routing table lists destination prefixes with their source (connected, static, OSPF …), administrative distance, metric, next hop and outgoing interface; the longest matching prefix wins.
Remember
- The routing table lists known networks, their source, metric and next hop.
- The longest prefix match decides which route is used.
show ip routeshows it on Cisco devices.
First checks
show ip route— RIBshow ip route summary— route counts
Commands
show ip route <address>show ip route summaryshow ip route connectedshow ip route vrf NAMEshow ip route longer-prefixesshow ip routeshow ip cef
Verify in this order
sources → best route per prefix → RIB
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=846