From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Osgaldo Suanzes" Date: Mon, 19 May 2003 23:01:44 +0000 Subject: Re: [LARTC] Shaping only the interface bandwith Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi again. Sorry for bugging you so much! But Im unable to add ESFQ to a HTB Class. #tc qdisc add dev eth1 root handle 1: htb #tc class add dev eth1 parent 1: classid 1:1 htb rate 512kbit ceil 512kbit burst 2k #tc qdisc add dev eth1 parent 1:1 handle 10: esfq The last line "is" probably completly Wrong!(dont know about the others) But I cant find an example on the net for this. I maybe need to add a filter, but how? and without matching Ip addresses. I would appreciate If you could write me down a few lines on how it has to look like, or correct the lines above. The Problem Description again: Need to shape traffic on Interface Eth1 (lan users) to 512 kbit, using Htb and Esfq.(or something else) So that every user gets a fair download bandwidth 1user0% , 2 usersP%each 3users3,3% each ....so on. I cant use Iptables to mark Packets, and I have no information on Ip addresses(Mac, etc) of the Users on that Lan. (this maybe a problem because I dont know how to add a filter if I dont know what(IP,Mac,) to match? Maybe there is a way to match "all" traffic and send it to a class??) Thanls for all your patient Osgaldo. ---------------------------------------------------------------------------- --------------------------------------------------------------------------- ----- Original Message ----- From: "Stef Coene" To: "Osgaldo Suanzes" Sent: Monday, May 19, 2003 8:43 PM Subject: Re: [LARTC] Shaping only the interface bandwith > On Monday 19 May 2003 16:26, Osgaldo Suanzes wrote: > > Hi Stef. > > > > Thanks a lot for your comments , otherwise my english is to bad to > > understand well the docs. > > Indeed it works quite well. > > I typed > > # tc qdisc add dev eth1 root esfq > > Every conection was treated "fairly" , the issue I have is how do I > > Shape Interface Eth1 down to 512kb? > > I read on man tc-sfq , that this is a non-shaping (work conserving) > > qdisc. So how do I define something like "rate" to it? > You have to use htb or cbq for that. With htb or cbq, you can create class > witj a limited bandwidth. You can add the esfq to that class. So all > traffic is limited with htb or cbq and esfq is used to distribute that > traffic. > > Stef > > -- > > stef.coene@docum.org > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.oftc.net > _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/