Q: WAN Failover

After several attempts of trying to perform a WAN Failover. I did some digging and stumbled upon this website:

https://www.prinmath.com/ham/mikrotik-failover.htm

The Recursive Failover method that is mentioned in the link, is it a valid method to perform a WAN failover like that?
Or does it involve more configuration settings ?

Thanks in advance.

Yes, the basic recursive is that easy.
Some people add another site so that the router checks two places before switching, in case for ex. google is off line…

Caveat. Its easy if you have a fixed static WANIP, or you use basic dynamic cable wanip, that can pull a wanip when you enter in 0.0.0.0/0 for gateway.

However if like me you have a fiber op connection, when the connection changes IP, 0.0.0.0/0 does not pull another IP automatically into the routing config.
I have to manually go into my DHCP client , where the new IP and more importantly new gateway are there and identified and router is bound. I copy the new gateway go to my route rule and plunk in the new gateway and IM off and running. SO its not automatic.
BUT, using other threads that talked about similar items, I then copied a script that does that now for me. When I lose my connection, it goes to that client gateway location and grabs the new one and puts it into my route rule.

Thank you for your response. Is it possible you can send me that script ? I assume you set the script on the MikroTik firewall ?

There is a nice MUM presentation as well for the recursive failover with 2 DNS Servers for checks… you can look for that…
@anav does that happen with latest ROS ?

It has happened with every ROS. There is no facility for the router to magically change IP Route Settings by the admin (take gateway IP from new IP bounding session and stick it into ones IP Route rules… Unless you know something I don’t (always possible).

/ip dhcp-client
add default-route-distance=255 disabled=no interface=vlanbell script=“:if ($b
ound=1) do={ /ip route set [find comment="BellFibre"] gateway=($"gatew
ay-address") disabled=no; :log warning ("New ISP1 gateway: ".($"gatew
ay-address")) }” use-peer-dns=no use-peer-ntp=no

However I would have to find the thread that discusses this to make heads or tails of it LOL.

http://forum.mikrotik.com/t/dual-dynamic-isp-wan-dual-lan-setup/132893/1

and some troubleshooting with that script to get to success.
http://forum.mikrotik.com/t/simple-dynamic-dhcp-client-script-fails/134196/5

Note: my question on the last post of the first link was never answered, so there is a part of the script I dont understand,