请建议 - ifconfig 命令中的 FAILED 一词的含义是什么
- 这是否意味着网卡的网络到目前为止还不稳定?
- 不清楚 ifconfig 是否每隔几毫秒读取一次网络状态?我的意思是,如果网络稳定,那么 ifconfig 应该将 FAILED 状态返回为 OK?
耶尔
ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=19000802<BROADCAST,MULTICAST,IPv4,NOFAILOVER,FAILED> mtu 0 index 2
inet 0.0.0.0 netmask 0
groupname Mgmt_ipmp
ether 0:21:28:58:ff:6
e1000g1: flags=11000803<UP,BROADCAST,MULTICAST,IPv4,FAILED> mtu 1500 index 3
inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
groupname Mgmt_ipmp
ether 0:21:28:58:ff:7
答案1
man ifconfig
名为“接口标志”的部分
FAILED
The interface has failed. New addresses cannot be
created on this interface. If this interface is part of
an IP network multipathing group, a failover will occur
to another interface in the group, if possible
有时,IPMP 会注意到接口存在问题,并将其标记为 FAILED(这意味着测试失败,而不是存在硬件问题)。这是因为要么是“链接已关闭”,要么是“ping 测试失败”(假设您有测试地址)。