Pcornel
Networking · Network Devices › Router

Routing table

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

Back to the Topic

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 route shows it on Cisco devices.

First checks

  • show ip route — RIB
  • show ip route summary — route counts

Commands

show ip route <address>
show ip route summary
show ip route connected
show ip route vrf NAME
show ip route longer-prefixes
show ip route
show 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

Confirmation

Confirm action

Continue?