# load-balancing don't work

**URL:** <https://forum.mikrotik.com/t/load-balancing-dont-work/128208>\
**Category:** General\
**Created:** [March 2, 2019, 4:27am UTC](https://forum.mikrotik.com/t/load-balancing-dont-work/128208 "2019-03-02T04:27:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![plisken](https://forum.mikrotik.com/letter_avatar/plisken/32/6_449c533f586939b6e5f246632a46421f.png) [@plisken](https://forum.mikrotik.com/u/plisken)\
**Post date:** [March 2, 2019, 4:27am UTC](https://forum.mikrotik.com/t/load-balancing-dont-work/128208/1 "2019-03-02T04:27:37Z")

</div>

Hello,  
I have searched on the forum but nothing seems to work because they are outdated.  
The wiki did not yield anything either. That’s why my new topic

I want to configure an 8x WAN load balancing and that did not work.  
It also did not work when i testing a 2xWAN load-balancing configuration.

It seemed that the distance failed because when the two internet gateways were connected, gateway 2 was always used.  
After a while search, I have downgraded the RouterOs to  
6.37.4 bug fix on an old Mikrotik router.  
Then the load balancing worked properly.  
But I want to make this configuration with the newest 6.44.  
This does not seem to be possible after the RouterOS 6.37.4

For clarity this code is made with RouterOS 6.44 on an RB760iGS  
What am I doing wrong with this configuration?

> /interface bridge  
> add name=bridge-local  
> /interface ethernet  
> set [find default-name=ether1] name=WAN1  
> set [find default-name=ether2] name=WAN2  
> set [find default-name=ether3] name=ether3\_lan  
> set [find default-name=ether4] name=ether4\_lan  
> set [find default-name=ether5] name=ether5\_trunk  
> /ip pool  
> add name=dhcp\_pool0 ranges=192.168.100.2-192.168.100.254  
> /ip dhcp-server  
> add address-pool=dhcp\_pool0 disabled=no interface=bridge-local name=dhcp1  
> /interface bridge port  
> add bridge=bridge-local interface=ether3\_lan  
> add bridge=bridge-local interface=ether4\_lan  
> /ip address  
> add address=192.168.100.1/24 interface=bridge-local network=192.168.100.0  
> /ip dhcp-client  
> add add-default-route=no dhcp-options=hostname,clientid disabled=no interface=WAN1 use-peer-dns=no  
> add add-default-route=no dhcp-options=hostname,clientid disabled=no interface=WAN2 use-peer-dns=no  
> /ip dhcp-server network  
> add address=192.168.100.0/24 dns-server=192.168.100.1,1.1.1.1 gateway=192.168.100.1  
> /ip dns  
> set allow-remote-requests=yes servers=1.1.1.1,1.1.2.2  
> /ip dns static  
> add address=192.168.100.1 [name=ns1.uwbedrijf.net](http://name=ns1.uwbedrijf.net)  
> /ip firewall mangle  
> add action=accept chain=prerouting dst-address=192.168.1.0/24 in-interface=bridge-local  
> add action=accept chain=prerouting dst-address=10.98.213.0/24 in-interface=bridge-local  
> add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=WAN1 new-connection-mark=WAN1\_conn passthrough=yes  
> add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=WAN2 new-connection-mark=WAN2\_conn passthrough=yes  
> add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface=bridge-local new-connection-mark=WAN1\_conn passthrough=yes per-connection-classifier=both-addresses:2/0  
> add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface=bridge-local new-connection-mark=WAN2\_conn passthrough=yes per-connection-classifier=both-addresses:2/1  
> add action=mark-routing chain=prerouting connection-mark=WAN1\_conn in-interface=bridge-local new-routing-mark=to\_WAN1 passthrough=yes  
> add action=mark-routing chain=prerouting connection-mark=WAN2\_conn in-interface=bridge-local new-routing-mark=to\_WAN2 passthrough=yes  
> add action=mark-routing chain=output connection-mark=WAN1\_conn new-routing-mark=to\_WAN1 passthrough=yes  
> add action=mark-routing chain=output connection-mark=WAN2\_conn new-routing-mark=to\_WAN2 passthrough=yes  
> /ip firewall nat  
> add action=masquerade chain=srcnat out-interface=WAN1  
> add action=masquerade chain=srcnat out-interface=WAN2  
> /ip route  
> add check-gateway=ping distance=1 gateway=192.168.1.1 routing-mark=to\_WAN1  
> add check-gateway=ping distance=2 gateway=10.98.213.20 routing-mark=to\_WAN2

Who can help me with a 2x WAN load balancing so that I can finish the 8x WAN configuration

---

_[View the full topic](https://forum.mikrotik.com/t/load-balancing-dont-work/128208)._
