Linux System View network card real-time traffic (nload ifstat iftop) command detailed

Source: Internet
Author: User
Tags port number

Iftop command

Installation

The code is as follows Copy Code

[Root@test iftop-0.9]# make
[Root@test iftop-0.9]# make install
[Root@test iftop-0.9]# Iftop

Instance

The default is to monitor the traffic of the first network card

Iftop

Monitoring eth1

Iftop-i eth1

Direct IP display without DNS reverse resolution

Iftop-n

Display the port number directly and do not display the service name:

Iftop-n

Show the packet flow in and out of a network segment

Iftop-f 192.168.1.0/24 or 192.168.1.0/255.255.255.0

nload command

Load is currently only compiled and installed based on the source code. CentOS installed by default, you may need to install a few required packages when you compile the installation nload: GCC, gcc-c++, and Ncurses-devel

The code is as follows Copy Code

Yum Install gcc gcc-c++ ncurses-devel
wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
Tar xvf nload-0.7.4.tar.gz
CD nload-0.7.4
./configure
Make
Make install

Upon completion, Nload was installed in the/usr/local/bin/nload.

To view real-time traffic in a graphical manner:


Nload-t 200-i 1024-o 128-u H

Check the flow of the first network card, showing the real-time flow chart

Nload eth0

View the traffic of multiple network adapters at the same time.

Nload-m

Ifstat command

Installation

The code is as follows Copy Code

[Root@test ifstat-1.1]#./configure
[Root@test ifstat-1.1]# make
[Root@test ifstat-1.1]# make install

Default use

#ifstat
Eth0 eth1
KB/S in kb/s out kb/s in kb/s out
0.07 0.20 0.00 0.00
0.07 0.15 0.58 0.00

The default ifstat does not monitor the loopback interface, which shows the unit of traffic is KB.

Monitor all network interfaces

# ifstat-a
Lo eth0 eth1
KB/S in kb/s out kb/s in kb/s out kb/s on kb/s out
0.00 0.00 0.28 0.58 0.06 0.06
0.00 0.00 1.41 1.13 0.00 0.00
0.61 0.61 0.26 0.23 0.00 0.00

Ifstat relatively simple to see network traffic profile.

Summarize

Nload:

Network Card Real-time traffic tool (this need to install the system by default no belt.)

Ifstat:

Tool is a network interface monitoring tool, relatively simple to see network traffic

Iftop:

is a real-time flow monitoring tool, monitoring TCP/IP connection, the disadvantage is no report function. Must be run as root.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.