ip sla schedule 1 life forever start-time now
[/code]
You could then create a track rule
then on a route you would just add track 1 to the end
If the IP SLA starts to return failure codes the route would be removed from the table, you could also add it to HSRP to decide which router should be live.
If there is a working solution on VyOS that would be great, I need the ability to remove routes based on reachability as I can’t run OSPF/BGP to every device.
I believe WAN load balancing will only work on a default route and will not allow for anything more specific but I have not fully tested it as of yet.
Take this for example
We have a customer coming into our datacentre over an interconnect, we also have a backup VPN (terminates on a desperate device). I would want the ability to monitor both routes for reachability so that I could remove route 1 (the interconnect) from the table if it goes down so traffic routes via the backup vpn.