Linux常用网卡命令
跳到导航
跳到搜索
linux常用网卡命令
查看网卡的网速
mypc $sudo ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: Symmetric Receive-only Advertised auto-negotiation: Yes Link partner advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Link partner advertised pause frame use: No Link partner advertised auto-negotiation: Yes Speed: 1000Mb/s #------>网卡速度 Duplex: Full Port: MII PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000033 (51) drv probe ifdown ifup Link detected: yes
网卡控制器的制造商信息
sudo lspci | grep Ethernet 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
查看网络实时带宽
在linux的proc文件系统中,通过查看/proc/net/dev文件 可以得到每个网络接口的吞吐量,但是无法获得实时带宽
遇到个问题 从公司的pc rsync 到本本时 速度才最高 11.61MB/s 左右 ,而我记得上次从公司的CP rsync到内网测试机不只这个速度呀 在小伙伴的提醒下 查看一下 自己本本的网卡速度 果真只有 100Mb/s