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 10.0.0.0/255.0.0.0 will analyze packets flowing in and out of the 10.* network.
Install iftop on CentOS 5, CentOS 6 and CentOS 7
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
wget ftp://ftp.pbone.net/mirror/dl.iuscommunity.org/pub/ius/stable/CentOS/5/x86_64/epel-release-5-4.noarch.rpm rpm -ivh epel-release-5-4.noarch.rpm
Install epel on CentOS 6
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm rpm -ivh epel-release-latest-6.noarch.rpm
Install epel on CentOS 7
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -ivh epel-release-latest-7.noarch.rpm
Once epel is installed you need to install iftop using the command below:
yum install iftop
The other method is to install iftop using rpm. You can download the iftop rpms for different CentOS versions from Here
wget http://www6.atomicorp.com/channels/atomic/centos/5/x86_64/RPMS/iftop-0.17-7.el5.art.x86_64.rpm rpm -ivh iftop-0.17-7.el5.art.x86_64.rpm
wget http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/iftop-0.17-1.el6.rf.x86_64.rpm rpm -ivh iftop-0.17-1.el6.rf.x86_64.rpm
wget ftp://220.127.116.11/linux/dag/redhat/el7/en/x86_64/dag/RPMS/iftop-1.0-0.pre3.el7.rf.x86_64.rpm rpm -ivh iftop-1.0-0.pre3.el7.rf.x86_64.rpm
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 firstname.lastname@example.org