Verification
Cheat sheet · https://pcornel.dk/topic.php?topic=1079
Answer
Verifying a static route means checking four things: the exact prefix is in the table, with the intended distance, its next hop resolves recursively to an interface, and CEF forwards on it.
Remember
A static route with a next hop is installed only if that next hop is reachable through another route. Its distance is 1, so it beats every protocol unless configured higher. On Ethernet, give a next hop address, not just the interface.
First checks
show ip route static— the static routes installed.show running-config | include ip route— those configured.show ip route <next hop>— whether the next hop is reachable.show ip cef <prefix>— forwarding for the prefix.show track— if the route is tied to a track object.
Commands
show ip route- IPv4 RIB routes and selected next hops.
show ip cef <prefix> detail- Inspect detailed CEF recursion/forwarding state.
show ip route <prefix>- Display the route the router uses for a destination or prefix.
show ip route static- Display static routes in the routing table.
show ip route <address>show ip cef <address>tracerouteshow ip interface briefshow ip route <next-hop>show ip cef <destination>ping
Verify in this order
static route configured → next hop resolvable through another route → track up (if used) → no better route for the same prefix → installed with distance 1 (or configured) → CEF forwards
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
Static route output cues
| Cue | Meaning | Boundary |
|---|---|---|
S | Installed static route | RIB route source |
S* | Static route associated with candidate/default context | Default-route selection context |
[1/0] | Common static AD / metric display | Preference / route metadata |
via <next-hop> | Recursive next hop shown | Next-hop selection, not adjacency proof |
Gateway of last resort | Selected default next-hop context | Default routing, not upstream proof |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1079