Reliable Static Routes
Overview
Section titled “Overview”Reliable static routing combines traditional static routes with IP SLA tracking to provide automatic failover when paths become unavailable. While standard static routes remain in the routing table regardless of next-hop reachability, reliable static routes are dynamically removed when the tracked object fails.
Standard Static Route: Always present in routing table, even if next-hop is unreachable Reliable Static Route: Automatically removed from routing table when tracking fails
This provides the simplicity of static routing with automatic failover capabilities similar to dynamic routing protocols.
How Reliable Static Routing Works
Section titled “How Reliable Static Routing Works”The process involves three components working together:
- IP SLA Operation: Monitors reachability to a target (typically ICMP echo)
- Tracking Object: Links IP SLA results to routing decisions
- Static Route: References the tracking object for conditional installation
Operation Flow:
- IP SLA continuously monitors target reachability
- Tracking object reflects IP SLA state (up/down)
- Static route is installed only when tracking object is up
- Route automatically removed when tracking object goes down
Basic Configuration
Section titled “Basic Configuration”ip sla 1 icmp-echo 203.0.113.1 source-interface GigabitEthernet0/1 frequency 5 timeout 3000 threshold 2000ip sla schedule 1 life forever start-time now
track 1 ip sla 1 reachability delay down 1 up 5
ip route 0.0.0.0 0.0.0.0 203.0.113.1 track 1ip route 0.0.0.0 0.0.0.0 198.51.100.1 10Configuration Breakdown:
IP SLA Operation
icmp-echo 203.0.113.1- Target to monitor (typically ISP gateway)source-interface- Ensures ICMP originates from correct interfacefrequency 5- Test every 5 secondstimeout 3000- Wait 3 seconds for responsethreshold 2000- Consider response slow if over 2 seconds does not do anything
Tracking Object
track 1 ip sla 1 reachability- Links tracking to SLA operationdelay down 1- Wait 1 second before declaring downdelay up 5- Wait 5 seconds before declaring up
Static Routes:
- Primary route with
track 1- Removed when tracking fails - Backup route with AD 10 - Takes over when primary removed
Administrative Distance
Section titled “Administrative Distance”Use consistent AD values to ensure predictable failover:
- Tracked routes: Default AD (1)
- Primary backup: AD 5-10
- Emergency backup: AD 15-20
Verification Commands
Section titled “Verification Commands”show ip sla statisticsshow ip sla configurationshow trackshow track briefshow ip route track-tableshow ip route staticdebug ip routingdebug track