OpenVZ Forum - RDF feed
type: channel
items: tc general questune

tc general questune
type: item
description: 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 ------------------------------- DEV=eth0 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 192.168.0.10 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 512kbit 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 ,
creator: pilpelet
date: 2006-10-17T12:05:07-00:00