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

Default class



Hello fellows,
I'd like to classifier the traffic in two type: QoS traffic and Best-Effort
Traffic.

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.

Is this following script ok in order to realize that?
-------------------------------------------
tc qdisc add $DEV root handle 1: cbq .....
tc class add $DEV parent 1:0 classid 1:1  cbq .....

# QoS traffic
tc class add $DEV parent 1:1 classid 1:2  cbq  ......

#Best Effort traffic
tc class add $DEV parent 1:1 classid 1:3  cbq  ....

tc filter add $DEV parent 1:0 protocol ip prio 1 u32 $MATCH_QoS flowid 1:2