[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default class

Marco Fabiani wrote:
> How can I define a default class for the Best-Effort traffic? ...that is all
> the packets, those don't match the following filter for QoS traffic, must pass
> through this default class.

The most straightforward way is probably to add an explicit filter for
the default class, e.g.

tc filter add $DEV parent 1:0 protocol ip prio 2 handle 0 tcindex mask 0 \
  classid 1:3 pass_on

(It's evaluated after the u32 filter because of the "prio 2")

> tc class add $DEV parent 1:0 classid 1:1  cbq .....

Are you sure you need this ?

- Werner

 / Werner Almesberger, ICA, EPFL, CH           Werner.Almesberger@epfl.ch /