Problem with flowid filter example from howto
For simplicity, I tried this:
tc qdisc add dev eth0 root handle 1: prio
tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10 tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10 tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10
tc filter add dev eth0 protocol ip parent 1: prio 2 flowid 1:1
The last line prints:
Unknown filter "flowid", hence option "1:1" is unparsable
I'm pretty sure that last line is almost exactly what is printed in the howto, translated for what I want. Did I need to add something else first? If this is not the right syntax, how do I make all traffic (for now) go to a specific flow?
-Andrew
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 9 lines · Andrew D
For simplicity, I tried this:
tc qdisc add dev eth0 root handle 1: prio
tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10 tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10 tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10tc filter add dev eth0 protocol ip parent 1: prio 2 flowid 1:1
Quoted 7 lines
The last line prints:
Unknown filter "flowid", hence option "1:1" is unparsableI'm pretty sure that last line is almost exactly what is printed in the howto, translated for what I want. Did I need to add something else first? If this is not the right syntax, how do I make all traffic (for now) go to a specific flow?
Try
tc filter add dev eth0 protocol ip parent 1: src 0/0 prio 2 flowid 1:1
Stef
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Thanks. Though it doesn't quite work, I messed around with it till I got this which does:
tc filter add dev eth0 protocol ip parent 1: prio 2 u32 match \
ip src 0/0 flowid 1:1
Seems like an extra "if" statement, but it does the job. Now I am wondering, is this wrong in the howto (section 9.6.1) or is my system just broken?
-Andrew
Quoted 13 lines · Stef Coene
Try
tc filter add dev eth0 protocol ip parent 1: src 0/0 prio 2 flowid 1:1Stef
Signature · 4 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 9 lines · Andrew D
Thanks. Though it doesn't quite work, I messed around with it till I got this which does:
tc filter add dev eth0 protocol ip parent 1: prio 2 u32 match \
ip src 0/0 flowid 1:1Seems like an extra "if" statement, but it does the job. Now I am wondering, is this wrong in the howto (section 9.6.1) or is my system just broken?
I think you can say it's a features that's missing in tc :) You have to match something, if if you match everything.
Stef
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/