Network Route
Cheat sheet · https://pcornel.dk/topic.php?topic=1075
Answer
A network static route sends a specific prefix — not a default — towards a next hop: ip route 10.50.0.0 255.255.0.0 10.0.0.2.
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
ip route <network> <mask> <next-hop>- Configure a static route to a network through a next-hop address.
ip route <network> <mask> <interface>- Configure a static route out an interface; on multi-access links prefer a next-hop address.
ip routeshow ip route <prefix>show ip route staticshow ip cef <destination>
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
Next hop vs exit interface
| Form | Strength | Watch for |
|---|---|---|
| Next-hop address | Clear neighboring-router intent; recursive resolution | Next-hop route must remain resolvable |
| Exit interface | Direct interface dependency | On multiaccess links, Layer-2 resolution/proxy-ARP behavior can be undesirable or misleading |
| Point-to-point exit interface | Natural one-peer forwarding model | Interface state still controls usability |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1075