Linux下ifconfig -a或ifconfig eth0之类的输出中,有好些计数器,如:RX packets、RX bytes、TX packets、TX bytes、 errors、 dropped等等。 ifconfig的manual里貌似没有提到这些计数器怎么清零,翻了翻google,发现答案, 在如下几种情况下,ifconfig输出的计数器会被清零: 1,计数器达到上限。计数器是一个unsigned in...
(Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device memory 0xdf000000-df01ffff lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0...
RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 336 (336.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 0 (Local Loopback) RX packets 0 bytes 0 ...
# RX packets:网络从启动到现在为止接收的数据包大小,单位是字节,error 发生错误的数据包,dropped 被丢弃的数据包 # TX packets:网络从启动到现在为止发送的数据包大小,单位是字节,error 发生错误的数据包,dropped 被丢弃的数据包 # collisions:发生碰撞的数据包,如果发生太多次,表明网络状况不太好 # txqueuelen:传...
RX packets: 接收的数据包数 errors: 接收时错误的数据包数 dropped 接收时丢弃的数据包数 overruns: 接收时由于 buffer 溢出而丢弃的数据包数 frame: 接收时由于 frame 错位而丢弃的数据包数 TX packets 发送的数据包数 errors: 发送时错误的数据包数 dropped: 发送时丢弃的数据包数 overruns: 发送时由于 buffe...
RX packets:33232 errors:0 dropped:0 overruns:0 frame:0 TX packets:23454 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:25436698 (25.4 MB) TX bytes:2316548 (2.3 MB) “` 在输出结果中,可以找到有关网络接口的各种信息,如: ...
RX packets 363 bytes 33322 (32.5 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 247 bytes 24982 (24.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 ...
RX packets0bytes0(0.0 B) RX errors0dropped0overruns0frame0 TX packets0bytes0(0.0 B) TX errors0dropped0overruns0carrier0collisions0 lo:flags=73<UP,LOOPBACK,RUNNING> mtu65536 inet127.0.0.1 netmask255.0.0.0 inet6 ::1 prefixlen128scopeid 0x10<host> ...
[root@linuxprobe ~]# ifconfig -alo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overr...
RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@rhel77 ~]# 3.2.过滤网卡IP信息 命令: ifconfig | grep inet | awk '{print $2}' | head -n1 ...