Cisco IP SLA
Senerio 1 : Sla Monitor with Route Map
ip sla monitor responder
ip sla monitor 1
type http operation get url http://www.cisco.com source-ipaddr 172.16.250.254
ip sla monitor schedule 1 life forever start-time now
!
!
track 1 rtr 1 reachability
delay down 180 up 180
!
ip local policy route-map 1
!
route-map 1 permit 10
match ip address 150
set ip next-hop 192.168.50.250
!
ip route 0.0.0.0 0.0.0.0 192.168.50.250 track 1
ip route 0.0.0.0 0.0.0.0 172.16.18.10 10
!
access-list 150 permit ip host 172.16.250.254 any
!
!
Senerio 2 : IP SLA Monitor Static Floating Route :
ip sla 1
icmp-echo 10.1.1.1
timeout 1000
frequency 3
threshold 2
!
ip sla schedule 1 life forever start-time now
!
track 10 rtr 1 reachability
!
! Tagging the static route with the tracking object 10 and adjusting the AD of the
! floating static route to a higher value
!
ip route 0.0.0.0 0.0.0.0 172.16.1.1 track 10
!
ip route 0.0.0.0 0.0.0.0 172.16.1.5 254
!
!
Senerio 3 : IP SLA Monitor Ipsec Vpn :
In order to keep Ipsec vpn active and always up with
crypto isakmp sa association.
Configured and Tested out on Cisco 850.
!
!
!
ip sla monitor 10
http get http://www.cisco.com source-ip 192.168.0.254
frequency 60
timeout 30
ip sla schedule 10 life forever start-time now
!
!
ip local policy route-map 1
!
route-map 1 permit 10
match ip address 99
set ip next-hop verify-availability 85.234.95.240 1 track 10
!
!
The first static route is only valid if the sla is successful. The second static route has an AD of 254
and will only make it into the routing table if no other matching route (default route – 85.234.95.240).
!
ip route 0.0.0.0 0.0.0.0 85.234.95.240 track 10
ip route 0.0.0.0 0.0.0.0 192.168.0.222 254
!
access-list 99 permit ip host 192.168.0.254 any
set ip next-hop verify-availability
Normally set ip next-hop will forward packets when the route-map is matched regardless
if the next hop is alive or not. Adding the verify-availability keyword, the router will check
the next hop availability via CDP before forwarding the packets, and when next-hop is dead,
the packets will be routed through the normal routing table.