Gateway of Last Resort
Cheat sheet · https://pcornel.dk/topic.php?topic=1068
Answer
"Gateway of last resort" in show ip route shows the default route the router is currently using for destinations with no more specific match — normally an installed 0.0.0.0/0 route. "Not set" means there is no default route.
Remember
The gateway of last resort is the next hop of the installed default route 0.0.0.0/0, marked * as candidate default. It is used only when no more specific route matches. not set means unmatched packets are dropped. The default can be static or learned from OSPF, EIGRP or BGP.
First checks
show ip route | include Gateway → the current gateway or not set. show ip route 0.0.0.0 0.0.0.0 → source, AD and next hop of the default. show ip cef 0.0.0.0/0 → outgoing interface.
Commands
show ip routeip route 0.0.0.0 0.0.0.0ip default-networkip default-gatewayip route 0.0.0.0 0.0.0.0 <next-hop>ip route 0.0.0.0 0.0.0.0 203.0.113.1 track 10ip route 0.0.0.0 0.0.0.0 <next hop>
Verify in this order
default route configured or learned → installed as 0.0.0.0/0 (lowest AD) → Gateway of last resort is … → next hop reachable → unmatched destinations forwarded there → return route exists upstream
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
Gateway of Last Resort operational reference
| Boundary | Known-good for Gateway of Last Resort | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches IPv4 default-route selection design | Configuration differs from peer/design | Compare effective config |
| Control state | Stable expected role/route/member state | no gateway of last resort when fallback is expected, a stale/wrong default winning, recursive resolution failure, or successful next-hop ping while remote destinations still fail | Inspect protocol/RIB detail |
| Forwarding | Expected egress/Port-Channel/VLAN path | State exists but traffic path disagrees | FIB/MAC/adjacency |
| Closure | Original test passes for explained reason | Symptom merely moved or was bypassed | Regression test |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1068