cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1774
Views
0
Helpful
1
Replies

track command

bellocarico
Level 1
Level 1

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

1 Reply 1

bellocarico
Level 1
Level 1

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

:-)

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card