Load-balancing and Fail-over in MikroTik ISP where we work as an administrator to use more than one gateway to connect to the Internet. Everything must be able to serve the upstream & downstream service. Because the case would be different if one of them can only serve downstream, for example when using VSAT DVB One-way. For this case such ISPs have 2 lines to the Internet. One use access DSL (256 Kbps) and others use Wireless (512 Kbps). With DSL usage ratio: Wireless = 1:2. What to do : 1. Using all the available gateway channels with load-balancing techniques. 2. Making one as a back-up with fail-over technique. OK, let’s just get started experiments: 1. IP address for access to the LAN: > /ip address add address=192.168.0.1/28 interface=LAN IP address for access to DSL lines: > /ip address add address=10.32.57.253/29 interface=DSL IP address for access to lines Wireless: > /ip address add address=10.9.8.2/29 interface=WIRELESS Specify the gateway and the ratio of each: > /ip route add gateway=10.32.57.254,10.9.8.1,10.9.8.1 2. In the case for fail-over technique. Assumed to be the main route through Wireless with DSL lines as a back-up if the main line were impassable. To check whether the main line can be passed or not, use the ping command. > /ip firewall mangle add chain=prerouting src-address=192.168.0.0/28 action=mark-routing
new-routing-mark=SUBNET1-RM > /ip route add gateway=10.9.8.1 routing-mark=SUBNET1-RM check-gateway=ping > /ip route add gateway=10.32.57.254
source : mikrotik-id.blogspot.com