Hello, Could you tell me how did you solve your problem? I have exactly the same problem but with this configuration: - linux 2.4.20 kernel, HTB option checked - iproute2-2.4.7-now-ss010824.tar.gz installed, which is the latest version I found at ftp://ftp.sunet.se/pub/Linux/ip-routing/, except for "try" or "do not use" versions. I guess I do not need patching iproute2 and I''m not using an old version of tc either. Or am I wrong somewhere? Br, Emmanuel>Hello, > >I''d like to try out HTB for traffic shaping. > >I have a test machine with Redhat 7.2 (kernel 2.4.10), I''ve downloaded >kernel 2.4.17, applied the patch from http://luxik.cdi.cz/~devik/qos/htb/, <http://luxik.cdi.cz/%7Edevik/qos/htb/,> >recompiled the kernel (checked the option to use HTB in make menuconfig), >and rebooted with the new kernel. > >When I try to add some rules with HTB (f.i. tc qdisc add dev eth0 root >handle 1: htb default 1:1 ), I got the following error message: >Unknown qdisc "htb", hence option "default" is unparsable > >Obviously, this is not what I want :-) > >What is going wrong here? > >Regards, >Patrick_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tue, 4 Feb 2003 At 16:29 +0200, emmanuel@netlab.hut.fi Articulated:> > Could you tell me how did you solve your problem?> >When I try to add some rules with HTB (f.i. tc qdisc add dev eth0 root > >handle 1: htb default 1:1 ), I got the following error message: > >Unknown qdisc "htb", hence option "default" is unparsable > >Correct me if I''m wrong but I believe the "default" option requires a class not a parent:class combo. When I create an htb qdisc I use the command: tc qdisc add dev eth1 root handle 1: htb default 40 but I suppose in your case you could use: tc qdisc add dev eth1 root handle 1: htb default 1 // I''ve tried the above command and it returns just fine peace -- David DeLauro Do not handicap your children by making their lives easy. - Robert Heinlein When the World gains wisdom I will gain peace. - Id When secrecy becomes a certain protection in whose shadow embryonic ideas are born and nurtured then it becomes indeed a sacred silence. For every form of life, from flower to very man himself, requires this fostering period of protected germination. - Rollin Malbone Pease _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>>>When I try to add some rules with HTB (f.i. tc qdisc add dev eth0 root >>>handle 1: htb default 1:1 ), I got the following error message: >>>Unknown qdisc "htb", hence option "default" is unparsable >>> >>> >>> > > >Correct me if I''m wrong but I believe the "default" option requires a >class not a parent:class combo. When I create an htb qdisc I use the >command: > >tc qdisc add dev eth1 root handle 1: htb default 40 > >but I suppose in your case you could use: > >tc qdisc add dev eth1 root handle 1: htb default 1 >// I''ve tried the above command and it returns just fine >Well, in fact my exact line is: tc qdisc add dev eth1 root handle 1: htb default 12 So it''s the same than yours (sorry I hadn''t noticed the slight difference with Patrick''s line) but it doesn''t work. Thanks anyway. Emmanuel _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tuesday 04 February 2003 15:29, Emmanuel Guiton wrote:> Hello, > > Could you tell me how did you solve your problem? > I have exactly the same problem but with this configuration: > - linux 2.4.20 kernel, HTB option checked > - iproute2-2.4.7-now-ss010824.tar.gz installed, which is the latest > version I found at ftp://ftp.sunet.se/pub/Linux/ip-routing/, except for > "try" or "do not use" versions. I guess I do not need patching iproute2 and > I''m not using an old version of tc either.You need to patch iproute2 for htb support. The patch can be found on the htb homepage. Or use the binary found on the htb homepage or go to www.docum.org. I have a tc binary on it with htb support on the download page. 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/