MİKROTİK LOAD BALANCİNG 2 WAN 2 LAN

Mikrotik Load Balancing 2 WAN 2 LAN with Failover – Load balance 2 WAN on Mikrotik Router is a technique to distribute the traffic load on the two-paths connection in a balanced manner so that traffic can run optimally, maximize throughput, minimize response time and avoid overload on one connection path. This experimentI have 2 internet connections different IP WAN and 2 LAN. I‘ve tried it, load balancing and failover can run normallyYou can see the Mikrotik script below.

Network Topology

 

Network Topology Mikrotik Load Balancing 2 WAN 2 LAN
IP WAN  1 = 10.10.10.2/29
IP WAN  2 = 10.10.11.2/29
Block IP LAN 1 = 192.168.1.0/24 Gatheway 192.168.1.1 Mask 255.255.255.0
Block IP LAN 2 = 192.168.100.0/24 Gatheway 192.168.100.254 Mask 255.255.255.0

1. Add Ip address to interfaces Mikrotik router

Add Ip Address Mikrotik
Add Ip Address Mikrotik

Mikrotik Script :


 

 

2. Setting IP Pool to restrict the range of IP that will be distributed automatically by DHCP system that we enable.

Setting IP Pool on Mikrotik Router
Setting IP Pool on Mikrotik Router

Mikrotik Script :

 

3. Setting DHCP Server on Mikrotik router
Setting DHCP Server Mikrotik
Setting DHCP Server Mikrotik

Mikrotik Script :

 

4. Add both private addresses ( IP LAN )  to the firewall address list

Add Address List Mikrotik
Add Address List Mikrotik

Mikrotik Script :


 

5. Setting Firewall NAT   
Setting NAT mikrotik
Setting NAT MikroTik


Mikrotik Script :

 

 

6. Setting Mangle

Manggle Mikrotik
Mangle Mikrotik


Mikrotik Script :

 

 

7. Setting IP Route 

IP Route Mikrotik
IP Route Mikrotik


Mikrotik Script :

 

Test Result

 

This is winbox capture of the test result

Mikrotik Load Balance running normally with 2 WAN 2 LAN
Mikrotik Load Balance running normally with 2 WAN 2 LAN

 

Mikrotik load balance and Fail Over running normal when WAN 1 down
Mikrotik load balance and Fail Over  running normally when WAN 1 down

 

Mikrotik load balance and Fail Over running normally when WAN 2 down
Mikrotik load balance and Fail Over  running normally when WAN 2 down

I hope it has been a useful article.