今天通过prometheus发现10G的网卡已经跑满了,想看看网络传输详情。Linux系统里面查看网络有很多工具今天就拿iftop举例说明:
1.首先安装iftop工具:
sudo apt-get install iftop
2.运行命令查看网卡:
ifconfig 或者 ip add 都能查看网卡链接情况以及网卡名称(enp23s0f0)后面会用到
yhb@gz-storage7 ~> ifconfig
enp23s0f0: flags=4163 mtu 1500
inet 192.168.111.188 netmask 255.255.255.0 broadcast 192.168.111.255
inet6 fe80::5a53:c0ff:fe66:2c50 prefixlen 64 scopeid 0x20
ether 58:53:c0:66:2c:50 txqueuelen 1000 (Ethernet)
RX packets 323993441565 bytes 482175882143772 (482.1 TB)
RX errors 0 dropped 279564734 overruns 0 frame 0
TX packets 91195574215 bytes 110093819665062 (110.0 TB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
3.运行命令查看网卡:
sudo iftop -i enp23s0f0 -B
iftop 是一款很轻大的网络查看工具有非常多的功能我在这里只用最简单的查看链接,如想深入了解请查阅相关资料。
页面更新:2024-04-26
本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828
© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号