Hi Everyone!<br><br>My knowledge of tc is very much limited and i got introduced to it by my need for traffic limiting on xen based VM's. For every VM there is a interface. The network is a bridged network.<br><br>Has any one tried out something like this ?
<br><br>I tried the below script to limit download on an interface however it didn't seem to work. Still the interface is able to download at full speeds.<br><br><pre>   1. vm01 ==&gt; is virtual interface <br>------------------------------------------------------------------------
<br>#!/bin/sh<br>TC=/sbin/tc<br>DNLD=150Kbit   # DOWNLOAD Limit<br>DWEIGHT=15Kbit # DOWNLOAD Weight Factor<br><br>$TC qdisc add dev vm01 root handle 11: cbq bandwidth 100Mbit avpkt 1000 mpu 64<br>$TC class add dev vm01 parent 11:0 classid 11:1 cbq rate $DNLD weight $DWEIGHT allot 1514 prio 1 avpkt 1000 bounded
<br>$TC filter add dev vm01 parent 11:0 protocol ip handle 4 fw flowid 11:1</pre><br>Any help would be highly appreciated.<br><br>-- <br><br>regards,<br><br>Anand