* [LARTC] Examples from HTB home page...
@ 2002-09-06 12:39 eth
2002-09-06 20:47 ` Jose Luis Domingo Lopez
0 siblings, 1 reply; 2+ messages in thread
From: eth @ 2002-09-06 12:39 UTC (permalink / raw)
To: lartc
... 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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Examples from HTB home page...
2002-09-06 12:39 [LARTC] Examples from HTB home page eth
@ 2002-09-06 20:47 ` Jose Luis Domingo Lopez
0 siblings, 0 replies; 2+ messages in thread
From: Jose Luis Domingo Lopez @ 2002-09-06 20:47 UTC (permalink / raw)
To: lartc
On Friday, 06 September 2002, at 15:39:16 +0300,
eth wrote:
> 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.
>
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]
--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Woody (Linux 2.4.19-pre6aa1)
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-06 20:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-06 12:39 [LARTC] Examples from HTB home page eth
2002-09-06 20:47 ` Jose Luis Domingo Lopez
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.