Skip to contentSkip to conversation

Maximum bandwidth question

LARTC Andy Pyles 1 participant 1 message Jun 4, 2001

lore
Share & tools
lore

Andy Pyles

author
#0 lore raw

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

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/