On Tue, Apr 08, 2008 at 11:59:10PM +0300, Stuart Gall wrote:
> Hello,
> SO I have scoured the internet, the man pages, groups. I just cant find
> a definitive answer.
>
>
> weight NUMBER - is a weight for this element of a multi-
> path route reflecting its relative bandwidth or quality.
>
>
> So more weight = better quality = preferred ????
>
>
> e.g.
> ip route add default scope global nexthop via x.x.x.1 dev eth0 weight 1
> nexthop via x.x.x.2 dev eth0 weight 2
my understanding is that 2/3 will go via .2 and 1/3 will go via .1
try some thing like
for x in ($seq 1 20)
do
ip r g 1.1.2.$x
done
it should show you the route path taken and 33% should be via .1 and 66%
via .2
>
> Does a higher weight mean that the route will be used more or used less ?
>
>
> TIA
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
--
The art of war is of vital importance
to the State. It is a matter of life and death, a road
either to safety or to ruin. Hence it is a subject of
inquiry which can on no account be neglected.
-- Sun Tzu - The Art of War
Attachment:
signature.asc
Description: Digital signature