06-30-2009 06:05 AM - edited 03-04-2019 05:16 AM
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
Solved! Go to Solution.
06-30-2009 07:56 AM
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
06-30-2009 07:56 AM
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
06-30-2009 01:16 PM
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
06-30-2009 08:47 PM
Hi Oliver,
You're very much welcome.
With your 5 point rating I stepped up the ladder: I have a yellow star now :)
Istvan
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: