Pcornel
Networking · Network Assurance

IP SLA

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

Back to the Topic

Answer

IP SLA makes a router send test traffic on a schedule — ICMP echo, UDP jitter, TCP connect, HTTP — and measure success, delay and jitter. With object tracking, the result can steer routing, such as removing a static route when the probe fails.

Remember

An operation does nothing until it is scheduled. Send it from the right source interface, or it tests the wrong path. A track object turns the result into up/down, and only the route or HSRP setting that references the track reacts. Add a delay to tracking to avoid flapping.

First checks

  • show ip sla summary — every operation with its latest result.
  • show ip sla statistics <id> — last return code, round-trip time, successes and failures.
  • show ip sla configuration <id> — type, target, source, frequency, schedule.
  • show track <n> — the state of the track and what changed it.
  • show ip route 0.0.0.0 — whether the tracked route is installed.

Commands

ip sla <id>
Create an IP SLA operation.
icmp-echo <destination>
Configure an IP SLA ICMP echo operation toward a destination.
tcp-connect <destination> <port>
Configure an IP SLA TCP connect operation.
udp-jitter <destination> <port>
Configure an IP SLA UDP jitter operation (needs a responder).
frequency <seconds>
Set how often an IP SLA operation runs.
ip sla schedule <id> life forever start-time now
Start an IP SLA operation now and run it indefinitely.
show ip sla configuration
Display IP SLA configuration.
show ip sla statistics
Display IP SLA results.
show ip sla summary
Display a summary of IP SLA operations.
track <id> ip sla <sla-id> reachability
Track IP SLA reachability as an object for HSRP, routes or EEM.
show track
Display tracked objects and their state.
ip sla schedule <op> life forever start-time now
ip sla group schedule
show ip sla configuration <id>
show ip sla statistics <id>
show track <id>

Verify in this order

operation configured with target and source → scheduled → probes sent → results OK → track object up → tracked route or HSRP priority applied; on failure: track down → route withdrawn → backup used

Where it usually breaks

not scheduled → source/route/target or probe mismatch → wrong track → timer/consumer binding → application divergence

IP SLA · operational reference

IP SLA layerExample evidence
DefinitionProbe type, source, destination, timers
ExecutionScheduled and actively running
ResultReturn code, RTT/jitter/loss statistics
TrackBoolean/threshold interpretation of result
Dependent featureRoute/FHRP/etc. reacts separately

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

Confirmation

Confirm action

Continue?