cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
803
Views
0
Helpful
2
Replies

Static route IP SLA Tracking Question

Craddockc
Level 3
Level 3

Community,

I have been looking into implementing a tracking object to assist with some static routing I need to accomplish. Typically I would just employ a floating static route in this scenario and use the far end interface as the next hop IP and should the far end interface go down, the static route would be removed from the RT and the floating static will take its place.However, over this particular circuit, even if the far end interface is not reachable the static route pointing to that interface is still remaining in the RT. So Ive been looking at using IP SLA tracking as an active method to get around this. I need to know if the following configuration will work. Thanks.

ip sla 10
icmp-echo 10.230.230.3 source-interface vlan 230
timeout 5000
threshold 2
frequency 5
ip sla schedule 10 life forever start-time now
!
track 10 ip sla 10 reachability
!
ip route 10.18.126.0 255.255.255.0 10.230.230.3 track 10 1
ip route 10.18.127.0 255.255.255.0 10.230.230.3 track 10 1
ip route 10.18.126.0 255.255.255.0 10.18.128.4 200
ip route 10.18.127.0 255.255.255.0 10.18.128.4 200

If the tracked object is not reachable I want the backup static routes (distance 200) to take over, thats my goal. Will this work? Ive only seen examples of this using default static routes not just any static route. Thanks.

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

It should work fine with static routes for specific subnets as well.

So as long as you can ping the next hop IP using the vlan 230 interface IP then as long as the next hop is up it will use that.

If the next hop goes down it should remove those routes and use the other ones and as soon as the ping works again it should install the previous routes back into the routing table.

The only thing I would say is your frequency and timeout are the same which means you send a ping and then wait the same amount of time for a response as sending another ping.

Not sure without testing how well this will work but you really want your frequency to be greater than your timeout if possible.

Jon

View solution in original post

2 Replies 2

Jon Marshall
Hall of Fame
Hall of Fame

It should work fine with static routes for specific subnets as well.

So as long as you can ping the next hop IP using the vlan 230 interface IP then as long as the next hop is up it will use that.

If the next hop goes down it should remove those routes and use the other ones and as soon as the ping works again it should install the previous routes back into the routing table.

The only thing I would say is your frequency and timeout are the same which means you send a ping and then wait the same amount of time for a response as sending another ping.

Not sure without testing how well this will work but you really want your frequency to be greater than your timeout if possible.

Jon

Jon,

Thanks so much for the rapid response and the suggestions. I will be sure to set my Frequency to be greater than the timeout. Thanks again sir!