Static & Default Routing Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=207
Answer
A static route is a route entered by hand: to reach this network, send to that next hop. A default route is the static route for 0.0.0.0/0, which matches whatever no more specific route covers.
Remember
A static route is installed only while its next hop is reachable or its interface is up — but "reachable" through any route, including a default. On Ethernet, name the next-hop address, ideally with the interface. A backup needs a higher administrative distance; a path that fails beyond the interface needs tracking.
First checks
show ip route static— static routes actually installed.show running-config | include ^ip route— those configured.show ip route <next hop>— how the next hop resolves.show ip cef <prefix>— the interface in use.show track— tracked objects tied to routes.
Commands
ip route 0.0.0.0 0.0.0.0 <next-hop>ip address dhcpip routingip default-gatewayip route 10.20.0.0 255.255.255.0 10.0.12.2ip route 10.20.0.0 255.255.255.0 Serial0/0ip route 10.20.0.0 255.255.255.0 GigabitEthernet0/0 10.0.12.2ip route … track <n>
Verify in this order
route configured with correct prefix and mask → next hop resolvable or interface up → installed → next hop forwards onwards → return route exists → backup with higher distance waits
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=207