Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Floating Static · IPv4

Direct answer

A floating static route is a backup: a static route configured with a higher administrative distance than the primary route, so it is only installed when the primary disappears.

When to use this

Use it for a backup link or default route, and when failover does not happen or the backup is used all the time.

First 30 seconds

1. show ip route <prefix> — normally the primary with its distance?

2. Backup installed all the time → its distance is not higher than the primary's.

3. No failover when the provider fails → the primary stays because its link is up; track it with IP SLA.

4. After failover: show ip route <prefix> shows the backup at its distance.

5. Primary back → the backup leaves the table again.

Operational verification

primary route installed → backup configured with a higher distance (hidden) → primary withdrawn or tracked down → backup installed → primary returns → backup hidden again

Evidence · next step

Perform a controlled primary-path failure and verify the backup next hop resolves and the floating static enters the RIB.

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
Key commandip route <network> <mask> <next-hop> <administrative-distance>
Scope / prerequisiteUse it for a backup link or default route, and when failover does not happen or the backup is used all the time.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence2
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

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

1 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

Inspect show ip route <prefix> while the primary is healthy and verify the preferred route is installed; the floating static may be visible only in configuration or platform-specific candidate output. Then validate the static next hop is independently reachable. During a controlled failure, confirm the primary candidate is actually removed and the floating static appears with its configured AD, then verify CEF/traffic uses the backup path. A physical link failure is not always representative of an upstream black hole, so understand what failure condition removes the primary route. After restoration, verify the expected lower-AD route wins again.

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

The distance must be higher than the primary's (OSPF 110, EIGRP 90, static 1): for example 250. It only takes over when the primary route leaves the table — not when the path beyond it fails. For that, tie the primary to an IP SLA track.

Key checks
  • show ip route <prefix> — which route is installed now, at which distance.
  • show running-config | include ip route — the backup's configured distance.
  • show ip route <backup next hop> — the backup's next hop reachable.
  • show track / show ip sla summary — if the primary is tracked.
ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

Floating static route: a backup that appears only when needed

Cisco's static next-hop technote describes a floating static route as one with a higher administrative distance than the primary route, so it's installed only when the primary disappears. Static routes have AD 1 by default. EIGRP internal routes have 90 and external routes 170, so a floating static that should yield to EIGRP needs an AD above 170. AD 255 is treated as unreachable and never installed.

R1(config)# ip route 172.31.10.0 255.255.255.0 10.10.10.2
R1(config)# ip route 172.31.10.0 255.255.255.0 10.10.20.2 250
R1# show ip route 172.31.10.0
Routing entry for 172.31.10.0/24
  Known via "static", distance 1, metric 0
  * 10.10.10.2
R1(config)# interface Serial1/0
R1(config-if)# shutdown
R1# show ip route 172.31.10.0
Routing entry for 172.31.10.0/24
  Known via "static", distance 250, metric 0 (connected)
  * 10.10.20.2

Choosing the AD

Primary routeFloating static AD must be greater than
Static (AD 1)1
OSPF110
EIGRP internal / external90 / 170
eBGP / iBGP20 / 200

The trap described in the technote

In the technote's scenario, the primary route used a next hop only. After the primary link was shut down, the next hop 10.10.10.2 was still reachable through another static route (10.0.0.0/8). The primary route stayed installed, and the floating route never took over.

The technote's fix was to point the primary route at the interface instead of the next hop, so it disappears when the interface goes down. A fully specified primary route (interface plus next hop) behaves the same way.

Remote failures

A floating static only reacts when the primary route is removed locally. If a failure happens beyond the next hop, the primary stays. Combine the primary route with track and an IP SLA probe for those cases.

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.

Quick reference

An IPv4 floating static route is a backup route with an administrative distance higher than the primary route's source, so it appears in the routing table only when the primary route disappears.

! primary learned via OSPF (AD 110)
ip route 0.0.0.0 0.0.0.0 198.51.100.1 250      ! LTE backup
! or primary static with tracking
ip route 0.0.0.0 0.0.0.0 203.0.113.1 track 10
ip route 0.0.0.0 0.0.0.0 198.51.100.1 250

Documented example, not captured output.

If the primary is a static route to an Ethernet next hop that stays up while the path fails, the floating route never activates — add IP SLA tracking.

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

State model and protocol mechanics

Floating static routing uses administrative distance to keep a static candidate out of the RIB while a preferred route to the same prefix is present. For example, a dynamic route may have a lower AD, while a static route to the identical destination is configured with a deliberately higher AD. When the preferred candidate is withdrawn, the static route can become best and install, provided its own next hop/interface is resolvable. The word “floating” describes route preference, not active reachability detection. If the primary route remains installed despite an upstream failure, the floating static may never take over unless the primary protocol/track mechanism removes the preferred candidate.

Limits and common misconceptions

Higher administrative distance does not create health monitoring. A floating static activates only when route selection no longer has a better candidate for that prefix. If a dynamic protocol continues advertising a route through a path that is operationally broken farther downstream, the static remains floating. AD is local to the router and is not advertised as path quality to neighbors. A backup route becoming installed also does not show the remote service is reachable through that path. Keep failure detection, candidate withdrawal, RIB selection and end-to-end path health separate.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Configure the backup route to the same destination prefix with an AD higher than the intended primary source and verify the chosen value relative to the actual protocol AD. Ensure the backup next hop uses an independent enough path to provide real resilience. If static primary and backup routes are involved, consider object tracking or IP SLA only when the design needs failure detection beyond local interface/recursion state. Keep the backup route specific to the prefixes that require alternate forwarding rather than using an overly broad default unless that is the intent. Document failback behavior because when the lower-AD route returns it will normally replace the floating static again.

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 → Floating Static. 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

Floating static state

Interpret active vs inactive backup behavior correctly

ObservationLikely meaningNext check
Primary route installed; floating static absentUsually healthy steady stateConfirm primary source/AD and backup config
Floating static becomes installed after primary lossExpected failoverVerify next-hop/traffic
Floating static installed during normal statePrimary route missing or less preferredInvestigate primary route source/AD
Primary fails; floating static still absentBackup is not eligible/installableCheck AD, next-hop resolution/interface

Floating Static · operational reference

Compact state and interpretation boundaries for fast lookup.

Floating-static stateMeaning
Higher AD configuredBackup preference only
Primary route installedStatic remains non-best
Primary withdrawnStatic may install if resolvable
Static installedBackup path selected locally, not end-to-end proof
Depth when you need it

Deep reference

Additional depth

Preference-based failover

A floating static route uses a deliberately larger administrative distance than the normal primary route source for the same prefix. While the primary route is installed, the floating static is not selected. When the primary route disappears, the static candidate can enter the RIB if its own next hop/interface is still usable. Recovery should also be tested so the intended primary regains preference.

Confirmation

Confirm action

Continue?