Centos7 限速和测速

wondershaper是国外人开发的一款在Linux内核下基于TC工具的对整块网卡的限度工具

安装方法

由于Centos7第三方库内才有这个软件,先安装第三方库

yum install epel-release -y
yum install wondershaper -y

限速命令

第一个参数为网卡接口名,后面两个数字分别代表上行和下行的速度 (单位 KB)

[root@localhost ~]# wondershaper eth0 5000 500

取消限速

[root@localhost ~]# wondershaper clear eth0

赞 (0)

评论区

发表评论

35+46=?

暂无评论,要不来一发?

回到顶部