Hello Vinay:
>
> 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 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?
> 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.
Thanks,
Sarav
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]