Hey all,
I have a setup where I have a router connected to my Fibre ONT ("Main Router") which is the default gateway for the network. I also have a second router ("Backup Router") which is connected to my neighbours WiFi as a backup link.
I updated the Main Router with a static route pointing to the backup router with a metric of 20 for 0.0.0.0/0. The problem is that the wan link won't go down on the Main Router when there's issues with the ONT (or if it looses power) and therefore will not automatically forward packets to the Backup Router.
mwan3 should be able to test the wan for a stable connection, and when it fails, to remove the default routing for 0.0.0.0/0 to the wan interface so that the router will forward to the Backup Router which is already in the routing tables. Can anybody help me achieve this please?
I've tried adding just the wan link in mwan3 and also the wan and the lan link in a failover setup but it doesn't work regardless of the different settings I've tried. Thanks in advance!
Also if its possible when the WAN link goes down, to be able to run a script?
Here's a diagram to explain the setup:
The link will never go down because the LAN Port from the ONT and the WAN Port from the Main Router go through the switch. Both are on a separate, untagged two port VLAN. This is so that the switch can power the ONT via the Switch PoE. Main Router is also connected via its LAN Port to the switch (.69.254). Yes, I know this is an unusual way of connecting both devices. Open to suggestions for a better way to power my ONT via my switch. Although the backup link will be double natted, it will be rarely used since its slow (40 megabit down and up via the 5GHz Wifi 4 connection).