IP SLA Configuration for Failover: Step-by-Step Guide with EVE-NG Lab & CLI [2025][CCNP ENTERPRISE]

IP SLA Configuration for Failover: Step-by-Step Guide with EVE-NG Lab & CLI [2025]. [CCNP ENTERPRISE]

Today I want to take you into one of the most practical tools you can add to your network reliability toolkit: IP SLA with tracking for failover.

Back when I was setting up redundant internet links for my enterprise clients, we needed a way to automatically switch to a backup route without manual intervention. That’s where IP SLA + tracking became my best friend.

If you’re building dual WAN, managing backup ISPs, or designing resilient routing, this guide will simplify the failover magic you need—plus, I’ve added a mini EVE-NG lab, real CLI, and use cases.


Theory in Brief – What is IP SLA?

IP SLA (Service-Level Agreement) is a Cisco feature that monitors connectivity and performance by sending synthetic traffic (like pings or HTTP probes) to a target. When used with tracking and static routing, it enables automatic route failover.

Why It Matters:

Imagine your primary ISP goes down. Without IP SLA, your router keeps sending traffic to a dead link. With IP SLA, the router automatically removes the failed route and uses a backup link.

Common Use Cases:

  • Dual ISP failover at branch
  • Backup WAN connectivity for critical apps
  • Monitoring remote hosts or cloud endpoints

Comparison – Pros and Cons of IP SLA Failover

FeatureIP SLA with TrackingStatic Route without SLA
Automatic FailoverYesNo
WAN Link MonitoringYes (ICMP, HTTP, etc.)None
Supports Layer 3 FailoverYesNo
Configuration ComplexityModerateSimple
Compatibility (Cisco)All IOS platformsAll platforms
Ideal ForBranch/Edge routers, Dual WANSimple environments
DrawbackSlight CPU impact if many probesNo fallback on link failure

Essential CLI Commands – IP SLA + Tracking

TaskCommand ExampleNotes
Define SLA operation (ping)ip sla 1 icmp-echo 8.8.8.8 source-interface G0/0Monitor primary link target
Set schedule for SLAip sla schedule 1 life forever start-time nowSLA starts running continuously
Configure track objecttrack 1 ip sla 1 reachabilityTies SLA to tracking
Apply to routeip route 0.0.0.0 0.0.0.0 192.168.1.1 track 1Route removed if SLA fails
Add backup static routeip route 0.0.0.0 0.0.0.0 192.168.2.1 254Used only if primary fails
Verify SLA statusshow ip sla statisticsSee probes and response time
Verify tracking statusshow trackTrack state: up or down

Real-World Use Case

ScenarioDescriptionSolution Using IP SLA
Branch with Dual ISPPrimary: Fiber, Backup: 4G LTESLA on Google DNS, track G0/0
Remote Office VPN BackupHQ tunnel must shift to LTE if ISP failsSLA to tunnel IP, backup default
Cloud App FailoverRoute fails over if AWS endpoint becomes unreachableSLA on HTTPS or TCP port
IoT Network StabilityMonitor MQTT broker availabilitySLA with port TCP probe
Enterprise with MPLS + InternetFail to internet if MPLS diesSLA track MPLS gateway

EVE-NG LAB – IP SLA with Dual ISP Failover

Objective:

Configure automatic failover between two ISPs using IP SLA.


Topology Diagram

  • G0/0 connects to ISP1: 192.168.1.1
  • G0/1 connects to ISP2: 192.168.2.1

Step-by-Step Configuration

Define IP SLA Operation

ip sla 1
 icmp-echo 8.8.8.8 source-interface Gig0/0
 timeout 1000
 frequency 3
ip sla schedule 1 life forever start-time now

Track SLA

track 1 ip sla 1 reachability

Add Static Routes with Tracking

ip route 0.0.0.0 0.0.0.0 192.168.1.1 track 1
ip route 0.0.0.0 0.0.0.0 192.168.2.1 254

Verifications

show ip route
show ip sla statistics
show track

Simulate failure by shutting G0/0 and observe route failover.


Troubleshooting Tips

SymptomLikely CauseFix / Command
Backup route not taking overTrack object not downCheck show track
No SLA dataSLA not scheduledip sla schedule missing
SLA probe fails unexpectedlyIncorrect source-interface or ACLVerify source IP, check ACLs
Failover delay too longHigh frequency/timer valuesReduce SLA frequency/timeout
CPU spikes on routerToo many SLA operationsOptimize or limit SLA count

FAQ – IP SLA Configuration for Failover

1. What is IP SLA and how does it help with failover in Cisco networks?

Answer:
IP SLA (Service Level Agreement) is a Cisco feature that enables real-time monitoring of network performance by sending active probes such as ICMP echo, HTTP GET, UDP jitter, and more. When used with tracking and routing, IP SLA allows routers to detect link failures or performance degradation and initiate automatic failover to a secondary path, maintaining network availability and resilience.


2. What are the main components needed to configure IP SLA-based failover?

Answer:
To implement IP SLA for failover, you need:

  • An IP SLA operation (e.g., ICMP Echo)
  • A tracking object tied to the SLA result
  • A static or default route with a tracking condition
  • A backup route with a higher administrative distance

This logic ensures that the primary route is removed when the SLA test fails, and traffic shifts to the secondary path.


3. How does IP SLA detect a primary path failure?

Answer:
IP SLA continuously sends probes (e.g., pings) to a monitored destination, such as the remote next-hop or a public IP like 8.8.8.8. If the destination becomes unreachable due to a physical or logical failure, the SLA operation fails, causing the tracking object to transition to “down” state, which in turn invalidates the primary route, triggering failover.


4. Can IP SLA work with dynamic routing protocols like EIGRP or OSPF?

Answer:
Yes, but not directly. IP SLA is most commonly used with static routing, but it can influence dynamic protocols using:

  • Route maps
  • Object tracking with redistribution filters
  • Policy-based routing (PBR) in advanced cases

However, native failover within routing protocols (e.g., EIGRP variance or OSPF cost) is usually preferred unless precise control is needed.


5. What are some typical SLA probes supported in IP SLA?

Answer:
Cisco IP SLA supports multiple probe types, including:

  • ICMP Echo (ping)
  • UDP jitter (VoIP simulation)
  • TCP connect
  • HTTP GET
  • DNS lookup
  • DHCP, FTP, VoIP (RTT) tests

For failover scenarios, ICMP Echo is the most commonly used due to its simplicity and support across platforms.


6. How frequently should IP SLA probes run for effective failover?

Answer:
A common configuration uses:

  • Probe interval: 5–10 seconds
  • Timeout: 1–2 seconds
  • Threshold: Number of failed probes before declaring down

This strikes a balance between fast convergence and avoiding false positives due to transient issues. Example:

ip sla 1
 icmp-echo 8.8.8.8 source-interface Gig0/0
 frequency 5

7. What happens when the primary link comes back up?

Answer:
When IP SLA detects the target is reachable again, the tracking object returns to “up”, and the primary route is automatically reinstated, replacing the backup route (assuming it’s still preferred by administrative distance). This ensures fail-back is seamless and automatic, with no manual intervention.


8. How can I verify if IP SLA and tracking are working correctly?

Answer:
Use the following Cisco commands:

show ip sla statistics
show track
show ip route

These show:

  • IP SLA test success/failure status
  • Track object status (Up/Down)
  • Active route in the routing table

Real-time verification is crucial during lab testing and production rollout.


9. Can I use IP SLA with multiple ISPs for dual internet redundancy?

Answer:
Absolutely. IP SLA is commonly used for dual ISP failover, where:

  • The primary ISP is monitored via an ICMP Echo
  • The route via ISP 1 is tracked
  • If ISP 1 fails, the router falls back to ISP 2

This is particularly useful in SD-WAN edge, branch routers, and SOHO setups.


10. Is IP SLA supported on all Cisco routers and IOS versions?

Answer:
IP SLA is widely supported on most ISR, ASR, and Catalyst routers/switches running Cisco IOS or IOS-XE. However, certain features (like HTTP probes or object tracking) may require:

  • IP SLA responder support
  • Advanced IP services license (legacy)
  • Newer IOS-XE images (on C8000 or ISR1100 platforms)

Always verify platform compatibility via Cisco Feature Navigator.


YouTube Link

Watch the Complete CCNP Enterprise: IP SLA Configuration for Failover: Step-by-Step Guide with EVE-NG Lab & CLI Lab Demo & Explanation on our channel:

Class 1 CCNP Enterprise Course and Lab Introduction | FULL COURSE 120+ HRS | Trained by Sagar Dhawan
Class 2 CCNP Enterprise: Packet Flow in Switch vs Router, Discussion on Control, Data and Management
Class 3 Discussion on Various Network Device Components
Class 4 Traditional Network Topology vs SD Access Simplified

Final Note

Understanding how to differentiate and implement IP SLA Configuration for Failover: Step-by-Step Guide with EVE-NG Lab & CLI is critical for anyone pursuing CCNP Enterprise (ENCOR) certification or working in enterprise network roles. Use this guide in your practice labs, real-world projects, and interviews to show a solid grasp of architectural planning and CLI-level configuration skills.

If you found this article helpful and want to take your skills to the next level, I invite you to join my Instructor-Led Weekend Batch for:

CCNP Enterprise to CCIE Enterprise – Covering ENCOR, ENARSI, SD-WAN, and more!

Get hands-on labs, real-world projects, and industry-grade training that strengthens your Routing & Switching foundations while preparing you for advanced certifications and job roles.

Emailinfo@networkjourney.com
WhatsApp / Call: +91 97395 21088

Upskill now and future-proof your networking career!


Trainer Sagar Dhawan

Hi all,
Good to see you here.
I'm your Trainer for CCIE, CCNP, CCNA, Firewall batches and many more courses coming up!
Stay tuned for latest updates!
Keep me posted over Whatsapp/Email about your experience learning from us.
Thanks for being part of - "Network Journey - A journey towards packet-life!!!"