Mixing classifiers
Hi,
I tried using under a htb qdisc u32 filter for 1 class , and fw classifier for another but i get "RTNETLINK answers: Invalid argument" when i wanr ro insert the second type of classifier. Using either u32 alone or fw alone work, so can't be a kernel or tc problem ( 2.4.21-ac1, tc with htb patch). Looks like isn't allowed to mix different classifiers under the same qdisc , but i didn't find any reference to this in the man pages, or in the howto.
Can somebody confirm this behaviour and/or explain?
Thanks
Signature · 5 lines
Marton Sandor - [email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hi Marton,
Quoted 3 lines · * On Wed, Aug 13, 2003 at 05:44 AM (+0300), Marton Sandor wrote:
I tried using under a htb qdisc u32 filter for 1 class , and fw classifier for another but i get "RTNETLINK answers: Invalid argument" when i wanr ro insert the second type of classifier.
I don't get any error messages when starting a script like this one:
#!/bin/bash
TC=./tc
DEV=eth0
LAN2.168.1.0/24
$TC qdisc del dev $DEV root
$TC qdisc add dev $DEV root handle 1:0 htb
$TC class add dev $DEV parent 1:0 classid 1:1 htb rate 2048kbit $TC class add dev $DEV parent 1:0 classid 1:2 htb rate 4096kbit
$TC filter add dev $DEV parent 1:0 protocol ip prio 1 u32 match ip dst $LAN classid 1:1 $TC filter add dev $DEV parent 1:0 protocol ip prio 2 handle 5 fw classid 1:2
Quoted 2 lines
Using either u32 alone or fw alone work, so can't be a kernel or tc problem (2.4.21-ac1, tc with htb patch).
Here: "linux-2.4.21", tc binary which is available within [1].
Quoted 3 lines
Looks like isn't allowed to mix different classifiers under the same qdisc , but i didn't find any reference to this in the man pages, or in the howto. Can somebody confirm this behaviour and/or explain?
At least here it seems to function. Stupid question: Are you sure that your kernel supports the "fw" classifier?
Bye,
Steffen
[1] http://luxik.cdi.cz/~devik/qos/htb/v3/htb3.6-020525.tgz
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 12 lines · Steffen Moser
Quoted 3 lines
I tried using under a htb qdisc u32 filter for 1 class , and fw classifier for another but i get "RTNETLINK answers: Invalid argument" when i wanr ro insert the second type of classifier.
I don't get any error messages when starting a script like this one:
#!/bin/bash
TC=./tc
DEV=eth0
LAN2.168.1.0/24
Quoted 8 lines
$TC qdisc del dev $DEV root
$TC qdisc add dev $DEV root handle 1:0 htb$TC class add dev $DEV parent 1:0 classid 1:1 htb rate 2048kbit $TC class add dev $DEV parent 1:0 classid 1:2 htb rate 4096kbit
$TC filter add dev $DEV parent 1:0 protocol ip prio 1 u32 match ip dst $LAN classid 1:1 $TC filter add dev $DEV parent 1:0 protocol ip prio 2 handle 5 fw classid 1:2
Yes, this script work. I compared with my script and i observed that i get the error message only when i have the same prio for the filters. Try the fw filter with "prio 1 handle 5 fw"
Different prio's will solve my problem but still i'm curious
Signature · 5 lines
Marton Sandor - [email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/