| 用途 | 分层查看本机丢包计数 |
|---|---|
| 命令 | ethtool -S eth0 / netstat -s / ip -s link |
速查
速查
ethtool -S eth0 | grep -Ei 'drop|error|miss'
ip -s link show eth0
netstat -s | grep -Ei 'drop|overflow|pruned'上电累计计数要取差值:两次采样间隔与业务窗口对齐。
驱动与协议栈各自记录丢弃:ethtool -S 看 rx_dropped/tx_dropped(驱动层),netstat -s 看协议层统计,先分层再归因。
| 用途 | 分层查看本机丢包计数 |
|---|---|
| 命令 | ethtool -S eth0 / netstat -s / ip -s link |
ethtool -S eth0 | grep -Ei 'drop|error|miss'
ip -s link show eth0
netstat -s | grep -Ei 'drop|overflow|pruned'