From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-15?Q?V=EDctor_Nu=F1o?= Date: Fri, 09 May 2003 15:44:58 +0000 Subject: Re: [LARTC] load balancing MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------080007050003090102080005" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org This is a multi-part message in MIME format. --------------080007050003090102080005 Content-Type: text/plain; charset="iso-8859-15"; format="flowed" Content-Transfer-Encoding: quoted-printable I tried this and it works when an interface goes down, but how can I do=20 if it's not an interface but one of these gateways that goes down? I=20 would like that in this case, the apropriate "nexthop" drops too, so my=20 traffic goes through the other two, and when that fallen gateway is once=20 again alive, the "nexthop" comes alive too, so it's once again used. How=20 can I do this? Regards, V=EDctor Sjaak Nabuurs wrote: >Yes it is=20 > >I'm running it over 3 lines very nicely > >Just use : > >/sbin/ip route add equalize \ > nexthop via $ADSL_GW1 dev $ADSL_IFACE1 weight 1\ > nexthop via $ADSL_GW2 dev $ADSL_IFACE2 weight 1\ > nexthop via $ADSL_GW3 dev $ADSL_IFACE3 weight 1 > > > > > > >On Thu, 2003-05-08 at 13:50, Lucas Aimaretto wrote: > =20 > >>Hi, >> >>Is it possible to balance load over 2 interfaces ... >> >>Let say I'm shapping traffic on eth1, and for some reason, eth1 brokes >>down. How do I, dynamically, swap to eth0 so I wont stop my traffic >>going thru the box? >> >>Am I clear?. Please for give me for my english since it is not my >>native languaje. >> >>regards >> >>Lucas >>_______________________________________________ >>LARTC mailing list / LARTC@mailman.ds9a.nl >>http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >> =20 >> > >_______________________________________________ >LARTC mailing list / LARTC@mailman.ds9a.nl >http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > =20 > --------------080007050003090102080005 Content-Type: text/html; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable I tried this and it works when an interface goes down, but how can I do if it's not an interface but one of these gateways that goes down? I would like that in this case, the apropriate "nexthop" drops too, so my traffic goes through the other two, and when that fallen gateway is once again alive, the "nexthop" comes alive too, so it's once again used. How can I do this?

Regards,

V=EDctor

Sjaak Nabuurs wrote:
Yes it is=20

I'm running it over 3 lines very nicely

Just use :

/sbin/ip route add equalize \
            nexthop via $ADSL_GW1 dev $ADSL_IFACE1 weight 1\
            nexthop via $ADSL_GW2 dev $ADSL_IFACE2 weight 1\
            nexthop via $ADSL_GW3 dev $ADSL_IFACE3 weight 1






On Thu, 2003-05-08 at 13:50, Lucas Aimaretto wrote:
  
Hi,

Is it possible to balance load over 2 interfaces ...

Let say I'm shapping traffic on eth1, and for some reason, eth1 brokes
down. How do I, dynamically, swap to eth0 so I wont stop my traffic
going thru the box?

Am I clear?. Please for give me for my english since it is not my
native languaje.

regards

Lucas
_______________________________________________
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=
/

  

--------------080007050003090102080005-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/