ubuntu上使用流量监控工具

ubuntu上使用流量监控工具

netspeed
功能:
   只能看到流量,但是不能限制。
安装:
   在UBUNTU软件中心搜索netspeed,然后安装。
   在top的地方【右键】----》【添加到面板】

wondershaper
安装:
>sudo apt-get install wondershaper
限制命令:
>wondershaper [接口] [上传速度 K] [下载速度 K]
命令位置:
>which wondershaper
系统返回:
/usr/sbin/wondershaper

永久修改
>vi /etc/network/interfaces在eth1下面添加
up /usr/sbin/wondershaper eth1 downspeed upspeed 
down /usr/sbin/wondershaper clear eth1

我的配置文件修改成:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.56.105
netmask 255.255.255.0
gateway 192.168.56.1
nameserver 8.8.8.8
up /usr/sbin/wondershaper eth0 10000 100
down /usr/sbin/wondershaper clear eth0

auto eth1
iface eth1 inet dhcp
up /usr/sbin/wondershaper eth1 10000 100
down /usr/sbin/wondershaper clear eth1

清除配置:
>wondershaper clear eth1


猜你喜欢

转载自sillycat.iteye.com/blog/834752