I am looking for a good working link with instructions how to setup failover for dual WAN (ISP). I have successful vlan set up. From what I see some configurations are not working, some are.
I would be really appreciate if anybody post a good link with instructions for failover. thank you so much.
I use that setup as I don’t have any mangling.
Basically my primary ISP is checked (connectivity to the internet) by attempting to ping commercial servers.
Some old bats around here advised that sometimes pinging a gateway does not confirm connectivity to the internet, so I amended my setup.
If the primary fails to ping these servers, the same is repeated for the secondary ISP, meanwhile the primary is tried every once in a while and when it comes back online the router switches back to the primary.
This is called a recursive type of setup, heck I dont even know what recursive means LOL.
“relating to or involving a program or routine of which a part requires the application of the whole, so that its explicit interpretation requires in general many successive executions.”
That didnt help LOL.
I am not sure how to combine mangle rules with that but it would be cool to find out.
Typically mangling is used in routing when one wants to force users out specific WANIPs…
In my case, all my mail traffic goes to the secondary ISP so I have the following router rule for that…
…/ip route
add comment=Email_bypass distance=1 dst-address=24.222.0.20/32 gateway=
ISP2gatewayIP
I use a far simpler version of what @anav uses but probably just as viable for you. It’s fast, simple and doesn’t require any scripting either (nice for a MT solution). This takes anav’s approach and uses the actual WAN interfaces, my personal ones are pppoe_client1 and 2 but you get the idea.