* Re: [LARTC] unknown qdisc 'htb' ???
2002-01-23 7:44 [LARTC] unknown qdisc 'htb' ??? Patrick Van Acker
@ 2002-01-23 8:09 ` Stef Coene
2002-01-23 14:24 ` Patrick McHardy
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Stef Coene @ 2002-01-23 8:09 UTC (permalink / raw)
To: lartc
> 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/,
> 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?
Have you patched and recompiled iproute2 ?
Stef
--
stef.coene@docum.org
More QOS info : http://www.docum.org/
Title : "Using Linux as bandwidth manager"
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [LARTC] unknown qdisc 'htb' ???
2002-01-23 7:44 [LARTC] unknown qdisc 'htb' ??? Patrick Van Acker
2002-01-23 8:09 ` Stef Coene
@ 2002-01-23 14:24 ` Patrick McHardy
2003-02-04 14:29 ` Emmanuel Guiton
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Patrick McHardy @ 2002-01-23 14:24 UTC (permalink / raw)
To: lartc
Hi.
You are probably using an old version of tc,
try downloading the precompiled binary from the
htb site or get the sources at http://diffserv.sourceforge.net/
Patrick
Patrick Van Acker schrieb:
>
> 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/,
> 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://ds9a.nl/lartc/
--
Computers are like air conditioners.
They stop working when you open Windows.
--
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [LARTC] unknown qdisc 'htb' ???
2002-01-23 7:44 [LARTC] unknown qdisc 'htb' ??? Patrick Van Acker
2002-01-23 8:09 ` Stef Coene
2002-01-23 14:24 ` Patrick McHardy
@ 2003-02-04 14:29 ` Emmanuel Guiton
2003-02-04 14:43 ` David DeLauro
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Emmanuel Guiton @ 2003-02-04 14:29 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [LARTC] unknown qdisc 'htb' ???
2002-01-23 7:44 [LARTC] unknown qdisc 'htb' ??? Patrick Van Acker
` (2 preceding siblings ...)
2003-02-04 14:29 ` Emmanuel Guiton
@ 2003-02-04 14:43 ` David DeLauro
2003-02-04 15:03 ` Emmanuel Guiton
2003-02-04 15:14 ` Stef Coene
5 siblings, 0 replies; 7+ messages in thread
From: David DeLauro @ 2003-02-04 14:43 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [LARTC] unknown qdisc 'htb' ???
2002-01-23 7:44 [LARTC] unknown qdisc 'htb' ??? Patrick Van Acker
` (3 preceding siblings ...)
2003-02-04 14:43 ` David DeLauro
@ 2003-02-04 15:03 ` Emmanuel Guiton
2003-02-04 15:14 ` Stef Coene
5 siblings, 0 replies; 7+ messages in thread
From: Emmanuel Guiton @ 2003-02-04 15:03 UTC (permalink / raw)
To: lartc
>>>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/
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [LARTC] unknown qdisc 'htb' ???
2002-01-23 7:44 [LARTC] unknown qdisc 'htb' ??? Patrick Van Acker
` (4 preceding siblings ...)
2003-02-04 15:03 ` Emmanuel Guiton
@ 2003-02-04 15:14 ` Stef Coene
5 siblings, 0 replies; 7+ messages in thread
From: Stef Coene @ 2003-02-04 15:14 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 7+ messages in thread