cheng029 发表于 2012-6-27 12:08:08

Iftop-网络流量实时监控工具

iftop介绍Iftop 主要用来显示本机网络流量情况及各相互通信的流量集合,如单独同那台机器间的流量大小,非常适合于代理服务器和iptables服务器使用。
iftop安装1、安装依赖

[*]yum install libpcap-devel ncurses-devel

2、开始安装

[*]wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
[*]tar xzf iftop-0.17.tar.gz
[*]cd iftop-0.17
[*]./configure
[*]make && make install

如何使用直接执行iftop即可运行查看流量情况。
执行iftop -h得到帮助信息

[*]#iftop -h
[*]iftop: display bandwidth usage on an interface by host
[*]
[*]Synopsis: iftop -h | [-npbBP] [-i interface] [-f filter coolcode] [-N net/mask]
[*]
[*]   -h                  display this message
[*]   -n                  don't do hostname lookups
[*]   -N                  don't convert port numbers to services
[*]   -p                  run in promiscuous mode (show traffic between other
[*]                     hosts on the same network segment)
[*]   -b                  don't display a bar graph of traffic
[*]   -B                  Display bandwidth in bytes
[*]   -i interface      listen on named interface
[*]   -f filter coolcode      use filter coolcode to select packets to count
[*]                     (default: none, but only IP packets are counted)
[*]   -F net/mask         show traffic flows in/out of network
[*]   -P                  show ports as well as hosts
[*]   -m limit            sets the upper limit for the bandwidth scale
[*]   -c config file      specifies an alternative configuration file

官方网站:http://www.ex-parrot.com/pdw/iftop/

0 发表于 2013-3-13 14:07:41

相当不错,感谢无私分享精神!

q986 发表于 2013-5-15 18:11:08

生活***好玩,因为生活老***玩我!

zz22 发表于 2013-5-15 19:31:10

走,MM,咱们化蝶去……

yes-no 发表于 2013-5-15 21:17:13

此地禁止大小便,违者没收工具。

banbanbai 发表于 2013-5-16 00:08:51

真是 收益 匪浅

look321 发表于 2013-5-16 02:27:01

解释就系掩饰,掩饰等于无出色,无出色不如回家休息!!!

bigben_ios 发表于 2013-11-19 16:57:17

学了下,可能又忘了
页: [1]
查看完整版本: Iftop-网络流量实时监控工具