track command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2007 07:14 AM - edited 03-03-2019 03:58 PM
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
- Labels:
-
Other Routing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2007 07:20 AM
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
:-)
