From: Paulo Ricardo Bruck Date: Thu, 07 Apr 2005 18:45:29 +0000 Subject: Re: [LARTC] question about correct way of shapping Message-Id: <1112899529.21408.78.camel@pauloric.intranet> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1532806126==" List-Id: References: <1112886400.21408.66.camel@pauloric.intranet> In-Reply-To: <1112886400.21408.66.camel@pauloric.intranet> To: lartc@vger.kernel.org --===============1532806126== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-HC1RqbjGEk94vY8AhHHD" --=-HC1RqbjGEk94vY8AhHHD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Em Qui, 2005-04-07 =E0s 10:22 -0700, Corey Hickey escreveu: > Paulo Ricardo Bruck wrote: >=20 > >=20 > > <--- up 128K =20 > > internet ----- dsl ---------------------eth1 -Linux Qos- eth0 ------ LA= N > > ---> down 450k=09 > >=20 > >=20 > > If I want "shape" traffic to my LAN ( sharing equally download for all > > users) I have to insert a rule like this > >=20 > > tc qdisc add dev eth0 root handle 1:0 htb > > tc class add dev eth0 parent 1:0 classid 1:1 htb rate 400kbit > > and ....other rules > >=20 > > and If I want "shape" traffic to Internet ( not allowing a single user > > to destroy upload) I have to insert a rule like this: > >=20 > > tc qdisc add dev eth1 root handle 1:0 htb > > tc class add dev eth1 parent 1:0 classid 1:1 htb rate 100kbit > > and ...other rules > >=20 > >=20 > > Is it correct?? >=20 > Yes. That's the way to do it. Don't forget to add some filters (tc > filter add ...) to send traffic into those queues. >=20 Yes I'll not forget 8)=20 thanks for quickly answer Corey Just another question related w/ shapping =20 at some documents it's describe the use of IMQ and some other the use of dummy device. What's the best method ? From what I've read we use dummy to shape both lan and wan using dummy device. It's correct? If it's correct why does we use dummy insted shape at LAn and Wan Interfaces ? I intend use TC + iptables + debian sarge, but I'm not sure about using dummy device.... thanks in advance > -Corey --=20 Paulo Ricardo Bruck - consultor --=-HC1RqbjGEk94vY8AhHHD Content-Type: application/pgp-signature; name=signature.asc Content-Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBCVX/J89ZqUGE0XNMRAqxKAJ4uV5f9OiE9mQljjEPXac8YBtI7dgCghNKz kPOIMPxdN+vRYkHzGK4jNeo= =HMjg -----END PGP SIGNATURE----- --=-HC1RqbjGEk94vY8AhHHD-- --===============1532806126== 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 --===============1532806126==--