限制内网下载速度
#DEV=eth1
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 512kbit(1mbit) allot 1500 prio 5 bounded isolated
tc filter add dev $DEV parent 1: protocol ip prio 1 u32 match ip dst 192.168.1.0/24 flowid 1:1
tc qdisc add dev $DEV parent 1:1 sfq perturb 10
ceil 最大频宽,
handle叶类别队列规则编号
prio 优先权 ,
parent类别编号,
rate 保证频宽,
阅读(757) | 评论(0) | 转发(0) |