wondershaper 实际上就是基于tc编辑的脚本
安装方法yum -y install wondershaper 即可
wondershaper 的基本使用如下:
$ wondershaper <interface> <download-rate> <upload-rate>
举个例子, 将eth0的最大下载/上传带宽分别设定为 10000000Kbit/s 和 500Kbit/s:
$ wondershaper em1 10000000 500
你也可以通过运行下面的命令将速率限制进行消除:
$ wondershaper clear em1
假如你对 wondershaper 的运行原理感兴趣,可以阅读(/sbin/wondershaper)。
tc -s qdisc ls dev eth0
原文:http://blog.51cto.com/laobaiv1/2134413