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/
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/
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/
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/
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/
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/
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/
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/
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 unparsableMaybe 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/