Actualy the `rate' option is what control bandwith. AFAIK `bandwidth'
represents the `real' bandwidth of the device. So in this example you must use:

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

This will set output bandwidth on eth0 to 2Mbit, but will also must to set some
kind of filter to join packets to the class 2:1. For example:

tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 \
match ip dst 1.1.1.0/24 flowid 2:1

Where the dst parameter should be the net connected to your eth0 (i.e. replace
`1.1.1.0/24' with the real one) or even small part of it. I suggest you to
read:

http://www.ds9a.nl/2.4Routing/HOWTO//cvs/2.4routing/output/2.4routing.html

Hope this helps ;-)


On Wed, 12 Apr 2000, [ks_c_5601-1987] ������ wrote:

> Hi,
> 
> I want to change output link bandwidth.
> 
> (...)
> tc class add dev eth0 parent 2:0 classid 2:1 cbq bandwidth 10Mbit 
>                                                                                      
> ^^^^^^
>       rate 1500Kbit avpkt 1000 prio 1 bounded isolated allot 1514 weight 1
>       maxburst 10 defmap 1
> (...)
> 
> I thought that 10Mbit of above command is controllable bandwidth parameter.
> So, I changed 10Mbit to 2Mbit for changing output link bandwidth.
> But, It's inefficient.
> 
> Can't  I  change outut link bandwidth with tc ?
> 
> If there's no way, which part of kernel should I change ?
> 
> Sincerely,
> jhkim
> N�����r��y���b�X�����azX�z�칻�&ޖ)��w��{ay�ʇڙ�,j��f���h���z�����n

        =- --rw------- =--=--=--=--=--=--=--=--=--=--=--=--=--=
          Theodor Milkov           Administrator IP Networks
          Davidov Electric Ltd.    Phone: +359 (2) 730158
          PGP: http://www.zimage.delbg.com/zimage.pkr
        =--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=

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

Reply via email to