Hi,
I have 2 ISPs, one is the primary ISP and the other one is only for backup.
I have configured my failover only in /ip routes, with multiple remote host ping checks. I followed method 2 in this guide: https://serman.maxdesk.com/user/viewarticlepdf/9378
We are going to check Host1A and Host1B via GW1 Host2A and Host2B via GW2:
- First we create routes to those hosts via corresponding gateways:
/ip route
add dst-address=Host1A(8.8.8.8) gateway=GW1(88.196.6.185) scope=10
add dst-address=Host1B(208.67.220.220) gateway=GW1scope=10 add dst-address=Host2A(8.8.4.4) gateway=GW2(10.10.1.1) scope=10
add dst-address=Host2B(208.67.222.222) gateway=GW2scope=10
- Create “virtual” hops for those hosts (IP addresses of virual hops arent really important, im using 10.1.1.1 and 10.2.2.2 as example)
/ip route
add dst-address=10.1.1.1 gateway=Host1A(8.8.8.8) scope=10 target-scope=10 check- g ateway=ping
add dst-address=10.1.1.1 gateway=Host1B(208.67.220.220) scope=10 target- scope=10 check-gateway=ping
add dst-address=10.2.2.2 gateway=Host2A(8.8.4.4) scope=10 target-scope=10 check- g ateway=ping
add dst-address=10.2.2.2 gateway=Host2B(208.67.222.222) scope=10 target- scope=10 check-gateway=ping
- Add default routes for our clients:
/ip route
add distance=1 gateway=10.1.1.1
add distance=2 gateway=10.2.2.2
The failover works like a charm. I have only one problem left: In case of a failover, I have a lot of open connections, going over gateway 1. Is there an easy way to delete all these connection, in case of a failover? At the moment I use Netwatch, but i have 4 Netwatches, and I think it is not the best solution.