0% found this document useful (0 votes)
6K views2 pages

Load-Balancing and Fail-Over in MikroTik

This document discusses load balancing and failover configurations for an ISP using MikroTik that has two internet connections - a DSL line and a wireless line. It provides steps to set up load balancing across the two connections using specific IP addresses and a gateway ratio. It also describes a failover configuration where the wireless line is the primary route and the DSL line acts as a backup, which is checked via ping before being used.

Uploaded by

Oki
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6K views2 pages

Load-Balancing and Fail-Over in MikroTik

This document discusses load balancing and failover configurations for an ISP using MikroTik that has two internet connections - a DSL line and a wireless line. It provides steps to set up load balancing across the two connections using specific IP addresses and a gateway ratio. It also describes a failover configuration where the wireless line is the primary route and the DSL line acts as a backup, which is checked via ping before being used.

Uploaded by

Oki
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like