From: Ales Klok Date: Fri, 13 Apr 2007 06:12:30 +0000 Subject: Re: [LARTC] Re: tc questions Message-Id: <461F1F4E.4010606@seznam.cz> List-Id: References: <1175692398.2649.11.camel@benve-laptop> In-Reply-To: <1175692398.2649.11.camel@benve-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Alejandro Ramos Encinosa wrote: > On Tuesday 10 April 2007 22:11, Andy Furniss wrote: > >> Alejandro Ramos Encinosa wrote: >> >>> tc qdisc add dev eth1 parent 1:20 handle 120: sfq perturb 10 >>> >>> tc class add dev eth1 parent 1:20 classid 1:21 htb rate 49mbit >>> >> This is a misconfiguration, it doesn't make sense to add sfq and another >> htb class to 1:20. >> > ...why? The case I am trying to deal with is an scenario where some traffic > goes into 1:20 (something like the traffic from/to the subnet 10.6.70.0/24) > and then, I want to shape specifically some other traffic type (for example, > the ssh connections from/to subnet 10.6.70.0/24). Is there another way to do > it? Please, take a in mind that (in my example) I want to enclose the whole > traffic from/to the subnet 10.6.70.0/24 and from that traffic I want to give > an special treatment to ssh traffic. > >> Andy. >> > Regards, Ale. > You can't attach qdisc to HTB inner class, because only leaf classes can hold packet queue. You have to create inner class with bandwith allocation for 10.6.70.0/24 and attach child classes to it (for SSH, RDP, ... whatever). Please check HTB manual and theory here http://luxik.cdi.cz/~devik/qos/htb/ (especially section 3. Sharing hierarchy) /ak _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc