首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >[656]Linux查看服务器带宽

[656]Linux查看服务器带宽

作者头像
周小董
修改2025-08-22 17:20:44
修改2025-08-22 17:20:44
18.5K00
代码可运行
举报
文章被收录于专栏:Linux合集Linux合集
运行总次数:0
代码可运行

1.查看服务器网络端口

ifconfig

查看带宽大小:sudo ethtool xxx

sudo ethtool eth0

代码语言:javascript
代码运行次数:0
运行
复制
[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

代码语言:javascript
代码运行次数:0
运行
复制
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网卡,如果你想监测eth1网卡的流量,可以使用下面的命令。

代码语言:javascript
代码运行次数:0
运行
复制
nload eth1

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

代码语言:javascript
代码运行次数:0
运行
复制
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
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019年09月09日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • nload
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档