Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Static Routing

Direct answer

Static routing uses manually configured route entries rather than a dynamic routing protocol to supply reachability. A static route is a candidate for the IPv4 or IPv6 routing table and becomes useful only when its destination, next-hop/interface and preference produce an installable path.

When to use this

Use static routes for deterministic small-path designs, explicit default routes, tightly scoped destinations and backup reachability where a dynamic protocol is unnecessary or where a controlled fallback path is required.

First 30 seconds

1. Static routes have AD 1 (or a configured floating AD).

2. Specify next hop and/or exit interface.

3. Floating statics back up dynamic routes.

4. Track objects can remove statics.

5. Statics don't adapt to failures without tracking.

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Treating a configured ip route as evidence that it is installed.
  • Checking administrative distance before checking whether a longer prefix matches the destination.
  • Blaming a default route for traffic that is actually using a more-specific route.
  • Treating an installed static route as evidence of ARP/adjacency, ACL/NAT/PBR, return path or application health.
  • Using a floating static AD that is not actually worse than the intended primary source.
Platform / version applicability
Cisco IOS / IOS XE
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.

PlatformCisco IOS / IOS XE
Key commandip route 10.2.0.0 255.255.0.0 GigabitEthernet0/0/1 10.1.12.2
Scope / prerequisiteUse static routes for deterministic small-path designs, explicit default routes, tightly scoped destinations and backup…
What next?3 suggested next steps
Child topics (this level)2
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

2 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 Verification and output interpretation Verify boundary

Use show ip route <prefix> to confirm the static route is installed and to read next-hop/interface and distance. Then verify next-hop recursion and show ip cef <destination> for the forwarding consequence. For a floating static, test both states: with the primary route present the static should remain non-winning; after a controlled primary failure it should install and resolve correctly. When restoring the primary path, confirm the preferred route returns and the floating route yields again. This is route-selection evidence, not application evidence.

Step 2 Verification & troubleshooting Narrow the fault
SymptomCommandLook forNext check
Static route not in the tableshow ip route staticS entry for the prefixNext hop unreachable, exit interface down, or a lower-AD route exists
Floating route never usedshow ip route <prefix>Primary disappears when its path failsThe primary stays because the local interface is still up; add tracking
Tracked route stuckshow track / show ip sla statisticsTrack state follows the probeProbe source, target and schedule
Traffic one way onlyshow ip route on the far sideReturn routeMissing reverse static or default
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • Static routes are configuration intent; the RIB contains only routes that are currently eligible and installed
  • Longest Prefix Match decides which installed prefix matches a destination before route-source preference is compared
  • Cisco IPv4 static routes normally use administrative distance 1 unless a different value is configured
  • A floating static route deliberately uses a less-preferred administrative distance so it stays inactive while the primary route exists
  • A route in the RIB still does not prove CEF recursion, adjacency resolution, policy, return path or application reachability
  • IPv4 and IPv6 are separate children in the source taxonomy; both static-routing branches now have authored reference content.
Key checks
  • show ip route static — static routes
  • show running-config | include ip route — configuration
  • show ip route <prefix> — [1/0] via next hop
ReferenceWhat it is1 section · depth on demand

What it is

A static route is a manually configured route with administrative distance 1 (or a higher AD for a floating static). It points to a next-hop address, an exit interface, or both:

  • Next hop (ip route 10.2.0.0 255.255.0.0 10.1.12.2): recursive; the next hop must be reachable.
  • Interface (... GigabitEthernet0/0/1): treated as directly connected; on multi-access Ethernet this relies on proxy ARP and should be avoided.
  • Fully specified (interface plus next hop): preferred on Ethernet.

A static route is installed only while its next hop resolves or its exit interface is up.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Use static routes for deterministic small-path designs, explicit default routes, tightly scoped destinations and backup reachability where a dynamic protocol is unnecessary or where a controlled fallback path is required.

ReferenceImportant terms & boundaries4 sections · depth on demand

Key points

  • Default route: ip route 0.0.0.0 0.0.0.0 <next-hop>; IPv6: ipv6 route ::/0 <next-hop>.
  • A floating static has a higher AD (for example 200) so it is used only when the dynamic route disappears.
  • Add track to remove a static route when a remote target stops responding (IP SLA).
  • Static routes do not detect remote failures on their own if the local interface stays up.
  • The return path needs a route too.

In depth

Static routing: routes you configure by hand

A static route tells the router where to send traffic for a prefix, without a routing protocol. Cisco's static next-hop technote gives the default administrative distance as 1, so a static route is preferred over routes from dynamic protocols for the same prefix.

FormExampleNotes from Cisco's technote
Exit interface onlyip route 10.30.0.0 255.255.0.0 Serial0/1/0Fine on point-to-point links; not recommended on Ethernet
Next hop only (recursive)ip route 10.30.0.0 255.255.0.0 10.255.0.2Interface found by looking up the next hop
Fully specifiedip route 10.30.0.0 255.255.0.0 Gi0/0/1 10.255.0.2Recommended: both interface and next hop
Floating staticip route 10.30.0.0 255.255.0.0 10.255.1.2 250Higher AD; used only when the better route disappears
R1(config)# ip route 10.30.0.0 255.255.0.0 GigabitEthernet0/0/1 10.255.0.2
R1(config)# ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0 203.0.113.1
R1(config)# ipv6 unicast-routing
R1(config)# ipv6 route 2001:db8:30::/48 GigabitEthernet0/0/1 fe80::2
R1# show ip route static
S        10.30.0.0/16 [1/0] via 10.255.0.2, GigabitEthernet0/0/1
S*       0.0.0.0/0 [1/0] via 203.0.113.1, GigabitEthernet0/0/0

[1/0] is administrative distance 1 and metric 0.

When static routes fit

FitsDoesn't fit
Stub sites with one exitNetworks with many redundant paths
A default route to the InternetTopologies that change often
Routes towards a firewall or applianceLarge networks where consistency matters
Backups for dynamic routes (floating static)

When a static route is removed

FormRemoved from the routing table when
Exit interfaceThe interface goes down
Next hopNo route to the next hop exists

The technote's main caution follows from the second row: a static route stays installed as long as its next hop can be reached through any route, even a less specific one. That can keep a dead primary route in place and stop a floating backup from taking over.

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.

Concept and state model

A static route expresses forwarding policy without a dynamic routing protocol. A next-hop static route uses recursive lookup to resolve the next hop through another route, while a fully specified route names both next hop and interface. Exit-interface-only statics can be appropriate on true point-to-point links but can create undesirable neighbor-resolution behavior on multiaccess networks because the router may need to resolve each destination as though it were directly connected. Host routes (/32 IPv4, /128 IPv6), network routes and default routes are the same mechanism at different prefix lengths. A floating static simply uses a higher administrative distance so it loses to the preferred route when that preferred route exists.

Operational boundaries and common misconceptions

A configured static route can be absent from the RIB if its next hop cannot resolve or if a better route for the same prefix wins. A route in the RIB can still fail in the dataplane because the adjacency is unresolved or the downstream path is broken. A default route only matches destinations not covered by a more-specific installed route; it does not override a broken more-specific path. Administrative distance controls route selection, not health detection. Treat configuration, RIB installation, FIB resolution and end-to-end reachability as separate facts.

ReferenceConfiguration & state2 sections · depth on demand

Configuration example (Cisco IOS XE)

ip route 10.2.0.0 255.255.0.0 GigabitEthernet0/0/1 10.1.12.2
ip route 0.0.0.0 0.0.0.0 203.0.113.1
ip route 0.0.0.0 0.0.0.0 198.51.100.1 200          ! floating backup
!
ip sla 1
 icmp-echo 203.0.113.1 source-interface GigabitEthernet0/0/0
ip sla schedule 1 life forever start-time now
track 1 ip sla 1 reachability
ip route 0.0.0.0 0.0.0.0 203.0.113.1 track 1
!
ipv6 route ::/0 2001:db8:0:1::1

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.

Configuration model and design choices

Use ip route <prefix> <mask> <next-hop|interface> with an explicit design for recursion and backup behavior. Prefer a next hop or fully specified form on multiaccess Ethernet so adjacency resolution remains bounded to the real next-hop device. For a floating static, choose an administrative distance higher than the primary route source and verify the backup next hop remains reachable independently of the failed primary path. Default routes should represent a real catch-all forwarding choice, not a substitute for missing internal routes. Where reachability tracking is required, use an appropriate tracking mechanism rather than assuming a static route will disappear merely because a distant service fails.

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 docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
2026-09-13 · vendor docCisco IOS XE current

Official Cisco vendor documentation reviewed for bounded reference claims: static route, next-hop resolution and route installation. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.

Basis: https://www.cisco.com/c/en/us/td/docs/routers/ios-xe/ip-routing/b-ip-routing/m_iri-iprouting.html · confidence 94%
Embedded reference data

Quick lookup tables

Static Routing · reference boundaries

Compact technical reference for the most important state and interpretation boundaries.

Static formTypical useImportant caveat
Next-hop routeNormal routed/multiaccess pathRequires recursion to next hop
Exit-interface routePoint-to-point pathCan cause excessive resolution on multiaccess media
Fully specifiedExplicit interface + next hopUseful when both identities matter
Floating staticBackup pathHigher AD is selection policy, not remote health tracking
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Reading static routes in show ip route

Illustrative output, not captured Evidence:

S*    0.0.0.0/0 [1/0] via 203.0.113.1
S     10.2.0.0/16 [1/0] via 10.1.12.2, GigabitEthernet0/0/1

S* marks the candidate default route. [1/0] is AD 1 and metric 0; a floating static would show [200/0] only when it is active.

Additional depth

From configuration to forwarding

A configured static route first has to be an eligible route candidate. For a next-hop static route, IOS must be able to resolve the next-hop address through the current routing table. If the route wins for its prefix according to route-selection rules, it is installed in the RIB. The forwarding plane then recursively resolves the route into an outgoing interface and adjacency. This is why configuration, RIB and forwarding evidence must be checked separately.

Confirmation

Confirm action

Continue?