• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, July 11, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

Use iftop To Monitor Network Bandwidth Usage

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
20
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Prerequisites
  2. Installing iftop using Yum
  3. Run iftop
  4. Inside the iftop program:
  5. Want to contribute?


iftop is a network bandwidth monitoring utility that can be used to diagnose network performance degradation in real time.

In this tutorial, we will be covering the the installation and basic usage of iftop on CentOS 6. This article can be used as a reference for other RPM-based Linux distributions.

Prerequisites

  • A CentOS 6x x64 bit instance.
  • A sudo user.

Installing iftop using Yum

iftop is not available in the base CentOS yum repository, it is however available in the epel repository. Therefore, we will need to install epel in order to install iftop:

sudo yum install epel-release
sudo yum update
sudo yum install iftop

Run iftop

sudo iftop

Without additional parameters, iftop will monitor all the inbound and outbound traffic on the default network interface. e.g. eth0.

To monitor a different network interface, e.g. eth1, you would need to pass the interface name to the iftop command using the -i parameter:

sudo iftop -i eth1

Inside the iftop program:

On the top of the screen is a scale which is used to indicate the bandwidth usage of each network connection listed below.

The information on the top of the screen indicates the bandwidth each network connection is consuming.

In the center, a list of all network connections on the monitored interface is displayed. The arrow at the end of each line indicates whether the traffic is inbound or outbound.

The last three columns show the average bandwidth usage for each connection during the last 2, 10, and 40 seconds.

The section at the bottom of the screen displays the overall traffic statistics including transmitted traffic Tx, received traffic Rx, and the grand total TOTAL.
iftop provides the cumulative bandwidth usage (cum) for each type of traffic, the peak bandwidth usage (peak), and the average bandwidth usage during the last 2, 10, and 40 seconds.

iftop‘s interface is rather customizable. Using a set of predefined keys, you can alter the way in which data is displayed:

  • h: Toggle between displaying and not displaying help.
  • j: Move down.
  • k: Move up.
  • n: Toggle between disabling and not disabling hostname resolution. Disabling hostname resolution can accelerate the program.
  • N: Toggle between displaying port number and displaying service name.
  • s: Toggle between displaying and not displaying local host.
  • S: Toggle between displaying and not displaying ports of local host.
  • d: Toggle between displaying and not displaying destination host.
  • D: Toggle between displaying and not displaying ports of destination host.
  • p: Toggle between displaying and not displaying ports.
  • P: Toggle between pausing display and resuming display.
  • t: Toggle among “two lines per host”, “one line per host”, “received traffic only”, and “sent traffic only”.
  • <: Sort by the source host.
  • >: Sort by the destination host.
  • q: Quit the program.

This concludes our tutorial. For more information on how to use iftop, please refer to iftop’s website.

Thank you for reading.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

Installing Nginx on DirectAdmin

Next Post

Terraria Server with TShock on Linux

Next Post

Terraria Server with TShock on Linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In