I am struggling like crazy trying to figure this out.
I have two WAN links, one with a static IP the other dynamic.
I would like to have failover so if the WAN link with the static IP fails the default gateway switches over to the WAN with the dynamic IP.
I have tried with netwatch with no success. The link fails over, but it then flips between the working and non-working link. I can’t figure out why because I have a static route in place. eg. to go to 8.8.8.8 use WAN1 with scope set to 10.
Yet for some reason it seems to ignore any scope settings.
I have also tried with dynamic routes with no success
I understand how the distance works with default routes… eg. I set WAN1 with distance of 1 and WAN2 if distance of say 5. If WAN1 cannot be reached WAN1 will be used.
However I need to cater for the scenario where WAN1 is up but there may be some issue at the ISP side etc, so their gateway may be pingable but nothing beyond that point. I need to be able to ping an IP via a specific gateway.