track command

Unanswered Question
Feb 28th, 2007

I've been playing with the object tracking. Is there any way to use a negative condition? (e.g. Install my static route when a specific interface goes down)

in the following example I install a default route only if interface 1/0 is up/up, but what about if I want to install the default route ONLY if serial 1/0 is down instead?

Router(config)#track 55 interface serial 1/0 line-protocol

Router(config)#ip route 0.0.0.0 0.0.0.0 serial 1/1 track 55

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
bellocarico Wed, 02/28/2007 - 07:20

Found :-)

I had to create a parent object (boolean)

where I specify a not condition:

track 10 interface Serial1/0 line-protocol

track 55 list boolean and

object 10 not

ip route 0.0.0.0 0.0.0.0 serial 1/1 track 55

:-)

Actions

This Discussion