六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 41|回复: 0

ubuntu上使用流量监控工具

[复制链接]

升级  34.8%

548

主题

548

主题

548

主题

探花

Rank: 6Rank: 6

积分
1696
 楼主| 发表于 2013-1-15 14:06:36 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表