温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Linux系统查看网络带宽命令有哪些

发布时间:2022-01-23 09:30:00 来源:亿速云 阅读:4200 作者:小新 栏目:开发技术

这篇文章将为大家详细讲解有关Linux系统查看网络带宽命令有哪些,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

1.查看服务器网络端口

ifconfig 

Linux系统查看网络带宽命令有哪些

查看带宽大小:sudo ethtool xxx sudo ethtool eth0

 [root@centos7-spider ~]# ethtool eth0
 Settings for eth0:
  Supported ports: [ TP ]
  Supported link modes:   1000baseT/Full
                          10000baseT/Full
  Supported pause frame use: No
  Supports auto-negotiation: No
  Advertised link modes:  Not reported
  Advertised pause frame use: No
  Advertised auto-negotiation: No
  Speed: 10000Mb/s
  Duplex: Full
  Port: Twisted Pair
  PHYAD: 0
  Transceiver: internal
  Auto-negotiation: off
  MDI-X: Unknown
  Supports Wake-on: uag
  Wake-on: d
  Link detected: yes

Speed: 10000Mb/s 带宽为万兆


nload

 Device eth0 [10.16.169.14] (1/2):
 ====================================================================
 Incoming:
                                           Curr: 27.99 kBit/s
                                           Avg: 33.14 kBit/s
                                           Min: 19.02 kBit/s
                                           Max: 116.44 kBit/s
                                           Ttl: 74.46 GByte
 Outgoing:
                                           Curr: 20.26 kBit/s
                                           Avg: 83.46 kBit/s
                                           Min: 17.72 kBit/s
                                           Max: 3.19 MBit/s
                                           Ttl: 145.30 GByte

Incoming也就是进入网卡的流量,Outgoing,也就是从这块网卡出去的流量,每一部分都有下面几个。

Curr:当前流量 Avg:平均流量 Min:最小流量 Max:最大流量 Ttl:总流量

nload默认的是eth0网卡,如果你想监测eth2网卡的流量,可以使用下面的命令。

 nload eth2

同时查看多个网卡的流量情况

 nload -m
 
 //结果如下:
 Device eth0 [10.16.169.14] (1/2):
 ========================================================================================
 Incoming:                                   Outgoing:
 Curr: 30.23 kBit/s                          Curr: 28.14 kBit/s
 Avg: 32.80 kBit/s                           Avg: 69.48 kBit/s
 Min: 23.65 kBit/s                           Min: 18.23 kBit/s
 Max: 133.16 kBit/s                          Max: 3.17 MBit/s
 Ttl: 74.46 GByte                            Ttl: 145.30 GByte
 
 Device lo [127.0.0.1] (2/2):
 ========================================================================================
 Incoming:                                   Outgoing:
 Curr: 0.00 Bit/s                            Curr: 0.00 Bit/s
 Avg: 150.82 kBit/s                          Avg: 150.82 kBit/s
 Min: 0.00 Bit/s                             Min: 0.00 Bit/s
 Max: 7.51 MBit/s                            Max: 7.51 MBit/s
 Ttl: 276.67 GByte                           Ttl: 276.67 GByte

关于“Linux系统查看网络带宽命令有哪些”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI