Advanced Routing Failover

Hello guys!

I’ve 2 satellite modems and I’m using PCC method and it works like a charm, but sometimes when there’s a problem in one of the modems-WAN1 the internet disconnects and clients can’t resolve DNS until I shut down the modem or unplug it from the MT router! then everything works normally via WAN2.

I’m trying to configure advanced routing failover! I followed instructions from the wiki https://wiki.mikrotik.com/wiki/Advanced_Routing_Failover_without_Scripting but the router can’t resolve hosts and cloud don’t update!

/ip route
add dst-address=Host1 gateway=GW1 scope=10
add dst-address=Host2 gateway=GW2 scope=10
add distance=1 gateway=Host1 routing-mark=ISP1 check-gateway=ping
add distance=2 gateway=Host2 routing-mark=ISP1 check-gateway=ping
add distance=1 gateway=Host2 routing-mark=ISP2 check-gateway=ping
add distance=2 gateway=Host1 routing-mark=ISP2 check-gateway=ping

Then I used another approach but there’s no traffic from WAN2 until WAN1 isn’t pingable:

/ip route
add dst-address=Host1 gateway=GW1 scope=10
add dst-address=Host2 gateway=GW2 scope=10
add distance=1 gateway=Host1 check-gateway=ping
add distance=2 gateway=Host2check-gateway=ping

I want both links to be active. Any help, please!

I finally found a workaround!

/ip route

add dst-address=HostA gateway=GW1 scope=10
add dst-address=HostB gateway=GW2 scope=10
 
add distance=1 gateway=HostA routing-mark=to_WAN1 check-gateway=ping
add distance=2 gateway=HostB routing-mark=to_WAN2 check-gateway=ping
 
add dst-address=10.0.0.1 gateway=HostA scope=10 target-scope=10 check-gateway=ping
add dst-address=10.0.0.2 gateway=HostB scope=10 target-scope=10 check-gateway=ping
 
add distance=1 gateway=10.0.0.1 routing-mark=to_WAN1
add distance=2 gateway=10.0.0.2 routing-mark=to_WAN2
 
add distance=1 gateway=10.0.0.1
add distance=2 gateway=10.0.0.2