preloader
image Reading time: 1 minute

IP SLA Static Route

Better mechanism to reroute when connectivity is down but links are not showing down.

Create the ip sla to ping the other side
ip sla 1
 icmp-echo 10.1.0.1 source-ip 10.1.0.4
 threshold 500
 timeout 500
 frequency 1
ip sla schedule 1 life forever start-time now

track 1 ip sla 1 reachability
Create the static route

Remove the static if it already exists and then create one that “tracks” the ip sla above (#1)

no ip route 10.1.1.0 255.255.255.0 10.1.0.1
ip route 10.1.1.0 255.255.255.0 10.1.0.1 track 1
ip route 10.1.1.0 255.255.255.0 10.1.45.5 10
To monitor
show track 

Notes

  • The timeout setting determines how long the Cisco IOS IP SLAs function will wait (in milliseconds) for a response to its request packet.
  • The Cisco IOS IP SLAs operation’s threshold setting determines the rising threshold that causes a reaction event and maintains historical data.
  • Don’t forget to create the “track 1 ip sla 1 reachability”. This is the number that goes with the static route.
Share on: