Install iftop on CentOS or Redhat Server

Install iftop
Install iftop

Install iftop on CentOS

iftop is a bandwidth monitoring utility available on Linux. You can install iftop using various methods.

iftop listens to network traffic on a named interface, or on the first interface, it can find which looks like an external interface if none is specified, and displays a table of current bandwidth usage by pairs of hosts. iftop must be run with sufficient permissions to monitor all network traffic on the interface, but on most systems, this means that it must be run as root.

By default, iftop will look up the hostnames associated with addresses it finds in packets. This can cause substantial traffic of itself and may result in a confusing display. You may wish to suppress display of DNS traffic by using filter code such as not port domain, or switch it off entirely, by using the -n option or by pressing r when the program is running.

By default, iftop counts all IP packets that pass through the filter, and the direction of the packet is determined according to the direction the packet is moving across the interface. Using the -F option it is possible to get iftop to show packets entering and leaving a given network. For example, iftop -F will analyze packets flowing in and out of the 10.* network.

Install iftop on CentOS 5, CentOS 6 and CentOS 7

Method 1

Install epel using the following command:

yum install epel-release

The alternate way to install epel:

Alternatively, you can install epel by downloading the RPM. Different epel versions can be download from Here

Install epel on CentOS 5

rpm -ivh epel-release-5-4.noarch.rpm

Install epel on CentOS 6

rpm -ivh epel-release-latest-6.noarch.rpm

Install epel on CentOS 7

rpm -ivh epel-release-latest-7.noarch.rpm

Once epel is installed you need to install iftop using the command below:

yum install iftop

Method 2

The other method is to install iftop using rpm. You can download the iftop rpms for different CentOS versions from Here

CentOS 5

rpm -ivh

CentOS 6

rpm -ivh iftop-0.17-1.el6.rf.x86_64.rpm

CentOS 7

rpm -ivh iftop-1.0-0.pre3.el7.rf.x86_64.rpm

That’s it!

Also Read: How to Install SAR (sysstat) on CentOS

If you like this post and wish to receive more articles from us, please like our FB page: Grepitout

Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.

For more details on our services, please drop us an E-mail at