实时检查传入的网络流量?

实时检查传入的网络流量?

有没有办法可以实时监控服务器上的传入网络流量?最好以 *bps 为单位

运行 Ubuntu

答案1

如果状态:

rilindo@ubuntu:~$ sudo apt-get install ifstat
[sudo] password for rilindo: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  ifstat
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 23.4kB of archives.
After this operation, 94.2kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/universe ifstat 1.1-8 [23.4kB]
Fetched 23.4kB in 0s (34.6kB/s) 
Selecting previously deselected package ifstat.
(Reading database ... 92838 files and directories currently installed.)
Unpacking ifstat (from .../ifstat_1.1-8_amd64.deb) ...
Processing triggers for man-db ...
Setting up ifstat (1.1-8) ...
rilindo@ubuntu:~$ ifstat
       eth0                br0                virbr0              vnet0               vnet1               vnet2               vnet3               vnet4       
 KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
    4.67      5.21      3.67      5.05      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
    3.93      4.59      0.38      0.74      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
    3.93      4.59      6.19      8.30      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
    3.93      4.59      3.03      4.33      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

答案2

另一个值得研究的好方法是伊夫托普- 它将显示连接和 bps,并具有一些相当不错的功能。

在此处输入图片描述

答案3

我使用 iptraf,您可以将其设置为使用位或字节。

相关内容