NTH

I need to know what´s the nth for a loadbalancing of 8 lines

for 2 is 1,1,0 1st
1,1,1 2nd

for 3 is 2,4,0 1st
2,4,1 2nd
2,4,2 3rd

tnx

7,5,0
7,5,1
7,5,2
7,5,3
7,5,4
7,5,5
7,5,6
7,5,7

thnx man.. thank you a lot, you saved my job :smiley:

Eugene, using the Nth function to mark pkts is a great feature and i would like to understand this function better with your help please.

The “every” option in a load balancing example would depict the number of gateways for a network that you would like to use.

The “packet” option will choose which packet to mark and in a simple loadbalancing setup will mark 1 pkt/gw thus the “packet” option will also be equal to the number of gw’s starting from 0 and ending on the number equal to the amount of gw’s.

The “counter” option though i do not understand clearly. Please will you explain the counter function using a simple load balancing scenario?

“counter” is just a counter. nothing more. it should be the same for all rules targeting the same flow.

how would you decide the number to use for the counter setting?

at random.

Hi Eugene, to 6 WAN would be:

5,3,0
5,3,1
5,3,2
5,3,3
5,3,4
5,3,5
?
And the marks may be only thats 2? odd and even?
or would be:
wan1 to 5,3,0
wan2 to 5,3,1
wan3 to 5,3,2
and continously?

Thanks and Best Regards!
Alessio

5,3,0
5,3,1
5,3,2
5,3,3
5,3,4
5,3,5

exactly

Routing marks should be:

wan1 to 5,3,0
wan2 to 5,3,1
wan3 to 5,3,2

(assuming you want to load-balance across 6 links, not just 2)

Thanks! it is working excellent!
Regards!
Alessio