Pls find the attached,Diagram,
I m configuring IP SLA in the attached secnario,I m pinging the loopback on R2 from R4,the primary tracking route is from R3 and the failover is R5 but the failover from R3 to R5 is maximum 8 sec,Can it be more low, I m referring the Reliable Static Routing Backup Using Object Tracking Document attached.
I having a IOS 12.2.33SXH,
There is also an another document attached PBR and Track command,i m not using those commands in the document,i m referring the reliable static routing backup document,I hope they are doing the same job,If i m not wrong????????????????????? pls confirm.
Attached the configs and diagram.
Once your ip sla monitor is able to ping and recieve reply's from 192.168.10.1, track 123 will wait for 10 seconds before it brings up the static route to 100.100.100.100, which is being tracked.
track 123 rtr 1 reachability
delay down 15 up 10
ip route 100.100.100.100 255.255.255.255 192.168.10.1 track 123
I was suggesting the static default route or a route-map be placed on R4 since this is the side you sending traffic from. Your running OSPF and you can completely eliminate the sla's. You can have r5 and r3 advertise the r2 loopback and let the dynamic routing do it's thing. You can even manipulate the route atrributes in OSPF to your liking - changing path selection, ad's, injecting static routes etc.... Your failover time would be lower.