Hello :

        I try to configure TBF with the following script :

-----------8<---------------8<---------------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

# 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 1
tc class add dev eth0 parent 1:1 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 64Kbit  buffer 10Kb/8 limit 10Kb

-----------8<---------------8<---------------8<----------------8<-------

I get the following errors:

Illegal "rate"
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument


I am a novice in this field. Could anybody be able to help me out in this?

One more question is that should I create root CBQ even when I want to
setup only the TBF ?

Thanks in advance,
-Vinay.

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

Reply via email to