Konrad
2005-Jun-12 21:16 UTC
Is it possible to throw all not matched traffic to selected class?
I have some filters.. like this: $TC filter add dev $dev_isp protocol ip parent 3:0 pref 3 u32 match ip protocol 6 0xff match ip sport $prt 0xffff flowid 3:2 I throw only few types of packets to 3:2, all other traffic I want to put on 3:3, but this doesn''t work(!): $TC filter add dev $dev_isp protocol ip parent 3:0 pref 4 flowid 3:2 When type that command I have this: Unknown filter "flowid", hence option "3:3" is unparsable What should I do to put all other traffic (not matched by my filters) to 3:3?
Konrad
2005-Jun-12 22:01 UTC
Re: Is it possible to throw all not matched traffic to selected class?
> What should I do to put all other traffic (not matched by my filters) to > 3:3?OK. I solved the problem. I must use default here: tc qdisc add dev eth0 root handle 3:0 htb default 3 Is possible to do it using filters?
Andreas Unterkircher
2005-Jun-13 04:13 UTC
Re: Is it possible to throw all not matched traffic to selected class?
Konrad wrote:> Is possible to do it using filters?I think, default class is the best solution. But you also can do it with a last "match all" filter after your other filter rules. tc filter add ...... protocol all u32 match u32 0 0 classid 3:3 Cheers, Andreas
gypsy
2005-Jun-13 05:43 UTC
Re: Is it possible to throw all not matched traffic toselected class?
Konrad wrote:> > > What should I do to put all other traffic (not matched by my filters) to > > 3:3? > > OK. I solved the problem. > > I must use default here: tc qdisc add dev eth0 root handle 3:0 htb default 3 > > Is possible to do it using filters?Certainly! You add a filter that directs what you want into the correct flow, then you match everything else with a second filter, directing all that to a different (what is now your default) flow. See the INGRESS portion of the Wonder Shaper if you don''t know how to match everything. Use prio to determine the selection order of the filters if necessary. "If necessary" means that filters seldom need different prio values. -- gypsy