Static Routing
Cheat sheet · https://pcornel.dk/topic.php?topic=623
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 routesshow running-config | include ip route— configurationshow ip route <prefix>— [1/0] via next hop
Commands
ip route 10.2.0.0 255.255.0.0 10.1.12.2ip route 0.0.0.0 0.0.0.0 <next-hop>show ip route staticshow ip route <prefix>show trackshow ip sla statisticsshow ip routeip route 10.30.0.0 255.255.0.0 Serial0/1/0ip route 10.30.0.0 255.255.0.0 10.255.0.2ip route 10.30.0.0 255.255.0.0 Gi0/0/1 10.255.0.2ip route 10.30.0.0 255.255.0.0 10.255.1.2 250ip routeshow 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 form | Typical use | Important caveat |
|---|---|---|
| Next-hop route | Normal routed/multiaccess path | Requires recursion to next hop |
| Exit-interface route | Point-to-point path | Can cause excessive resolution on multiaccess media |
| Fully specified | Explicit interface + next hop | Useful when both identities matter |
| Floating static | Backup path | Higher 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