[LARTC] Re: tc questions

Ales Klok orrie at seznam.cz
Fri Apr 13 08:12:30 CEST 2007


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



More information about the LARTC mailing list