OpenVZ Forum

Home » General » Discussions » tc general questune
tc general questune [message #7548] Tue, 17 October 2006 12:05
pilpelet is currently offline  pilpelet
Messages: 25
Registered: October 2006
Junior Member
I was wondering if anyone here workes with tc for limiting bandwidth on VE's if so how is the general impression on its function .

In regards to that id like to create a tc start|stop|restart|status batch that will
run on boot time so i just miss some info on tc and realy want to ask here befor i dig into this crap and loss few days .

The wiki shows how to do it in general but reffer to 1 IP

Limiting outgoing bandwidth
tc qdisc del dev $DEV root
tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev $DEV parent 1: classid 1:1 cbq rate 256kbit allot 1500 prio 5 bounded isolated

tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip src flowid 1:1

tc qdisc add dev $DEV parent 1:1 sfq perturb 10

So in this example we configure a rule that limit to 256kbit
then adding an IP to that rule

How do we add another IP to the same rule
also how do we add an IP with another limitation type lets say

so we will be able to mix limitation types .

I have a nice batch for all that(ill post it here in case it will help someone) but just miss that info .

Tnx ,
Previous Topic: Distro with 2.4 kernel
Next Topic: Hottest Mom In America-Hollywood/Los Angeles Casting-Sunday-October 22nd
Goto Forum:

Current Time: Tue Jun 06 06:36:45 GMT 2023

Total time taken to generate the page: 0.01482 seconds