From: "Paa.listas" Date: Wed, 21 Nov 2007 15:12:31 +0000 Subject: RE: [LARTC] Load Balancing with secondary tables (not main as in the Message-Id: <47444ae7.0a86460a.7e1d.2c42@mx.google.com> List-Id: References: <474440b8.0c86460a.71b8.0bd4@mx.google.com> In-Reply-To: <474440b8.0c86460a.71b8.0bd4@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Thanks! It works. # -----Mensaje original----- # De: Arnd Steinbrecher [mailto:] # Enviado el: Mi=E9rcoles, 21 de Noviembre de 2007 12:00 p.m. # Para: Paa.listas # Asunto: Re: [LARTC] Load Balancing with secondary tables (not main as in # the howto) #=20 # Hi, # you have to write NODE_SPEC in front of INFO_SPEC. I you case: #=20 # ip route add default scope global table DSL nexthop via 10.0.1.1 dev eth3 # weight # 1 nexthop via 10.0.2.1 dev eth3 weight 3 nexthop via 10.0.3.1 dev eth3 # weight 2 #=20 # > Hello, #=20 #=20 #=20 # > We have 3 DSL connections connected to eth3 and another interface # with # > a dedicated link in eth0 (main table) #=20 #=20 #=20 # > We want to balance selected traffic (using fwmark and iptables) through # our # > 3 DSL connections in a secondary table named DSL (without using the # > dedicated link in eth0), but the next command is not accepted, and gives # us # > the following error: #=20 #=20 #=20 #=20 #=20 # > # ip route add default scope global nexthop via 10.0.1.1 dev eth3 weight # 1 # > nexthop via 10.0.2.1 dev eth3 weight 3 nexthop via 10.0.3.1 dev eth3 # weight # > 2 table DSL #=20 # > Error: "nexthop" or end of line is expected instead of "table" #=20 #=20 #=20 #=20 #=20 #=20 #=20 # > That because the syntax rules of ip: #=20 #=20 #=20 # > # ip route add help #=20 # > Usage: #=20 # > ip route { add | del | change | append | replace | monitor } # ROUTE #=20 # > SELECTOR :=3D [ root PREFIX ] [ match PREFIX ] [ exact PREFIX ] #=20 # > [ table TABLE_ID ] [ proto RTPROTO ] #=20 # > [ type TYPE ] [ scope SCOPE ] #=20 # > ROUTE :=3D NODE_SPEC [ INFO_SPEC ] #=20 # > NODE_SPEC :=3D [ TYPE ] PREFIX [ tos TOS ] #=20 # > [ table TABLE_ID ] [ proto RTPROTO ] #=20 # > [ scope SCOPE ] [ metric METRIC ] #=20 # > INFO_SPEC :=3D NH OPTIONS FLAGS [ nexthop NH ]... #=20 # > NH :=3D [ via ADDRESS ] [ dev STRING ] [ weight NUMBER ] NHFLAGS #=20 #=20 #=20 #=20 #=20 # > The question is, can I add load balancing over a secondary table in any # > other way? Why ip route add doesn't allow this? #=20 #=20 #=20 # > Thanks in advance. #=20 #=20 #=20 #=20 #=20 # > Note: #=20 #=20 #=20 # > - Architecture: #=20 #=20 #=20 #=20 #=20 # > Linux box ---- eth3 --------------- | ----- ADSL1 (IP: 10.0.1.1) #=20 # > | | ----- ADSL2 (IP: 10.0.2.1) #=20 # > | | ----- ADSL3 (IP: 10.0.3.1) #=20 # > eth0 #=20 #=20 #=20 #=20 #=20 #=20 #=20 # > # ip addr show dev eth3 #=20 # > 5: eth3: mtu 1500 qdisc pfifo_fast qlen 1000 #=20 # > link/ether 00:16:17:9d:3d:b2 brd ff:ff:ff:ff:ff:ff #=20 # > inet 10.0.1.2/24 brd 10.255.255.255 scope global eth3 #=20 # > inet 10.0.2.2/24 brd 10.255.255.255 scope global eth3:1 #=20 # > inet 10.0.3.2/24 brd 10.255.255.255 scope global eth3:2 #=20 #=20 #=20 #=20 #=20 #=20 #=20 #=20 #=20 #=20 #=20 #=20 #=20 #=20 #=20 # -- # Mit freundlichen Gr=FC=DFen # Arnd Steinbrecher # INVERS GmbH, An den Weiden 17, 57078 Siegen # Tel: +49 271 23888 0, Fax: +49 271 23888 29 # HRB Siegen: 4822, Gesch=E4ftsf=FChrer/CEO: Uwe Latsch _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc