Hello Sarav :
My sincere thanks for your assistance.
On Wed, 9 Jun 1999, Saravanan Radhakrishnan wrote:
>
>
> Hello Vinay:
>
> >
> > I get the following errors:
> >
> > Illegal "rate"
> > RTNETLINK answers: Invalid argument
> > RTNETLINK answers: Invalid argument
>
> I am surprised, did you enable "Token Buckets" while configuring the
> kernel. Also, did you compile netlinks into the kernel. I think that could
> be one problem. Which kernel version and iproute2 version are you using?
>
Obviously. Else the error messages (when tbf was not enabled) were
RTNETLINK answers: Operation not supported.
I tried the following which is working at the moment.
---------8<-------------------8<--------------8<----------------
TC=/root/iproute2/tc/tc
DEVICE=eth0
BANDWIDTH="bandwidth 10Mbit"
$TC qdisc add dev $DEVICE root handle 1: cbq \
$BANDWIDTH avpkt 1000 mpu 64
$TC class add dev $DEVICE parent 1:0 classid :1 est 1sec 8sec cbq \
$BANDWIDTH rate 10Mbit allot 1514 maxburst 50 avpkt 1000
$TC class add dev $DEVICE parent 1:1 classid :2 est 1sec 8sec cbq \
$BANDWIDTH rate 4Mbit allot 1514 weight 500Kbit \
prio 6 maxburst 50 avpkt 1000 split 1:0 defmap ff3d
$TC qdisc add dev $DEVICE parent 1:2 tbf rate 64Kbit buffer 10Kb/8 limit
10Kb
--------------8<--------------8<-------------------8<----------------
> > One more question is that should I create root CBQ even when I want to
> > setup only the TBF ?
>
> I have not tried this, but yes, I think this should possible. If I am not
> wrong, I think you are shaping all the traffic leaving the interface. But
> I am sure if you would want to do that, as there could be different types
> of traffic leaving your system. For e.g. if you have amd configured, there
> is always exchange of data with the server. If you apply a TBF to all the
> traffic, some critical packets could get lost. So, it is advisable to have
> a CBQ, a filter and a TBF working together.
I agree to this. It is better to have a CBQ apart from TBF. I followed
your point. Thanks.
-Vinay.
> Thanks,
> Sarav
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]