So I have 2 WAN connections. From 2 ISPs.
Using "add default route" in DHCP client... I set WAN 1 to 1 and WAN 2 to 2. Unplug or kill the port for WAN 1 and things hop to WAN 2.
Now the issue is when the connection is still UP but not working... like a locked up modem.
Going into routes I tried to set a route like this
If I do this it shows as Active and Reachable.
Code: Select all
/ip route add check-gateway=ping disabled=no distance=1 dst-address=18.104.22.168/32 \ gateway=ether10-WAN scope=30 target-scope=10
The idea was so the router would try to reach OpenDNS via Ether-10. When this route is down that would be used to tell the router to use ISP 2.
So I tried making a netwatch to check that IP.
Figuring I could maybe get a script to increase the distance on the route to 3 when its down. So that ISP 2 would handle traffic. Then when that route was active again... have an up script that sets distance back to 1.
The issue is that the route always appears as up to netwatch. Even when I set gateway to Ether-3 which is local subnet.
Am I over thinking this or is there a better method?