我在 gentoo 中绑定了两个网卡,eth2 和 eth3 绑定到 bond0。为了实现冗余,eth2 连接到不同的交换机,eth2 处于待机模式,eth3 处于活动模式。eth3 运行良好,没有丢包,但 eth2 不断丢包。我交换了电缆并检查了交换机端口,没有显示任何错误。我在 eth2 上执行了 TCPDUMP,我看到的只有 arp 请求。
eth2:flags=6211 mtu 1500 ether 90:b1:1c:19:59:1e txqueuelen 1000(以太网)RX 数据包 32664867 字节 2090551811(1.9 GiB)RX 错误 0 已删除 32664913 溢出 0 帧 0 TX 数据包 0 字节 0 (0.0 B)TX 错误 0 丢弃 0 溢出 0 载波 0 冲突 0 设备中断 36 内存 0xd7000000-d77fffff
eth3:flags=6211 mtu 1500 ether 90:b1:1c:19:59:1e txqueuelen 1000(以太网)RX 数据包 3186342439 字节 683402238345(636.4 GiB)RX 错误 0 丢弃 0 超限 0 帧 0 TX 数据包 2465388994 字节 575317691871(535.8 GiB)TX 错误 0 下降 0溢出 0 载体 0 冲突 0 设备中断 37 内存 0xd8000000-d87fffff
内核 Linux 3.7.9-gentoo
网络配置
config_eth0="空" config_eth1="空"
config_eth2="null"
config_eth3="null"
slaves_bond0="eth2 eth3"
config_bond0="64.241.127.5/27"
routes_bond0="default via 64.241.127.1"
ethtool 输出
Settings for eth2:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 18
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: g
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: yes
Settings for eth3:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 19
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: g
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: yes
**
- 我认为问题很可能是由来自绑定中的 eth2(备用)从属设备的广播 arp 请求引起的。有人知道如何关闭从属绑定上的广播 arp 吗?
**