First, download the website
Www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
Second, iftop related parameters
Common parameters
-I set the monitoring network card, such as: # Iftop-i eth1
-B displays traffic in bytes (default is bits), such as: # Iftop-b
-N Causes the host information to display IP directly by default, such as: # Iftop-n
-N causes port information to be displayed by default directly, such as: # Iftop-n
-F shows incoming and outgoing traffic for a specific segment, such as # iftop-f 10.10.1.0/24 or # iftop-f 10.10.1.0/255.255.255.0
-H (Display this message), Help, display parameter information
-p after using this parameter, the middle list shows the local host information, and the IP information outside of this machine appears;
-B to display the flow graph bar by default;
-F This is not very likely to use, filter the calculation of the packet;
-P enables host information and port information to be displayed by default;
-M sets the maximum value of the top-most scale of the interface, with a scale of five large segments, for example: # iftop-m 100M
Iii. problems encountered during installation
CentOS may encounter problems:
Checking POSIX threads usability ... configure:error:it fails. We probably guessed the wrong CFLAGS.
Probably can't find the libpcap.so file, to/usr/lib below, found libpcap.so.0 libpcap.so.0.9.4
Prove to have this version, but not be recognized, make a soft connection ln-s libpcap.so.9.4 libpcap.so
Just OK! It is also very convenient to change the version.
Redhat may be caused by the following problems:
If Libpcap uses source installation may cause the following error to be reported when the Libpcap.so library file is not found when installing iftop
Checking POSIX threads usability ... configure:error:it fails. We probably guessed the wrong CFLAGS
You can add the following path in/etc/ld.so.conf with the libpcap.so file under some paths
/usr/local/lib/
After execution
Ldconfig
Re-execute./configure
Network Traffic Monitoring Command-iftop