Re: Re: tc questions

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux