[LARTC] Maximum bandwidth question

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

How would I force the maximum bandwidth to be less than 
the speed of the NIC? for example I have 2 10Mbit NIC's eth0 and eth1,
and I want to force the total thoroughput down to 200Kbit/s

Is the following legitmate:

tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 200Kbit avpkt 1000 
tc qdisc add dev eth1 root handle 2:0 cbq bandwidth 200Kbit avpkt 1000

OR is it more appropriate to specify it as follows ( Thanks Rodrigo for
the suggestion )

tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 10Mbit rate 200Kbit
bounded
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 10Mbit rate 200Kbit
bounded

I'm a little confused on the best way to go here.


Thanks,

Andy 



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux