Dual WAN Failover with DHCP on WAN port.

InoX your solution worked awesomely well for me. This is on my hapAC (MikroTik RouterOS 6.40.3 (c) 1999-2017) dual wan failover with DHCP on wan ports.

I have ether1 (WAN1) connected to a TWC DOCSIS3.0 modem, and ether2 (WAN2) connected to a google fiber.
Selection_001.png
Selection_002.png
::For WAN1::
IP > DHCP Client > DHCP tab > interface: ether1; add default route : yes
IP > DHCP Client > Advanced tab > Default Route Distance: 1

::For WAN2::
IP > DHCP Client > DHCP tab > interface: ether2; add default route : yes
IP > DHCP Client > Advanced tab > Default Route Distance: 2

I had static routes set with scope and distance setting per some previous posts, I have now deleted them now. These are not needed if one uses InOX’s solution.

Thanks InOX.

In addition i realised that without ping check the changeover is not very effective especially if you have unresponsive modem/gateway device. So found that adding this in the routing filter is helping:

/routing filter
add action=passthrough chain=dynamic-in disabled=no set-check-gateway=ping

the above is as suggested in here by tabate47: http://forum.mikrotik.com/t/easy-dynamic-dual-wan-failover/101804/1

Would appreciate if people would post their finding and test observations. Thanks tabate47.