Examples from HTB home page...
... do not work anymore. Anybody with a hint? I've got a fully functional HTB setup and just wanted to replace the kernel from 2.4.17 to 2.4.19. In the end the modified tc binary doesn't recognize "tc filter add" (yet it does accept qdisc show and recognizes htb...)
I've downloaded the 2.4.19 from kernel.org, iproute2 (2.4.7),
installed the patches (to kern and iproute) and ended with a kernel /
tc combo that at the following example (taken from from HTB page):
tc qdisc add dev eth0 root handle 1:0 htb default 12
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 100kbps ceil 100kbps tc class add dev eth0 parent 1:1 classid 1:10 htb rate 30kbps ceil 100kbps tc class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbps ceil 100kbps tc class add dev eth0 parent 1:1 classid 1:12 htb rate 60kbps ceil 100kbps
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 1.2.3.4 match ip dport 80 0xffff flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 1.2.3.4 flowid 1:11
... chokes at the "tc filter add " with:
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
As far as I can tell this *should* work, it did 6 months ago on a 2.4.17.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 9 lines · eth
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 1.2.3.4 match ip dport 80
0xffffflowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 1.2.3.4 flowid 1:11
... chokes at the "tc filter add " with:
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
As far as I can tell this *should* work, it did 6 months ago on a 2.4.17.
Maybe your kernel configuration changed in the meantime, and with the new version you didn't compile some necessary features. Have just tried your exact configuration with a 2.4.20-pre1 kernel and it works OK.
It seems you missed "U32 classifier" support either compiled in or as a module. My box show the following modules loaded after trying your config:
Module Size Used by Not tainted
cls_u32 4484 1 (autoclean) sch_htb 18016 1 (autoclean) pcnet32 13120 1 (autoclean) mii 1104 0 (autoclean) [pcnet32]
Signature · 5 lines
Jose Luis Domingo Lopez Linux Registered User #189436 Debian Linux Woody (Linux 2.4.19-pre6aa1) _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/