(源自CHINAUNIX)用cbq控制指定port的bandwith

1.
cd /tmp
wget -c -q http://puzzle.dl.sourceforge.net/sourceforge/cbqinit/cbq.init-v0.7.3&

2.
mv /tmp/cbq.init-v0.7.3 /sbin/cbq
chmod u+x /sbin/cbq

3.
mkdir -p /etc/sysconfig/cbq

4.
cd /etc/sysconfig/cbq/
建立下面文件
cbq-0002.web


vi cbq-0002.web

DEVICE=eth1,100Mbit,10Mbit
RATE=4Mbit
WEIGHT=400Kbit
PRIO=5
RULE=192.168.1.0/24:1080,192.168.100.86