How to Install iftop Network Bandwidth Monitoring command on CentOS 7
In this tutorial we are going to learn how to install iftop on CentOS 7. Iftop is a network bandwidth monitoring tools that can be used to monitor the usage of the network interfaces on your CentOS Server or Desktop.
In Order to install iftop on CentOS 7, First we need to install the epel repository.
yum install epel-release
After enabling the epel repository, We can install iftop on CentOS 7 using yum install command.
yum install iftop
Use iftop command to monitor network bandwidth on CentOS 7
Iftop is a command line tool, To use iftop, type iftop in the Linux terminal.
Iftop command will show you a quick overview of network usage of your CentOS 7 machine.
If you have multiple network interface on your Linux machine, then you will need to specify the network interface you want to monitor using the -i option.
iftop -i eth0
By default, iftop command will resolve IP addresses into hostname, But we can avoid hostname lookups using the -n option.
iftop -n -i eth0
This time iftop command on CentOS 7 will not convert IP addresses into hostname.
Example – Monitor Network Traffic using iftop command in CentOs 7
For example, In My CentOS 7 Server, I have a network interface named wlp3s0. To monitor the bandwidth usage of the wlp3s0 interface, I will type,
iftop -i enp0s3
I can disable the hostname lookup with -n option.
iftop -n -i enp0s3
So, that is how you can install iftop on CentOS 7 and monitor network traffic on your CentOS machine.