Pcornel
Networking · Routing › Static Routing › IPv4

Host Route

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

Back to the Topic

Answer

An IPv4 host route is a /32 route that matches exactly one IPv4 address. In dotted-decimal static-route syntax the mask is 255.255.255.255.

Remember

  • /32 is more specific than any covering network/default route
  • A host route can therefore override a broader route for that one address
  • The next hop still has to resolve before the route can be usable
  • A host route is a routing decision, not proof that the destination host or application responds.

First checks

  • show ip route <host>/32 — host route
  • show ip cef <host> — forwarding

Commands

ip route <host> 255.255.255.255 <next-hop>
Configure a /32 host static route.
ip route 192.0.2.10 255.255.255.255 10.1.1.1
ip route 203.0.113.5 255.255.255.255 Null0
ip ospf network point-to-point

Verify in this order

/32 route → longest match → forwarding

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=1076

Confirmation

Confirm action

Continue?