From mboxrd@z Thu Jan 1 00:00:00 1970 From: Corey Hickey Date: Thu, 07 Apr 2005 17:22:11 +0000 Subject: Re: [LARTC] question about correct way of shapping Message-Id: <42556C43.8090208@fatooh.org> List-Id: References: <1112886400.21408.66.camel@pauloric.intranet> In-Reply-To: <1112886400.21408.66.camel@pauloric.intranet> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Paulo Ricardo Bruck wrote: > > <--- up 128K > internet ----- dsl ---------------------eth1 -Linux Qos- eth0 ------ LAN > ---> down 450k > > > If I want "shape" traffic to my LAN ( sharing equally download for all > users) I have to insert a rule like this > > 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 > > and If I want "shape" traffic to Internet ( not allowing a single user > to destroy upload) I have to insert a rule like this: > > 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 > > > Is it correct?? Yes. That's the way to do it. Don't forget to add some filters (tc filter add ...) to send traffic into those queues. -Corey _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc