Re: IP route balance problem

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Javier,

On Tue, 2006-03-28 at 13:23 +0200, Javier Suarez wrote:
>
> ip route add $P1_NET dev $IF1 src $IP1 table T1
> ip route add default via $P1 table T1
> 
> ip route add $P2_NET dev $IF2 src $IP2 table T2
> ip route add default via $P2 table T2

You are missing the prohibit lines above, and you should start with a
rule line, not and add route line.
http://www.ssi.bg/~ja/nano.txt

ip rule add prio 201 from NWE1/NME1 table 201
ip route add default via GWE1 dev IFE1 src IPE1 proto static table 201
ip route append prohibit default table 201 metric 1 proto static

ip rule add prio 202 from NWE2/NME2 table 202
ip route add default via GWE2 dev IFE2 src IPE2 proto static table 202
ip route append prohibit default table 202 metric 1 proto static


> ip route add $P1_NET dev $IF1 src $IP1
> ip route add $P2_NET dev $IF2 src $IP2
> 
> ip route add equalize default nexthop via 192.168.254.254 dev eth2 
> nexthop via 192.168.1.1 dev eth1
> 
> ip rule add from $IP1 table T1
> ip rule add from $IP2 table T2

Pretty sure these will not be needed when you do the above correctly.

> 
> I have read in books and faqs and this should enough to do balance 
> charging working, but isn't.

Nope, you got to follow that nano how to.

> The problem is the same than sawar, src ips are wrong...or at least 
> stranges  :-/

Sure because your rules and routes are strange.

-- 
Sincerely,
William L. Thomson Jr.
Obsidian-Studios, Inc.
http://www.obsidian-studios.com

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux