cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
954
Views
0
Helpful
3
Replies

Object Tracking

owalter
Level 1
Level 1

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

Istvan_Rabai
Level 7
Level 7

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

View solution in original post

3 Replies 3

Istvan_Rabai
Level 7
Level 7

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

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

Hi Oliver,

You're very much welcome.

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

Istvan

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco