Tracking · IP SLA
1. Tracking ties IP SLA results to actions (static routes, FHRP priority).
2. track <n> ip sla <id> reachability.
3. Delays avoid flapping.
4. Test failure.
5. Combine with floating routes.
IP SLA fails → track down → route/priority change
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip route 0.0.0.0 0.0.0.0 203.0.113.1 track 1Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- No delay on the track object, causing route flapping.
- Floating static route AD lower than the primary.
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.
show track— stateshow track <n>— object, changes
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Worked failover (Cisco's documented pattern)
ip sla 1
icmp-echo 10.0.12.2 source-ip 10.0.12.1
ip sla schedule 1 life forever start-time now
track 8 ip sla 1 reachability
delay down 10 up 30
!
ip route 0.0.0.0 0.0.0.0 10.0.12.2 track 8 ! ISP 1, AD 1
ip route 0.0.0.0 0.0.0.0 10.0.13.2 10 ! ISP 2, floating
While track 8 is up the AD 1 default via ISP 1 is installed. When the probe fails, the tracked route is withdrawn and the floating route with AD 10 takes over.
R1# show track 8
Track 8
IP SLA 1 reachability
Reachability is Up
3 changes, last change 00:12:41
Delay up 30 secs, down 10 secs
Latest operation return code: OK
Tracked by:
Static IP Routing 0
reachability vs state
| Keyword | Up when |
|---|---|
reachability | Return code OK or Over threshold |
state | Return code OK only — RTT above threshold counts as down |
Other consumers of the same object
| Consumer | Example |
|---|---|
| HSRP | standby 1 track 8 decrement 20 (with preempt on the peer) |
| Boolean combination | track 10 list boolean and + object 8 + object 9 |
| EEM | event track 8 state down to clear NAT translations or send a log |
Design rules
- Probe something beyond the directly connected ISP interface when the failure you care about is upstream; then pin that target with a host route via ISP 1.
delay upshould be longer thandelay downso a flapping link is not trusted too early.- Remember NAT: existing translations keep pointing at ISP 1 after failover unless cleared.
Documented example, not captured output.
ReferenceConfiguration & state1 section · depth on demand
Configuration
track 1 ip sla 10 reachability
delay down 10 up 30
ip route 0.0.0.0 0.0.0.0 203.0.113.1 track 1
ip route 0.0.0.0 0.0.0.0 198.51.100.1 250
show track 1
Documented example, not captured output. When the probe fails, the tracked static route is removed and the floating route (AD 250) takes over.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network Assurance → IP SLA → Tracking. 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%