显示网卡的流量 display bandwidth usage on an interface
我用的是RHEL5U1 ,需要安装 byacc 和flex这2个包
rpm -ivh byacc-1.9-29.2.2.i386.rpm
rpm -ivh flex-2.5.4a-41.fc6.i386.rpm
另外还需要libpcap
wget ftp://ftp.lmd.ens.fr/pub/devil/devel/sources/1.2/libpcap-0.9.8.tar.gz
tar zxvf libpcap-0.9.8.tar.gz
cd libpcap-0.9.8
./configure
make
make install
安装iftop
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
tar zxvf iftop-0.17.tar.gz
cd iftop-0.17
./configure
make
make install
安装完成后直接用 iftop –I eth0 –n 就可以看到eth0网卡的流量状况
文章出处:http://www.diybl.com/course/6_system/linux/Linuxjs/2008826/137698.html