小编abl*_*hat的帖子

“cat /proc/net/dev”和“ip -s link”显示不同的统计数据。哪一个在说谎?

我注意到/proc/net/dev说 eth3 有 1753drop秒。ip -s link显示 0 dropped。为什么有区别?不同的数据来自哪里?哪一个是正确的?

我已经删除了额外的数据。

# uname -a
Linux example09 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012 x86_64 GNU/Linux

# lsb_release -a
Distributor ID: Debian
Description:    Debian GNU/Linux 6.0.4 (squeeze)
Release:        6.0.4
Codename:       squeeze

# cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
  eth3:1258629839430 12545003042    0 1753    0     0          0  10594858 6666255952912 10026428444 …
Run Code Online (Sandbox Code Playgroud)

networking linux ip

9
推荐指数
1
解决办法
1万
查看次数

标签 统计

ip ×1

linux ×1

networking ×1