Pcornel
Networking · Routing

Static Routing

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

Back to the Topic

Answer

Static routing uses manually configured route entries rather than a dynamic routing protocol to supply reachability. A static route is a candidate for the IPv4 or IPv6 routing table and becomes useful only when its destination, next-hop/interface and preference produce an installable path.

Remember

  • Static routes are configuration intent; the RIB contains only routes that are currently eligible and installed
  • Longest Prefix Match decides which installed prefix matches a destination before route-source preference is compared
  • Cisco IPv4 static routes normally use administrative distance 1 unless a different value is configured
  • A floating static route deliberately uses a less-preferred administrative distance so it stays inactive while the primary route exists
  • A route in the RIB still does not prove CEF recursion, adjacency resolution, policy, return path or application reachability
  • IPv4 and IPv6 are separate children in the source taxonomy; both static-routing branches now have authored reference content.

First checks

  • show ip route static — static routes
  • show running-config | include ip route — configuration
  • show ip route <prefix> — [1/0] via next hop

Commands

ip route 10.2.0.0 255.255.0.0 10.1.12.2
ip route 0.0.0.0 0.0.0.0 <next-hop>
show ip route static
show ip route <prefix>
show track
show ip sla statistics
show ip route
ip route 10.30.0.0 255.255.0.0 Serial0/1/0
ip route 10.30.0.0 255.255.0.0 10.255.0.2
ip route 10.30.0.0 255.255.0.0 Gi0/0/1 10.255.0.2
ip route 10.30.0.0 255.255.0.0 10.255.1.2 250
ip route
show ip cef <destination>

Verify in this order

ip route → next hop reachable → installed in RIB

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

Static Routing · reference boundaries

Static formTypical useImportant caveat
Next-hop routeNormal routed/multiaccess pathRequires recursion to next hop
Exit-interface routePoint-to-point pathCan cause excessive resolution on multiaccess media
Fully specifiedExplicit interface + next hopUseful when both identities matter
Floating staticBackup pathHigher AD is selection policy, not remote health tracking

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=623

Confirmation

Confirm action

Continue?