Community discussions

MikroTik App
 
ramysend2010
just joined
Topic Author
Posts: 16
Joined: Fri Jul 29, 2011 8:32 pm

Load Balancing with two interfaces

Fri May 04, 2012 9:29 pm

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.
 
User avatar
acim
Member
Member
Posts: 415
Joined: Mon Sep 12, 2005 12:26 am
Location: Serbia
Contact:

Re: Load Balancing with two interfaces

Fri May 04, 2012 10:59 pm

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
 
ramysend2010
just joined
Topic Author
Posts: 16
Joined: Fri Jul 29, 2011 8:32 pm

Re: Load Balancing with two interfaces

Fri May 04, 2012 11:49 pm

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
 
User avatar
acim
Member
Member
Posts: 415
Joined: Mon Sep 12, 2005 12:26 am
Location: Serbia
Contact:

Re: Load Balancing with two interfaces

Sun May 06, 2012 1:01 pm

It looks OK, try it and check load on interfaces and counters in /ip firewall mangle.
 
ramysend2010
just joined
Topic Author
Posts: 16
Joined: Fri Jul 29, 2011 8:32 pm

Re: Load Balancing with two interfaces

Sun May 06, 2012 2:29 pm

Dear,

Thanks for Help.