eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500\n inet 10.32.97.31 netmask 255.255.255.0 broadcast 10.32.97.255\n inet6 fe80::f816:3eff:fe65:e144 prefixlen 64 scopeid 0x20<link>\n ether fa:16:3e:65:e1:44 txqueuelen 1000 (Ethernet)\n RX packets 3872834 bytes 507087439 (483.5 MiB)\n RX errors 0 dropped 0 overruns 0 frame 0\n TX packets 1295415 bytes 92711614 (88.4 MiB)\n TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0\n这是一个网络接口 eth0 的描述信息。其中包含了以下信息:\n\n- flags=4163:表示网络接口的状态,包括 UP(已启用)、BROADCAST(支持广播)、RUNNING(正在运行)和 MULTICAST(支持组播)。\n- mtu 1500:表示最大传输单元的大小,一般为 1500 字节。\n- inet 10.32.97.31:表示接口的 IPv4 地址是 10.32.97.31。\n- netmask 255.255.255.0:表示子网掩码是 255.255.255.0。\n- broadcast 10.32.97.255:表示广播地址是 10.32.97.255。\n- inet6 fe80::f816:3eff:fe65:e144:表示接口的 IPv6 地址是 fe80::f816:3eff:fe65:e144。\n- prefixlen 64:表示 IPv6 地址的前缀长度为 64 位。\n- scopeid 0x20<link>:表示接口的作用域为链路层。\n- ether fa:16:3e:65:e1:44:表示接口的 MAC 地址是 fa:16:3e:65:e1:44。\n- txqueuelen 1000:表示发送队列的长度为 1000。\n- RX packets 3872834:表示接收的数据包数量为 3872834。\n- bytes 507087439:表示接收的数据字节数为 507087439。\n- RX errors 0:表示接收过程中发生的错误数量为 0。\n- dropped 0:表示接收过程中丢弃的数据包数量为 0。\n- overruns 0:表示接收过程中产生的溢出错误数量为 0。\n- frame 0:表示接收过程中发生的帧错误数量为 0。\n- TX packets 1295415:表示发送的数据包数量为 1295415。\n- bytes 92711614:表示发送的数据字节数为 92711614。\n- TX errors 0:表示发送过程中发生的错误数量为 0。\n- dropped 0:表示发送过程中丢弃的数据包数量为 0。\n- overruns 0:表示发送过程中产生的溢出错误数量为 0。\n- carrier 0:表示发送过程中发生的载波错误数量为 0。\n- collisions 0:表示发送过程中发生的碰撞错误数量为 0。

eth0 网络接口状态信息 - IP 地址、MAC 地址、数据流量统计

原文地址: https://www.cveoy.top/t/topic/qFKY 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录