Hello all :

I am trying to initiate a TBF queuing descipline, with the following
script.
-----8<--------------8<---------------------
#! /bin/sh

# Set up the outer-most queuing discipline.

tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit cell 8 avpkt \
1000 mpu 64

# replace the rest like this
# Root class

tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate \
10Mbit allot 1514 weight 1Mbit prio 7 maxburst 20 avpkt 1000

# Setup class 2
tc class add dev eth0 parent 1:0 classid 1:2 cbq bandwidth 10Mbit rate \
2Mbit allot 1514 weight 1 prio 1 maxburst 20 avpkt 1000

# Set up TBF for this class
tc qdisc add dev eth0 parent 1:2 tbf rate 128Kbit  burst 10Kbit \
mtu 380 peakrate 16386bps limit 10Kb
-----8<--------------8<---------------------

and try to delete the qdisc with the following :


-----8<--------------8<---------------------
#!/bin/sh
tc qdisc del dev eth0 parent 1:2
sleep 1
tc qdisc del dev eth0 root
-----8<--------------8<---------------------

The qdisc is not consistently deleted and reinstated. It's like
successful thrice in ten attempts. Has anybody faced this problem, or am I
doing something silly here?

Thanks in advance to any kind of help or guidance.

-Vinay.

-------------------------------------------------------------
Vinay V. Kulkarni
Project Assistant, ERNET, ECE Dept., IISc., Bangalore 560 012
Ph : +91-80-360 0855.           Fax : +91-80-360 7991   
-------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to