Okay so you are not content with the simple plan to check the gateway of your ISP, part of the paranoid crowd that thinks checking an external IP is better.
Okay, I have never experienced when the gateway was up but the rest of the network is down but I will attempt to be open minded.
(by the way twoFrogs, yes it is important for the ISP setup in DHCP Client menu, to uncheck the default route - good point!)
Okay my friend, this is hopefully close to the mark......
/ip route
add dst-address=Host1(8.8.8.
gateway=gatewayIP (of primary ISP)
add dst-address=Host2(208.67.222.222) gateway=gatewayIP (of primary ISP)
add dst-address=Host3(8.8.4.4) gateway=gatewayIP (of secondary ISP)
add dst-address=Host4(208.67.220.220) gateway=gatewayIP (of secondary ISP)
/ip route
add distance=1 gateway=Host1(8.8.8.
check-gateway=ping
add distance=2 gateway=Host2(208.67.222.222) check-gateway=ping
add distance=3 gateway=Host3(8.8.4.4) check-gateway=ping
add distance=4 gateway=Host4(208.67.220.220) check-gateway=ping
/Ip route
add destination=0.0.0.0/0 gateway IP (ISP Primary) distance=1
add destination= 0.0.0.0/0 gateway IP(ISP Secondary) distance=2
I think, that what will happen above is that the router will check that all the hosts are available.
If for some reason 8.8.8.8 is not available the router will check .222 to ensure WAN1 is still the primary go to wan.
If both of those are unavailable, the router will use WAN 2 assuming 8.8.4.4 or .220 are pingable.