| 用途 | 查看网卡链路状态与统计/特性 |
|---|---|
| 语法 | ethtool [选项] 接口 |
| 所属 | ethtool |
常用示例
常用示例
ethtool eth0
ethtool -S eth0 | grep -iE 'err|drop|miss' | head
ethtool -g eth0
ethtool eth0 | grep -E 'Speed|Duplex|Link detected'Link detected: no 说明物理链路断/未插;Speed 100Mb/s 而交换机是 1G 时检查协商。
ethtool 读取/设置网卡链路:Speed/Duplex/Link、-S 驱动统计(丢包/错误/队列)、-g 环、-k 卸载特性;网络慢查硬件侧。
| 用途 | 查看网卡链路状态与统计/特性 |
|---|---|
| 语法 | ethtool [选项] 接口 |
| 所属 | ethtool |
ethtool eth0
ethtool -S eth0 | grep -iE 'err|drop|miss' | head
ethtool -g eth0
ethtool eth0 | grep -E 'Speed|Duplex|Link detected'