Re: CBQ question

Stef Coene
Mon, 14 May 2001 07:33:41 -0000

>
----------------------------------------------------------------------------
> --------------------
> BANDWIDTH="bandwidth 10Mbit"
> RATE="rate 2Mbit"
> DEV="dev eth1"
> AVP="avpkt 1000"
>
> tc qdisc add $DEV root handle 10: cbq $BANDWIDTH $AVP
>
> tc class add $DEV parent 10:0 classid 10:1 cbq $BANDWIDTH $RATE \
> allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
> bounded
>
> tc qdisc add $DEV parent 10:1 handle 20: cbq bandwidth 2Mbit $AVP
>
> tc class add $DEV parent 20:0 classid 20:1 cbq bandwidth 2Mbit $RATE \
> allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
> bounded
>
> tc filter add $DEV parent 20:0 protocol ip prio 100 u32 match ip src \
> $IP flowid 20:1
>
----------------------------------------------------------------------------
> --------------------
> but it''s not active....the bandwidth is still 10Mbit....
> Is my config''s error?????
You miss a filter

tc filter add $DEV parent 10:0 protocol ip prio 100 u32 match ip src $IP
flowid 10:1

Stef