Use a host route when one exact destination needs an explicit path without affecting other addresses in the surrounding network.
Host Route · IPv4
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.
1. A host route (/32) matches one address and is the most specific.
2. Used for loopbacks, policy steering, black-holing.
3. Longest match always wins.
4. Check unintended overrides.
5. Document why it exists.
/32 route → longest match → forwarding
Validate design intent and test both the exact host and nearby addresses to confirm path separation.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip route <host> 255.255.255.255 <next-hop>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checking host routes Verify boundary
show ip route 192.0.2.10 255.255.255.255
show ip route | include /32
show ip cef 192.0.2.10
Many /32 routes in an IGP (e.g. redistributed hosts) increase table size; summarise where possible. In BGP, /32s are normally filtered at the internet edge except for RTBH communities.
Step 2 Common mistakes Narrow the fault
- A host route overriding a better subnet route by accident.
- Forgetting to remove temporary /32 routes after troubleshooting.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- /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.
show ip route <host>/32— host routeshow ip cef <host>— forwarding
ReferenceWhat it is1 section · depth on demand
Uses
- Loopback addresses (router IDs, BGP peering, management): advertised as /32.
- Static routes to a single host:
ip route 192.0.2.10 255.255.255.255 10.1.1.1. - Blackholing an attacked address (
ip route 203.0.113.5 255.255.255.255 Null0, RTBH). - Local routes: IOS installs an
L/32 entry for each interface address.
A /32 always wins longest-prefix match over any shorter route.
ReferenceWhy it matters1 section · depth on demand
How it works
A host route is a /32 (IPv4) or /128 (IPv6) route to one address. Because it is the longest possible match it overrides any covering subnet route. Routers create /32 local routes (L) for their own interface addresses; host routes are also used for loopbacks, VIPs and anycast services.
ReferenceImportant terms & boundaries2 sections · depth on demand
Key points
- /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 evidence that the destination host or application responds.
In depth
Host routes you already have
Since IOS 15 every interface address appears as a local host route:
R1# show ip route 10.1.12.1
Routing entry for 10.1.12.1/32
Known via "connected", distance 0, metric 0 (connected)
R1# show ip route | include ^L
L 10.1.12.1/32 is directly connected, GigabitEthernet0/0/1
L 10.255.0.1/32 is directly connected, Loopback0
L routes point to the router itself (CEF receive); they are not advertised as such.
Loopbacks in routing protocols
| Protocol | How a loopback is advertised |
|---|---|
| OSPF | As a /32 stub host route, whatever mask is configured — unless ip ospf network point-to-point is set on the loopback |
EIGRP / BGP network | With the configured mask |
| IS-IS | With the configured mask |
This matters for BGP peering and MPLS: the peer address must match the advertised /32, and LDP label bindings are made per /32 FEC.
Static host routes — typical uses
ip route 192.0.2.10 255.255.255.255 10.1.12.2 ! pin an IP SLA target to the primary ISP
ip route 198.51.100.66 255.255.255.255 Null0 ! blackhole one address (RTBH trigger)
ipv6 route 2001:db8::10/128 2001:db8:12::2 ! IPv6 host route
Pinning an IP SLA target with a /32 keeps the probe on the primary path, so it does not "succeed" through the backup link after a failover.
Risks
A /32 beats every covering route by longest prefix match. A forgotten temporary host route keeps steering one address after the network has changed; audit with show ip route static | include /32 and show running-config | include 255.255.255.255.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → Static Routing → IPv4 → Host Route. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc791.html · confidence 94%