If I have 2x ISP feeds to my router and set both interfaces with a DHCP client and default route but distance of 1,2. They don't fail over even when the second shows active in IP Routes in Winbox.
If I delete the dynamic routes added by the DHCP client and add the following code -
/ip route
add dst-address=0.0.0.0/0 gateway=ether1-WAN1 distance=1
add dst-address=0.0.0.0/0 gateway=ether2-WAN2 distance=2
/ip firewall nat
add chain=src-nat out-interface=ether1-WAN1 action=masquerade
add chain=src-nat out-interface=ether2-WAN2 action=masquerade
WAN2 doesn't take over if WAN1 is disconnected the same as dynamic routes. But if I assign direct addresses like this it works -
/ip route
add dst-address=0.0.0.0/0 gateway=10.0.1.1 distance=1
add dst-address=0.0.0.0/0 gateway=192.168.100.1 distance=2
Then the route fail over works.The problem is the IP addresses of WAN1 and WAN2 aren't static as they're assigned via DHCP from the ISP. Is there a way to make this work? I assume this configuration is valid as the option in Winbox provides a dropdown to select the gateway interface from the router's available interfaces.
Tried ROS v6.29, v6.38.5