I have a subneted network similar to the one depicted below. I have a mixture of Mikrotik and UBNT devices. with Mikrotik devices phically located at the gateways. I would like to fail over / load balance to all 3 DSL connections through my mikrotik devices.
10.0.0.0/24
i
GW i
i i
10.0.20.0/24----------------------------------10.0.10.0/24---------------------------------10.0.30.0/24
i
GW i GW
i i i
10.0.40.0/24----------------------------------10.0.50.0/24---------------------------------10.0.60.0/24
i
i
i
10.0.70.0/24
Could you offer a suggestion on the best way to accomplish this?
I assume this solution will not work with my subneted network since the gateway in on a different subnet and I realize this does not load balance (distribute).
Two gateways failover
From MikroTik Wiki
Jump to: navigation, search
This example explains how to use multiple gateways with one taking over when first fails. It begins with adding the gateways. Set bigger distance value for the secondary one, and check-gateway for the first one:
/ip route add gateway=192.168.1.1 check-gateway=ping
/ip route add gateway=192.168.2.1 distance=2
That’s all, there are no more steps!
The first gateway will begin as it’s distance is smaller (default 0); the check-gateway will make sure it’s up; when the ping will fail, it will disable the first gateway and the second will take over; when first one comes up, it will return to it’s function.
Thanks