Network Traffic Monitoring Command-iftop

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.