From: Piotr Chytla Date: Tue, 05 Jun 2007 19:46:01 +0000 Subject: Re: [LARTC] Multipath routing Message-Id: <20070605194601.GB25580@packetconsulting.pl> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Tue, Jun 05, 2007 at 11:13:52AM +0200, Micha=B3 Margula wrote: > Hello! > Hi =20 > I have trouble with multipath routing. Those options are enabled in=20 > kernel: >=20 > [*] IP: policy routing > [*] IP: equal cost multipath > [*] IP: equal cost multipath with caching support (EXPERIMENTAL) > <*> MULTIPATH: round robin algorithm > First of all equal cost multipathing is evil ;>, It simply doesn't work for= packets in forwarding path besides support in kernel is not maintained Realy if you want load balance both uplinks disable CONFIG_IP_ROUTE_MULTIPATH_CACHED and you will have random traffic=20 distribiution between both links. More details :=20 http://lists.openwall.net/netdev/2007/03/14/50 http://lists.openwall.net/netdev/2007/03/12/76 http://lists.quagga.net/pipermail/quagga-users/2007-May/008469.ht= ml =20 > Also I have trouble using multipath quagga, it simply doesn't put=20 > multipath route in routing table. >=20 > For example: >=20 > faramir# sh ip bgp 10.100.0.1 > BGP routing table entry for 10.101.0.0/22 > Paths: (2 available, best #1, table Default-IP-Routing-Table) > Not advertised to any peer > Local > 80.245.176.13 (metric 1) from 80.245.176.13 (80.245.177.4) > Origin IGP, metric 0, localpref 100, weight 150, valid, internal,=20 > best > Last update: Tue Jun 5 01:59:29 2007 >=20 > Local > 80.245.176.10 (metric 1) from 80.245.176.10 (80.245.176.10) > Origin IGP, metric 0, localpref 100, weight 100, valid, internal > Last update: Tue Jun 5 01:28:02 2007 > BGP always have alternative paths in BGP RIB and mostly don't insert them as multipath route to FIB. Of course there is path : http://lebon.org.ua/quagga.html that force=20 route to be inserted to kernel with multiple gateways - but realy this is some kind of dirty-hack. Check thread 'Linux and BGP multipath' on quagga-dev, and especially this m= ail: http://lists.quagga.net/pipermail/quagga-dev/2007-April/004700.h= tml > # ip r s > [...] > 10.100.0.0/22 via 80.245.176.11 dev eth0 proto zebra >=20 > But if I manually put something like that in quagga: >=20 > faramir(config)# ip route 1.2.3.0/24 80.245.176.13 > faramir(config)# ip route 1.2.3.0/24 80.245.176.11 >=20 yeah this is static route. /pch --=20 Dyslexia bug unpatched since 1977 ... exploit has been leaked to the underground. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc