RouterOS, two subnets + dual WAN

Dear Collegues. May you please help me with configuring WAN failover in my case …


As you can see i have two locations with different subnets 192.168.0.0\24 and 192.168.1.0\24. connected by two Nanobeams with router mode.
Two RB750GL routers with dhcp etc.
For know everything is working perfectly. Users from one location can reach clients from other one. As you can see there are two ISP.
The goal for me is ( if it is possible ) if one ISP is down, second ISP is main WAN for whole network.
If both WAN’s are working ok … nothing changed.

Thanks for any reply

https://wiki.mikrotik.com/wiki/Failover_Scripting

I would look at the task from the perspective of one of the sites, considering the link to the other site just another WAN link. To avoid the potentially impossible mission of configuring source-dependent routing on the intermediate NanoBeams, I would first create an IP-IP tunnel between the two RB750s, and then use the scriptless dual-wan failover, using the remote RB750 as the default route with lower priority/higher distance.

It is important to monitor the state of the secondary route as well to prevent the inter-site link from getting occupied by looped packets if the real WANs on both sites would go down.