Object Tracking

Answered Question
Jun 30th, 2009
User Badges:

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

Correct Answer by Istvan_Rabai about 7 years 12 months ago

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



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Istvan_Rabai Tue, 06/30/2009 - 07:56
User Badges:
  • Gold, 750 points or more

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



owalter Tue, 06/30/2009 - 13:16
User Badges:

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

Istvan_Rabai Tue, 06/30/2009 - 20:47
User Badges:
  • Gold, 750 points or more

Hi Oliver,


You're very much welcome.

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


Istvan

Actions

This Discussion