From: "Carlos Blanquer" Date: Thu, 23 Mar 2006 16:06:06 +0000 Subject: Re: [LARTC] load balancing: per route or per interface? Message-Id: MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1229690692==" List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --===============1229690692== Content-Type: multipart/alternative; boundary="----=_Part_641_21181339.1143129966692" ------=_Part_641_21181339.1143129966692 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > > Get a switch thats supports VLANs ( eg cisco 2950 ), make a vlan trunk > to pc > > with 2 ethernet PCIs ( 1 to net , 1 to lan ). Connect each ADSL modem t= o > > switch, put each modem on some individual VLAN. Now configure VLANs on > > network interface on that PC connected to that switch ( i guess it will > be > > eth0 ) - you will get as many as you wish virtual interfaces ( like > eth0.1, > > eth0.2 and so on ), you can traffic shape on them, use iptables like on > any > > other interface... That is a good solution Another one is buy those PCI that has 4 ethernet plugs (aka 4 ethernets integrated into one PCI), then you can get up to 20 ethernets in a MoBo tha= t has 5 free PCIs. Is not an elegant solution, but is a fast one. > > > -- > > > > Hi, > > Then, will I be able to do load balancing like this? > > ip route add default table 221 proto static \ > nexthop via ${EXTGW1} dev eth0:0 weight 2\ > nexthop via ${EXTGW2} dev eth0:1 weight 2\ > nexthop via ${EXTGW3} dev eth0:2 weight 2\ > nexthop via ${EXTGW4} dev eth0:3 weight 2 Yes. Also, iptraf will only show traffic for eth0, not the virtual > interfaces, any workarounds? Thanks! > > Edu > > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc > > > -- Atentamente, Carlos. ------------------------------- LTIM Member - http://ltim.uib.es BkP Staff (Servidores, Gamer Area, Tesorean) - http://www.balearikus-party.org ------=_Part_641_21181339.1143129966692 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

>= Get a switch thats supports VLANs ( eg cisco 2950 ), make a vlan trunk to = pc
> with 2 ethernet PCIs ( 1 to net , 1 to lan ). Connect each ADSL mo= dem to
> switch, put each modem on some individual VLAN. Now configur= e VLANs on
> network interface on that PC connected to that switch ( = i guess it will be
> eth0 ) - you will get as many as you wish virtual interfaces ( lik= e eth0.1,
> eth0.2 and so on ), you can traffic shape on them, use ip= tables like on any
> other interface...

That is = a good solution=20
Another one is buy those PCI that has 4 ethernet plugs (aka 4 eth= ernets integrated into one PCI), then you can get up to 20 ethernets in a M= oBo that has 5 free PCIs.
Is not an elegant solution, but is a fast one.

>
&= gt; --
>

Hi,

Then, will I be able to do load balancing = like this?

ip route add default table 221 proto static \
   =          nexthop via ${EXTGW1}= dev eth0:0 weight 2\
        &n= bsp;   nexthop via ${EXTGW2} dev eth0:1 weight 2\
 &= nbsp;          nexthop vi= a ${EXTGW3} dev eth0:2 weight 2\
            = ;nexthop via ${EXTGW4} dev eth0:3 weight 2

Yes.

Also, iptraf will only show traffic for eth0, not the virtual
interfaces= , any workarounds?

 

Thanks!

Edu

_______________________________________________LARTC mailing list
LARTC@mail= man.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc





--
Atentamente,
  &= nbsp;           Carl= os.
-------------------------------
LTIM Member - http://ltim.uib.es
BkP Staff (Servidores, Gamer Area, Tesorean) - http://www.balearikus-party.org ------=_Part_641_21181339.1143129966692-- --===============1229690692== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1229690692==--