<alisson-empresas-seguranca@mt4.com.br>
2003-Nov-05 00:59 UTC
Two uplink provides with debian ( woody ) - problem to insert route in a table
Hello, I''m trying to configure iproute2 with two providers in a Load balancing configuration according "Linux Advanced Routing & Traffic Control HOWTO". I''m working with two links: - static ip (adsl link - 256Kbps) - dynamic ip (512kbps). In my HedHat 7.2 everything works well, but in my debian (woody) something wrong is going on. First I have to create two tables, one for each provider. That''s ok, but when I try to add an route to one of these tables, it goes to main table. # ip route add default via $P1 table T1 looks OK, but the route goes to table main # ip route add default via $P2 table T2 NOK, because it goes to table main too, not to table T2. Any clues??? Thanks in advance, _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Sebastian A. Aresca
2003-Nov-05 04:23 UTC
Re: Two uplink provides with debian ( woody ) - problem to insert route in a table
Try this ip route $P1 default scope global nexthop via 10.129.30.1 dev eth0 weight 1 \ nexthop via 10.129.31.1 dev eth1 weight 1> Hello, > > I''m trying to configure iproute2 with two providers in a Load balancingconfiguration according "Linux Advanced Routing & Traffic Control HOWTO".> > I''m working with two links: > - static ip (adsl link - 256Kbps) > - dynamic ip (512kbps). > > In my HedHat 7.2 everything works well, but in my debian (woody) somethingwrong is going on. First I have to create two tables, one for each provider. That''s ok, but when I try to add an route to one of these tables, it goes to main table.> > # ip route add default via $P1 table T1 > looks OK, but the route goes to table main > > # ip route add default via $P2 table T2 > NOK, because it goes to table main too, not to table T2. > > Any clues??? > > Thanks in advance, > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Thomas Themel
2003-Nov-05 10:05 UTC
Re: Two uplink provides with debian ( woody ) - problem to insert route in a table
Hi, alisson-empresas-seguranca@mt4.com.br wrote on 2003-11-05:> In my HedHat 7.2 everything works well, but in my debian (woody) > something wrong is going on. First I have to create two tables, one > for each provider. That''s ok, but when I try to add an route to one of > these tables, it goes to main table.It sounds stupid, I know, but it happened to me before: Do you have duplicate numeric ids in /etc/iproute2/rt_tables? ciao, -- [*Thomas Themel*] [...] this quickly escalated into a Holy War with Emacs [extended contact] users on one side and Jeep Wrangler drivers on the other. [info provided in] It was hard to tell but I think Emacs came out as the better [*message header*] utility vehicle. - Casey West _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/