Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Verification · IPv4

Direct 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.

When to use this

Use it after adding or changing a static route.

First 30 seconds

1. Configured (show running-config | include ip route) but not in show ip route static?

2. → show ip route <next hop>: the next hop is not reachable.

3. Tracked route → show track <n>: down?

4. Installed but not used → a longer prefix wins, or a lower distance.

5. Interface-only route on Ethernet → add the next hop address.

Operational verification

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

Evidence · next step

Inspect the full route selection and then CEF/adjacency/ARP for the actual destination.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE · Cisco IOS XE
Key commandshow ip cef <prefix> detail
Scope / prerequisiteUse it after adding or changing a static route.
Show · 2Reference · 2
What next?3 suggested next steps
Catalog command links4
Evidence2
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

How to read the output

show ip cef <prefix> detail

Look first: prefix adjacency/next hop and egress interface

Healthy: CEF resolves the prefix to the intended adjacency.

Warning: Drop/punt/unresolved adjacency or unexpected egress.

Does not prove: A CEF entry does not prove downstream reachability or return path.

show ip route <prefix>

Look first: route source/code, prefix, next hop, outgoing interface

Healthy: Expected prefix is installed with intended next hop/source.

Warning: Route absent, unexpected protocol/AD/metric, recursive next hop or wrong exit.

Does not prove: RIB presence does not prove FIB programming or packet delivery.

show ip route static

Look first: route source/code, prefix, next hop, outgoing interface

Healthy: Expected prefix is installed with intended next hop/source.

Warning: Route absent, unexpected protocol/AD/metric, recursive next hop or wrong exit.

Does not prove: RIB presence does not prove FIB programming or packet delivery.

show ip route

Look first: route source/code, prefix, next hop, outgoing interface

Healthy: Expected prefix is installed with intended next hop/source.

Warning: Route absent, unexpected protocol/AD/metric, recursive next hop or wrong exit.

Does not prove: RIB presence does not prove FIB programming or packet delivery.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

6 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 First 30 seconds Verify boundary

Immediate answer: Verify exact prefix, administrative distance, recursive next hop and CEF adjacency before testing the application path.

Verification chain: configured static → RIB candidate → recursive resolution → selected RIB route → CEF adjacency → packet → return path

Stop condition: A static route in configuration does not show it is installed; an installed route does not show two-way service reachability.

Step 2 Known-good, broken and proof-boundary verification Verify boundary

Known-good is the intended static route installed in the correct VRF, recursive resolution complete, CEF pointing to the expected adjacency, and the original destination reachable with the intended path. Broken state includes unresolved next hop, wrong mask/VRF, hidden route or incomplete adjacency. Compare running config, RIB and CEF for the same prefix. A configured or installed static route does not show return-path or application health; closure requires the original workload plus adjacent next-hop evidence.

Step 3 Native known-good discriminator and proof boundary — Verification Verify boundary

Healthy IPv4 static-route Verification requires the expected prefix/next hop and administrative preference in show ip route, the intended adjacency/egress in show ip cef <prefix> detail, and successful repetition of the original sourced flow. Suspicious evidence includes an unexpected competing route, unresolved recursion, glean/drop adjacency, wrong VRF or a route that exists only in configuration. RIB/CEF output shows selection and local forwarding-programming state only; it cannot show remote acceptance or symmetric return. Compare the reverse route/peer response and rerun the original workload before closing the change.

Step 4 RIB-to-forwarding workflow Narrow the fault

1. show ip route static — which static routes are installed?

2. show ip route — which prefix/source actually wins and what is the gateway of last resort?

3. Check the route to the configured next hop when recursive resolution is involved.

4. Inspect CEF/adjacency/ARP if the RIB is correct but traffic still fails.

5. Then test policy, upstream reachability and the return path.

Stop at the first step that disagrees with the design.

Step 5 Failure isolation: observation → implication → next check Narrow the fault

If the static route is missing from the RIB, verify exact prefix/mask, VRF and next-hop reachability, then compare competing routes and administrative distance. If the RIB contains it but traffic fails, inspect CEF adjacency/ARP and the next-hop segment. If outbound forwarding works but replies fail, inspect remote route and return path. If a tracked/floating route behaves unexpectedly, confirm the tracked dependency and timing. Do not add another static route until the failing step is known.

Step 6 Common mistakes Narrow the fault
  • Checking only the route, not the return route.
  • Pinging from the default source instead of the relevant interface.
Evidence references

Evidence · 2 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

command output · 2
Command lookup Jump straight to Cisco syntax
Key points

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.

Key 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.
ReferenceHow it works2 sections · depth on demand

Mechanics, state owner and dependency boundary

IPv4 static-route verification separates configuration, recursive next-hop resolution, RIB selection and FIB/CEF programming. A static route can exist in configuration but stay out of the RIB because the next hop is unresolved or a better route wins; a RIB entry can still fail in forwarding if adjacency/CEF state is incomplete. Track prefix, administrative distance, VRF, next hop and outgoing interface as one route identity.

Native protocol/state mechanics and ownership — Verification

IPv4 static-route Verification spans configured route intent, RIB selection and CEF programming. show ip route and show ip route <prefix> expose the selected routing information base entry; show ip route static isolates static candidates; show ip cef <prefix> detail exposes recursive forwarding resolution and adjacency programming. These are separate state owners: a configured static can be absent from the RIB, a RIB route can resolve differently in CEF, and a correct CEF entry can still be blocked later by ACL, PBR, NAT or return-path policy.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Verifying static routes: installed, resolved and used

A configured static route isn't necessarily installed, and an installed one isn't necessarily the one used. Check all three.

R1# show running-config | include ^ip route
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0 203.0.113.1 name ISP-A
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/2 198.51.100.1 10 name ISP-B
ip route 10.30.0.0 255.255.0.0 GigabitEthernet0/0/1 10.255.0.2
R1# show ip route static
S*    0.0.0.0/0 [1/0] via 203.0.113.1, GigabitEthernet0/0/0
S     10.30.0.0/16 [1/0] via 10.255.0.2, GigabitEthernet0/0/1
R1# show ip route 10.30.12.7
R1# show ip cef 10.30.12.7 detail
R1# traceroute 10.30.12.7 source Loopback0
R1# show ip static route

The ISP-B default (AD 10) is configured but not in the routing table, because the AD 1 route is present. That's the intended floating behaviour.

Checks

QuestionCommand
Is the route configured?show running-config | include ip route
Is it installed?show ip route static
Which route wins for an address?show ip route <address> (longest match)
What will forwarding use?show ip cef <address>
Does traffic follow it?traceroute

Why a route isn't installed

CauseCheck
A better AD route for the same prefix existsshow ip route <prefix> shows the other source
Exit interface downshow ip interface brief
Next hop not resolvableshow ip route <next-hop>
AD 255Cisco's technote notes 255 means unreachable and is never installed

Why a dead route stays installed

Cisco's technote shows a primary static route staying in the table after its link failed, because the next hop was still reachable through another, less specific route. If show ip route <next-hop> resolves via an unexpected route, the static route will stay installed. Use fully specified routes or tracking to avoid it.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Method

IPv4 static route verification confirms the route is installed and that traffic actually follows it.

1. show ip route static — the route is present (not just configured).

2. If missing: check the next hop is reachable (show ip route <next-hop>) and the exit interface is up.

3. show ip cef <destination> — the forwarding entry and adjacency.

4. ping/traceroute to a host in the destination network, from the right source.

5. Check the return path on the remote side.

ObservationMeaning
Configured, not in tableNext hop unresolvable, interface down, or better AD route exists
In table, traffic failsAdjacency/ARP, remote return route, ACL
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 791

Authoritative/upstream documentation reviewed for bounded claims in Routing → Static Routing → IPv4 → Verification. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc791.html · confidence 94%
Embedded reference data

Quick lookup tables

IPv4 static route troubleshooting flow

Move from route intent to forwarding in evidence order

StepVerifyPrimary evidence
1Exact destination and intended prefixAddress/prefix design
2Installed static routeshow ip route static
3Winning route / defaultshow ip route
4Recursive next hop or exit interfaceRoute/interface state
5Forwarding programming / adjacencyCEF + ARP/adjacency
6Policy and return pathACL/PBR/NAT/upstream route
7ServicePing/transport/application test

Static route output cues

Common Cisco IOS / IOS XE fields used during quick lookup

CueMeaningBoundary
SInstalled static routeRIB route source
S*Static route associated with candidate/default contextDefault-route selection context
[1/0]Common static AD / metric displayPreference / route metadata
via <next-hop>Recursive next hop shownNext-hop selection, not adjacency proof
Gateway of last resortSelected default next-hop contextDefault routing, not upstream proof
Confirmation

Confirm action

Continue?