Pcornel
Networking · Routing › Static Routing › IPv4

Floating Static

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

Back to the Topic

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.

Remember

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.

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

Commands

ip route <network> <mask> <next-hop> <administrative-distance>
Configure a floating static route with a higher administrative distance as backup.
show ip route <prefix>

Verify in this order

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

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

Floating static state

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1078

Confirmation

Confirm action

Continue?