Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Object Tracking

I used Object Tracking for a default

route in a way that the route is

valid as long as a reference network

is in the routing table.

This was tested and is working so far.

Now i like to have 3 or more networks

as a reference. So only when all of these

networks will not be in the RT the

default route should disappear (AND not OR).

Any idea how to do this ?

ip route 0.0.0.0 0.0.0.0 3.3.3.1 50 track 1

ip route 0.0.0.0 0.0.0.0 4.4.4.1 60

track 1 ip route 33.33.33.0 255.255.255.0 reachability

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Object Tracking

Hi Oliver,

You can use the Tracked list and the Boolean expressions feature included in Enhanced Object Tracking.

Example:

track 1 ip route x.x.x.x x.x.x.x reachability

track 2 ip route y.y.y.y y.y.y.y reachability

track 3 ip route z.z.z.z z.z.z.z reachability

track 4 list boolean or

object 1

object 2

object 3

ip route 0.0.0.0 0.0.0.0 3.3.3.1 50 track 4

The above configuration says:

If tracked object 1 is up OR tracked object 2 is up OR tracked object 3 is up, the tracked object 4 is up and the default route is up.

So the default route will disappear if none of these objects are up, because in that case tracked object 4 will be down.

Cheers:

Istvan

3 REPLIES

Re: Object Tracking

Hi Oliver,

You can use the Tracked list and the Boolean expressions feature included in Enhanced Object Tracking.

Example:

track 1 ip route x.x.x.x x.x.x.x reachability

track 2 ip route y.y.y.y y.y.y.y reachability

track 3 ip route z.z.z.z z.z.z.z reachability

track 4 list boolean or

object 1

object 2

object 3

ip route 0.0.0.0 0.0.0.0 3.3.3.1 50 track 4

The above configuration says:

If tracked object 1 is up OR tracked object 2 is up OR tracked object 3 is up, the tracked object 4 is up and the default route is up.

So the default route will disappear if none of these objects are up, because in that case tracked object 4 will be down.

Cheers:

Istvan

New Member

Re: Object Tracking

Hi Istvan,

fantastic, this is exactly i was looking

for. Worked well in the lab.

Thanks very much for your fast and

detailed reply.

Oliver

Re: Object Tracking

Hi Oliver,

You're very much welcome.

With your 5 point rating I stepped up the ladder: I have a yellow star now :)

Istvan

503
Views
0
Helpful
3
Replies
CreatePlease login to create content