Ubuntu netplan arp-ip-target 问题

Ubuntu netplan arp-ip-target 问题

我有 ubuntu 20.04 运行 netplan 版本0.102-0ubuntu1~20.04.2,我正在尝试active-backup使用 using 选项配置 bondarp-ip-target

  bonds:
        bond0:
          dhcp4: no
          interfaces:
            - eno49
            - eno50
          parameters:
            mode: active-backup
            arp-ip-targets: [ 10.64.0.1 ]
            arp-interval: 3000

这是我的债券输出

# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eno49
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0
ARP Polling Interval (ms): 3000
ARP IP target/s (n.n.n.n form): 10.64.0.1

Slave Interface: eno50
MII Status: down
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 5c:b9:01:9d:ac:ad
Slave queue ID: 0

Slave Interface: eno49
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 5c:b9:01:9d:ac:ac
Slave queue ID: 0

为了进行测试,我禁用上游交换机端口以查看我的绑定故障转移,但看起来它不起作用。我还应该做什么来排除故障?

答案1

添加后就arp_validate: all可以了!!

parameters:
  mode: active-backup
  arp-ip-targets: [ 10.64.0.1 ]
  arp-interval: 3000
  arp-validate: all

相关内容