Pcornel
Networking · Routing › Static Routing › IPv4

Network Route

Cheat sheet · https://pcornel.dk/topic.php?topic=1075

Back to the Topic

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 route
show ip route <prefix>
show ip route static
show 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

FormStrengthWatch for
Next-hop addressClear neighboring-router intent; recursive resolutionNext-hop route must remain resolvable
Exit interfaceDirect interface dependencyOn multiaccess links, Layer-2 resolution/proxy-ARP behavior can be undesirable or misleading
Point-to-point exit interfaceNatural one-peer forwarding modelInterface 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

Confirmation

Confirm action

Continue?