I have combine two ADSL lines(with ADSL modems in router mode) using the fallowing code below. I want now to bridge the two ADSL lines so if the internet from one line is off, the traffic goes to the second line.
what lines should I add and what line should I remove and disabled from winbox? I want to be able to enter the modem pages if possible.
With the script, when you ping you can specify a routing table for it to use, so you can make a test route, and use that to ping a remote address. The key is to ping an address that is on the internet, like Verizon’s DNS servers. Since it’s using a routing table with only one route in it, and it should always be active unless the Ethernet interface goes down, if the pings fail you can detect this and take action. This is the method I use on several boxes and it works just fine, you just need to disable the built in check-gateway function when adding the routes.
If an Ethernet interface goes down, it automatically disables any default routes attached to that interface, and whatever is marked for those routing tables will then fall through to the main routing table.
The script-less method should also work fine, I’ve just never used it since I like the flexibility of the script and use it to send me an e-mail on a down event.
The tools are all there, you just need to use them and adjust them to fit your needs.
I tried this but I can still see that half of the connection go to the second line. It is a bit slow when on of the modem is On but no internet but it is better than before when the internet stop working