显示网卡的流量  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
 
 
tar zxvf libpcap-0.9.8.tar.gz
 
cd libpcap-0.9.8
 
./configure
 
make
 
make install
 
安装iftop
 
 
tar zxvf iftop-0.17.tar.gz
 
cd iftop-0.17
 
./configure
 
make
 
make install
 
安装完成后直接用 iftop –I eth0 –n 就可以看到eth0网卡的流量状况