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 188.8.131.52 50 track 1
ip route 0.0.0.0 0.0.0.0 184.108.40.206 60
track 1 ip route 220.127.116.11 255.255.255.0 reachability
You can use the Tracked list and the Boolean expressions feature included in Enhanced Object Tracking.
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
ip route 0.0.0.0 0.0.0.0 18.104.22.168 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.