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
On Thursday 21 November 2002 21:02, Andrew D wrote: > 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? Try=20 tc filter add dev eth0 protocol ip parent 1: src 0/0 prio 2 flowid 1:1 Stef --=20 stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net
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 On Thu, 2002-11-21 at 15:38, Stef Coene wrote: > Try > tc filter add dev eth0 protocol ip parent 1: src 0/0 prio 2 flowid 1:1 > > Stef > > -- > > stef.coene@docum.org > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.oftc.net > >
On Thursday 21 November 2002 22:10, Andrew D wrote: > 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 --=20 stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net