Re: [SLUG] Networking weighting problems

2007-11-22 Thread Dean Hamstead
did you set a policy?

http://publib.boulder.ibm.com/infocenter/systems/topic/com.ibm.aix.cmds/doc/aixcmds4/route.htm

...

-policy n
Specifies the policy to be used for Multipath Routing. n is number
between 1 and 5 where these numbers mean the following:

   1. Weighted Round-Robin
   2. Random
   3. Weighted Random
   4. Lowest Utilization
   5. Hash-based

If the policy is not explicitly set and multipath routing is used, then
the global no command option called mpr_policy determines the policy that
will be used. The default policy is Weighted Round Robin which behaves just
like Round-Robin when the weights are all 1. Although the Default policy is
Weighted Round-Robin, when the policy is not set, then the network option
mpr_policy takes precedence. On the other hand, if the policy is explicitly
set to WRR then this setting overrides the mpr_policy setting. For more
information about these policies, see the no command.

Dean

On Fri, 23 Nov 2007 11:25:59 +1100, "Stuart Guthrie"
<[EMAIL PROTECTED]> wrote:
> Hi list
> 
> We're trying to a 'weight' to pipe traffic through two channels to the
> internet from an office.
> 
> This is our route info:
> 
> # ip route list
> 192.231.203.132 via 192.168.4.254 dev eth0
> 61.8.0.113 via 192.168.4.1 dev eth0
> 192.168.4.0/24 dev eth0  proto kernel  scope link  src 192.168.4.2
> 192.168.3.0/24 dev eth2  proto kernel  scope link  src 192.168.3.1
> 192.168.2.0/24 dev eth1  proto kernel  scope link  src 192.168.2.1
> 192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.1
> 192.168.0.0/24 dev eth1  proto kernel  scope link  src 192.168.0.1
> default
> nexthop via 192.168.4.1  dev eth0 weight 1
> nexthop via 192.168.4.254  dev eth0 weight 3
> 
> 
> We were thinking, having RTFMed, that the traffic going thru
> 192.168.4.1 is three times of that going to 192.168.4.254.
> but it seems all the traffic is going to 192.168.4.1.
> 
> Java being our forte, we were wondering if there was an
> org.iproute.node.setWeightMultiplier() method call or something?
> 
> Just kidding, perhaps there is something we are missing? Any help
> mucho appreciado.
> 
> 
> Best regards
> 
> 
> Stuart Guthrie
> Director
> Polonious Pty Ltd
> (w) http://www.polonious.com.au
> (m) 0403 470 123
> Polonious Support Numbers:
> Sydney: 61-2-9007-9842
> Chicago: 1-312-212-3952
> 
> This above all: to thine ownself be true,
> And it must follow, as the night the day,
> Thou canst not then be false to any man.
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Networking weighting problems

2007-11-22 Thread Stuart Guthrie
Hi list

We're trying to a 'weight' to pipe traffic through two channels to the
internet from an office.

This is our route info:

# ip route list
192.231.203.132 via 192.168.4.254 dev eth0
61.8.0.113 via 192.168.4.1 dev eth0
192.168.4.0/24 dev eth0  proto kernel  scope link  src 192.168.4.2
192.168.3.0/24 dev eth2  proto kernel  scope link  src 192.168.3.1
192.168.2.0/24 dev eth1  proto kernel  scope link  src 192.168.2.1
192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.1
192.168.0.0/24 dev eth1  proto kernel  scope link  src 192.168.0.1
default
nexthop via 192.168.4.1  dev eth0 weight 1
nexthop via 192.168.4.254  dev eth0 weight 3


We were thinking, having RTFMed, that the traffic going thru
192.168.4.1 is three times of that going to 192.168.4.254.
but it seems all the traffic is going to 192.168.4.1.

Java being our forte, we were wondering if there was an
org.iproute.node.setWeightMultiplier() method call or something?

Just kidding, perhaps there is something we are missing? Any help
mucho appreciado.


Best regards


Stuart Guthrie
Director
Polonious Pty Ltd
(w) http://www.polonious.com.au
(m) 0403 470 123
Polonious Support Numbers:
Sydney: 61-2-9007-9842
Chicago: 1-312-212-3952

This above all: to thine ownself be true,
And it must follow, as the night the day,
Thou canst not then be false to any man.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html