Page 1 of 1

load balance nth config

Posted: Tue Apr 07, 2009 9:30 pm
by lukkes
good morning dudes, i'm balancing wery well with nth 2,1 and nth 1,1 routeros version 3.0, i need to balance 8 wans, how is the correct nth config for 8 wans? thanks

Re: load balance nth config

Posted: Tue Apr 07, 2009 11:33 pm
by dconnrt
Hi Lukkes,

I'm also very interested in this too. This weekend I'm planning on trying out load balancing with a 493AH with 8 X ADSL lines (only choice in a remote location with no "proper" IP feed).

Derek

Re: load balance nth config

Posted: Wed Apr 08, 2009 12:15 pm
by mrz
How NTH works in v3.x is explained in this wiki article.
http://wiki.mikrotik.com/wiki/NTH_in_RouterOS_3.x

Re: load balance nth config

Posted: Wed Apr 08, 2009 12:15 pm
by normis

Re: load balance nth config

Posted: Thu Apr 09, 2009 6:14 am
by lukkes
Thanks a lot for your answer, i've read alot of times the iki but really dont understand, somebody can explainme detailed how it works, and much better if somebody knows the config for 8 wans? thanks again

Re: load balance nth config

Posted: Thu Apr 09, 2009 10:41 am
by mrz
OMG .. the same example as in wiki except you will have 8 rules instead of 3 and nth from 1 to 8. Thats it.

/ip firewall mangle
add action=mark-packet chain=prerouting new-packet-mark=1 nth=8,1 passthrough=yes;
add action=mark-packet chain=prerouting new-packet-mark=2 nth=8,2 passthrough=yes;
add action=mark-packet chain=prerouting new-packet-mark=3 nth=8,3 passthrough=yes;
add action=mark-packet chain=prerouting new-packet-mark=4 nth=8,4 passthrough=yes;
add action=mark-packet chain=prerouting new-packet-mark=5 nth=8,5 passthrough=yes;
add action=mark-packet chain=prerouting new-packet-mark=6 nth=8,6 passthrough=yes;
add action=mark-packet chain=prerouting new-packet-mark=7 nth=8,7 passthrough=yes;
add action=mark-packet chain=prerouting new-packet-mark=8 nth=8,8 passthrough=yes;

Re: load balance nth config

Posted: Fri Apr 10, 2009 7:21 pm
by lukkes
thanks dude, i think the same of you, but in the wiki tak about the passthrough and f is on or off change the match of the rule, maybe somebody has tested, anyway i will try with your help, thanks again