Floating Static
Cheat sheet · https://pcornel.dk/topic.php?topic=1078
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
| Observation | Likely meaning | Next check |
|---|---|---|
| Primary route installed; floating static absent | Usually healthy steady state | Confirm primary source/AD and backup config |
| Floating static becomes installed after primary loss | Expected failover | Verify next-hop/traffic |
| Floating static installed during normal state | Primary route missing or less preferred | Investigate primary route source/AD |
| Primary fails; floating static still absent | Backup is not eligible/installable | Check 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