Load Balance simply doesn´t work...
Hi, I don't share your opinion. In fact, I worked hard to get all this things working and finally it DOES work. I followed the explanation in the LARTC-HOWTO in section 4.2:
ip route add $P1_NET dev $IF1 src $IP1 table 10
ip route add default via $P1 table 10
ip route add $P2_NET dev $IF2 src $IP2 table 20
ip route add default via $P2 table 20
ip route add $P1_NET dev $IF1 src $IP1 # This may be not necessary ip route add $P2_NET dev $IF2 src $IP2 # This may be not necessary
## ip route add default via $P1 ## You don't have to set this default gw, because you'll be routing accross this gateway instead of doing load-balance
ip rule add from $IP1 table T1
ip rule add from $IP2 table T2
ip route add default scope global nexthop via $P1 dev $IF1 weight 1 \
nexthop via $P2 dev $IF2 weight 1
That's all, the last command is the default mutlipath gateway you will route packets accross.
Quoted 12 lines
i´ve been searching for a load balance solution since a month ago... what i can say is that it simply doesn´t work. I was unable to find one guy that did it with sucess. When "load balance" is the subject of the message on the list, the message is simply ignored.
So... if it doesn´t work... why LARTC don´t delete it from the HOW TO and answer us with some "it simply doesn´t work... give up man!". This can save the time of a lot of guys, including me....
Tks anyway
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 11 lines
Quoted 3 lines
Quoted 3 lines
ip route add default scope global nexthop via $P1 dev
$IF1 weight 1 \
Quoted 7 lines
Quoted 2 lines
nexthop via $P2 dev $IF2 weight 1
This multipath routing command keep coming up as classic way to perform multipath routing for NAT access, which I considered it as VERY misleading.
Quoted 5 lines
Quoted 1 line
It should only be used if you are NOT using NAT.
You mean that using NAT its impossible to do load balance or this is the worng command? If its the wrong command, what´s the right one?
Wrong way to do it. Destine for failure !
Imagine if you have several external IP addresses and your connection to a particular application keep changing from one IP to another ...
Perhaps you won't see any problem on short sessions or connectionless application but it is definitely a problem for connection oriented applications or security conscious applications.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello,
Quoted 3 lines · On Fri, 27 Aug 2004, [email protected] wrote:
You mean that using NAT its impossible to do load balance or this is the worng command? If its the wrong command, what´s the right one?
Don't disappoint, you can check the following patches
and howtos:
Quoted 2 lines
Tks A LOT for the response!
Fernando Favero
Regards
--
Julian Anastasov <[email protected]>
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/