Page 1 of 1

Load Balancing with two interfaces

Posted: Fri May 04, 2012 9:29 pm
by ramysend2010
Hello,
I'm using Mikrotik V5.7
I have two network interfaces wan1 and wan2.
wan1 has 1MBPS.
wan2 has 2MBPS.
So I need to use load balancing using NTH to make 1/3 of network traffic through wan1 and 2/3 of network traffic through wan2.
what is the values of NTH "Every and Packet" for wan1 and wan2 to implement this goal ?

Thanks & Regards.

Re: Load Balancing with two interfaces

Posted: Fri May 04, 2012 10:59 pm
by acim
You have uneven load balancing using PCC here:

http://aacable.wordpress.com/2011/06/04 ... t-by-zaib/

If you want to use NTH, there is one example here:

http://wiki.mikrotik.com/wiki/NTH_load_ ... masquerade

Re: Load Balancing with two interfaces

Posted: Fri May 04, 2012 11:49 pm
by ramysend2010
Hello,

Thanks for your answer.
based on example http://wiki.mikrotik.com/wiki/NTH_load_ ... masquerade
if I call wan1 is odd and wan2 is even, the correct value for NTH

/ ip firewall mangle
add chain=prerouting in-interface=Local connection-state=new nth=3,1 action=mark-connection new-connection-mark=odd passthrough=yes
add chain=prerouting in-interface=Local connection-state=new nth=3,2 action=mark-connection new-connection-mark=even passthrough=yes
add chain=prerouting in-interface=Local connection-state=new nth=3,3 action=mark-connection new-connection-mark=even passthrough=yes


is that correct ?

Thanks & Regards

Re: Load Balancing with two interfaces

Posted: Sun May 06, 2012 1:01 pm
by acim
It looks OK, try it and check load on interfaces and counters in /ip firewall mangle.

Re: Load Balancing with two interfaces

Posted: Sun May 06, 2012 2:29 pm
by ramysend2010
Dear,

Thanks for Help.