Linux
Ubuntu netplan arp-ip-target 問題
我有執行 netplan 版本的 ubuntu 20.04
0.102-0ubuntu1~20.04.2
,我正在嘗試active-backup
使用選項配置綁定arp-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
為了進行測試,我禁用了上游交換機埠以查看我的綁定故障轉移,但看起來它不起作用。我還應該解決什麼問題?
添加後就
arp_validate: all
可以了!!parameters: mode: active-backup arp-ip-targets: [ 10.64.0.1 ] arp-interval: 3000 arp-validate: all