From: "gaston" Date: Sun, 07 Mar 2004 23:17:46 +0000 Subject: Re: [LARTC] Limiting bandwidth to entire LAN Message-Id: List-Id: References: <000b01c401f8$aafbc380$ce302bc8@traza> In-Reply-To: <000b01c401f8$aafbc380$ce302bc8@traza> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Well I=B4m quite confused about this. I had always shaped on the router (eth0 for outgoing and eth1 for incoming), everything was ok. Now the=20 scenario is different since I want to use a bridge for limiting (not=20 shaping and this is my mistake, I think :)) the 1Mbit connection to=20 512Kbit for the bridge and the other 512Kbit to go other way (not passing=20 through the bridge). So I think I should do this in a different way,=20 right? What should I do to acomplish this? Thanks for your help and patience.=20 Cheers. =20 -----Original Message----- From: Stef Coene To: lartc@mailman.ds9a.nl Date: Sat, 6 Mar 2004 13:15:44 +0100 Subject: Re: [LARTC] Limiting bandwidth to entire LAN > On Friday 05 March 2004 01:07, Damion de Soto wrote: > > Hi Gast=F3n, > > > > > tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip > src > > > 1.2.3.0/24 classid 1:30 > > > > > > tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip > dst > > > 1.2.3.0/24 classid 1:30 > > > > I'm pretty sure you want 'flowid 1:30' instead of classid on the > filters. > > > > To my knowledge, the classid is declaring the filter to have that > class, > > instead of directing the matching to the class with that id. > Fowid and classid are the same (from f_u32.c) : > } else if (matches(*argv, "classid") =3D 0 || > strcmp(*argv, "flowid") =3D 0) { >=20 > Stef >=20 > --=20 > stef.coene@docum.org > =A0"Using Linux as bandwidth manager" > =A0 =A0 =A0http://www.docum.org/ > =A0 =A0 =A0#lartc @ irc.openprojects.net > _______________________________________________ > 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/