05-21-2009 07:22 AM - edited 03-06-2019 05:52 AM
I've got a situation that calls for me to track the interface of a router before failing over to a wireless connection. I don't want it to fail over immediately, but wait about 10 seconds (at least) to make sure the line is really down. The problem that I'm running into is my floating route immediately gets put into the table.
I've tried the following routes:
ip route 192.168.3.0 255.255.255.0 172.15.5.2 track 1
ip route 192.168.3.0 255.255.255.0 192.168.2.1
AND
ip route 192.168.3.0 255.255.255.0 172.15.5.2 240 track 1
ip route 192.168.3.0 255.255.255.0 192.168.2.1
The first section puts both routes in the table, but I don't want load balancing. The second section leaves my one route in the table, but once I disconnect the floating route immediately gets put in the table.
My track config looks like:
track 1 interface fa0/1 ip routing
delay down 30
Is there a reason it's ignoring my 30 second delay before failing over?
Thanks!
John
05-21-2009 10:52 AM
Hey John,
Perhaps this will provide a little help
This is my track setup for tracking static routes, when the specified interface is up/up, the s/route is in the IP routing table, when the tracked interface is down, it is removed from the IP routing table with a little delay.
PLEASE experiment in your lab before putting into production.
track 3 list boolean and
object 21 not
!
track 10 interface GigabitEthernet0/0 line-protocol
delay down 5
!
track 21 interface GigabitEthernet0/0 line-protocol
delay up 45
!
ip route 172.6.0.56 255.255.255.252 Null0 track 3
ip route 172.6.11.0 255.255.255.240 Null0 track 10
ip route 172.7.64.0 255.255.252.0 Null0 track 10
ip route 172.6.0.0 255.255.255.0 Null0 track 10
ip route 172.6.0.62 255.255.255.255 172.6.0.99 track 21
Router1#sh track
Track 3
List boolean and
Boolean AND is Down
3 changes, last change 5w1d
object 21 not Up
Tracked by:
STATIC-IP-ROUTING 0
Track 10
Interface GigabitEthernet0/0 line-protocol
Line protocol is Up
1 change, last change 5w1d
Delay down 5 secs
Tracked by:
STATIC-IP-ROUTING 0
Track 21
Interface GigabitEthernet0/0 line-protocol
Line protocol is Up
3 changes, last change 5w1d
Delay up 45 secs
Tracked by:
Track-list 3
STATIC-IP-ROUTING 0
Router1#sh track interface brief
Track Object Parameter Value Last Change
10 interface GigabitEthernet0/0 line-protocol Up 5w1d
21 interface GigabitEthernet0/0 line-protocol Up 5w1d
Router1#sh track brief
Track Object Parameter Value Last Change
3 list boolean Down 5w1d
10 interface GigabitEthernet0/0 line-protocol Up 5w1d
21 interface GigabitEthernet0/0 line-protocol Up 5w1d
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide