I use ip sla for backup routes with this example config:
ip sla 1
icmp-echo 126.96.36.199 source-ip 188.8.131.52
ip sla schedule 1 life forever start-time now
track 123 rtr 1 reachability
ip route 0.0.0.0 0.0.0.0 ATM0.1 track 123
ip route 0.0.0.0 0.0.0.0 FastEthernet0 184.108.40.206 200
then when ping to 220.127.116.11 fail, the first route disappear and second one through FastEthernet0 is my default gateway.
This happend with the first failed packet but i would like that happend after 3 failed pings.
Somebody can help me?
You can add the following under your track:
delay down 30
This will delay setting the track object to down for 30 seconds. If, after 30 seconds, it's still down, then the track will go down, and your route will disappear.