* [LARTC] Strange error!?
@ 2004-11-22 13:46 Cow
2004-11-22 13:58 ` Ilia Lindov
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Cow @ 2004-11-22 13:46 UTC (permalink / raw)
To: lartc
I was using this setup and it worked fine untill i executed up2date in
Redhat and updated a lot of the packages in linux.
When i run the following script i get an error, which i pasted bellow.
Script i run:
iptables -t mangle -A FORWARD -s 171.100.20.110 -j
MARK --set-mark 28
iptables -t mangle -A POSTROUTING -s ! 171.100.20.96/27 -d
171.100.20.110 -j MARK --set-mark 29
#Root QDiscs
#### upstream
tc qdisc add dev $WAN root handle 1: htb default 16
#### downstream
tc qdisc add dev $LAN root handle 1: htb default 16
########### Classes ###########
########### Uploads
tc class add dev $WAN parent 1: classid 1:1 htb rate 100mbit
ceil 100mbit
tc class add dev $WAN parent 1:1 classid 1:10 htb rate 64kbit
ceil 64kbit
tc class add dev $WAN parent 1:1 classid 1:11 htb rate 128kbit
ceil 128kbit
########### Downloads
tc class add dev $LAN parent 1: classid 1:1 htb rate 100mbit
ceil 100mbit
tc class add dev $LAN parent 1:1 classid 1:10 htb rate 128kbit
ceil 128kbit
tc class add dev $LAN parent 1:1 classid 1:11 htb rate 256kbit
ceil 256kbit
########### Filter and send to correct classid ###########
########### Downloads
tc filter add dev $LAN parent 1:0 protocol ip prio 7 handle 29
fw classid 1:10
########### Uploads
tc filter add dev $WAN parent 1:0 protocol ip prio 7 handle 28
fw classid 1:10
########### Making the QDiscs
tc qdisc add dev $LAN parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev $LAN parent 1:11 handle 11: sfq perturb 10
tc qdisc add dev $WAN parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev $WAN parent 1:11 handle 11: sfq perturb 10
THIS HAS WORKED BEFORE!
Now the error i get is:
Unknown qdisc "htb", hence option "default" is unparsable
Unknown qdisc "htb", hence option "default" is unparsable
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
Error: Qdisc "htb" is classless.
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
What the hell happend?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Strange error!?
2004-11-22 13:46 [LARTC] Strange error!? Cow
@ 2004-11-22 13:58 ` Ilia Lindov
2004-11-22 14:01 ` Cow
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Ilia Lindov @ 2004-11-22 13:58 UTC (permalink / raw)
To: lartc
Do you have kernel support for HTB?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Strange error!?
2004-11-22 13:46 [LARTC] Strange error!? Cow
2004-11-22 13:58 ` Ilia Lindov
@ 2004-11-22 14:01 ` Cow
2004-11-22 14:19 ` Ilia Lindov
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Cow @ 2004-11-22 14:01 UTC (permalink / raw)
To: lartc
As i said this has worked before, a few days ago it was running
perfectly.
But let's pretend i dont, how do i check if my kernel supports HTB?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Strange error!?
2004-11-22 13:46 [LARTC] Strange error!? Cow
2004-11-22 13:58 ` Ilia Lindov
2004-11-22 14:01 ` Cow
@ 2004-11-22 14:19 ` Ilia Lindov
2004-11-22 14:36 ` Cow
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Ilia Lindov @ 2004-11-22 14:19 UTC (permalink / raw)
To: lartc
In '/boot' directory you should have a file named 'config-xxx-(kernel
version)'. Open it and there you have to look for a line like that:
CONFIG_NET_SCH_HTB=y
or
CONFIG_NET_SCH_HTB=m
Also if you have htb as a module, be sure that it is loaded.
Regards: Ilia
Cow wrote:
> As i said this has worked before, a few days ago it was running
> perfectly.
>
> But let's pretend i dont, how do i check if my kernel supports HTB?
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Strange error!?
2004-11-22 13:46 [LARTC] Strange error!? Cow
` (2 preceding siblings ...)
2004-11-22 14:19 ` Ilia Lindov
@ 2004-11-22 14:36 ` Cow
2004-11-22 14:43 ` Cow
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Cow @ 2004-11-22 14:36 UTC (permalink / raw)
To: lartc
I have the following in config:
CONFIG_NET_SCH_HTB=m
So should be ok.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Strange error!?
2004-11-22 13:46 [LARTC] Strange error!? Cow
` (3 preceding siblings ...)
2004-11-22 14:36 ` Cow
@ 2004-11-22 14:43 ` Cow
2004-11-22 14:52 ` Ilia Lindov
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Cow @ 2004-11-22 14:43 UTC (permalink / raw)
To: lartc
Dunno if the module is loaded, but i found it here:
/lib/modules/2.4.20-8/kernel/net/sched/sch_htb.o
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Strange error!?
2004-11-22 13:46 [LARTC] Strange error!? Cow
` (4 preceding siblings ...)
2004-11-22 14:43 ` Cow
@ 2004-11-22 14:52 ` Ilia Lindov
2004-11-22 17:36 ` Cow
2004-11-23 15:21 ` Andy Furniss
7 siblings, 0 replies; 9+ messages in thread
From: Ilia Lindov @ 2004-11-22 14:52 UTC (permalink / raw)
To: lartc
check that it's loaded with 'lsmod'
Cow wrote:
> Dunno if the module is loaded, but i found it here:
> /lib/modules/2.4.20-8/kernel/net/sched/sch_htb.o
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Strange error!?
2004-11-22 13:46 [LARTC] Strange error!? Cow
` (5 preceding siblings ...)
2004-11-22 14:52 ` Ilia Lindov
@ 2004-11-22 17:36 ` Cow
2004-11-23 15:21 ` Andy Furniss
7 siblings, 0 replies; 9+ messages in thread
From: Cow @ 2004-11-22 17:36 UTC (permalink / raw)
To: lartc
Seems like it's loaded and running:
Module Size Used by Not tainted
cls_fw 3512 1 (autoclean)
sch_ingress 2848 0 (autoclean)
cls_u32 6300 0 (autoclean)
sch_sfq 4096 2 (autoclean)
sch_htb 22016 1 (autoclean)
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Strange error!?
2004-11-22 13:46 [LARTC] Strange error!? Cow
` (6 preceding siblings ...)
2004-11-22 17:36 ` Cow
@ 2004-11-23 15:21 ` Andy Furniss
7 siblings, 0 replies; 9+ messages in thread
From: Andy Furniss @ 2004-11-23 15:21 UTC (permalink / raw)
To: lartc
Cow wrote:
> I was using this setup and it worked fine untill i executed up2date in
> Redhat and updated a lot of the packages in linux.
> Unknown qdisc "htb", hence option "default" is unparsable
Maybe it updated the tc binary to one that doesn't know about HTB.
Try posting to a redhat list.
Andy.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-11-23 15:21 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-22 13:46 [LARTC] Strange error!? Cow
2004-11-22 13:58 ` Ilia Lindov
2004-11-22 14:01 ` Cow
2004-11-22 14:19 ` Ilia Lindov
2004-11-22 14:36 ` Cow
2004-11-22 14:43 ` Cow
2004-11-22 14:52 ` Ilia Lindov
2004-11-22 17:36 ` Cow
2004-11-23 15:21 ` Andy Furniss
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.