From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Mon, 14 May 2001 07:33:41 +0000 Subject: Re: [LARTC] CBQ question Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > ---------------------------------------------------------------------------- > -------------------- > 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 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/