Skip to contentSkip to conversation

Strange error!?

LARTC Cow 3 participants 9 messages Nov 22, 2004 – Nov 23, 2004

lore
Share & tools
lore

Cow

author
#0 lore raw

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Cow

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

Quoted 10 lines · Cow

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#6 lore raw
In reply to Cow

check that it's loaded with 'lsmod'

Quoted 8 lines · Cow

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#8 lore raw
In reply to Cow
Quoted 4 lines · Cow

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/