原帖摘自:http://www.linuxquestions.org/questions/linux-networking-3/ifconfig-eth0-show-errors-814875/
下面是一个例子:
ifconfig eth0
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4233700943 errors:2 dropped:0 overruns:3 frame:5
TX packets:1917219659 errors:1 dropped:0 overruns:0 carrier:348
collisions:5753
txqueuelen:3000
RX bytes:1467520026 (1.3 GiB) TX bytes:2299240337 (2.1 GiB)
如果想要重新初始化
RX packets等计数时,可以通过以下指令
modprobe -r e100; modprobe e100; ifup eth0
e100是网卡驱动名,如果查看网卡驱动名可以通过
指令ethtool -i eth0
driver: e100
version: 3.4.14-k4-NAPI
firmware-version: N/A
bus-info: 0000:01:07.0
初始化ifconfig计数办法
最新推荐文章于 2023-06-21 13:55:32 发布