Skip to contentSkip to conversation

Problem with flowid filter example from howto

LARTC Andrew D 2 participants 4 messages Nov 21, 2002 – Nov 22, 2002

lore
Share & tools
lore

Andrew D

author
#0 lore raw

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/

#1 lore raw
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 10

tc 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 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?

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/
author
#2 lore raw
In reply to 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: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:1

Stef

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/

#3 lore raw
In reply to Andrew D
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: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?

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/