How to install iftop utility on CentOS 7

How to install iftop utility on CentOS 7

In this tutorial I will show you, how to install iftop utility on CentOS 7 server.

This command listens to network traffic on a given interface (such as eth0 or eth1), and shows a table of current bandwidth usage by pairs of hosts. iftop must be run with sufficient permissions (usually as root user) to monitor all network traffic on the interface.

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

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.

Was this Tutorial helpful? Help others share on Facebook, Twitter, and Google Plus!

 
Enjoyed this video?
How to install iftop utility on CentOS 7
"No Thanks. Please Close This Box!"