I have a server with a bonded interface. Here is the netplan file:
# cat /etc/netplan/01-netcfg.yaml
# BEGIN ANSIBLE MANAGED BLOCK
network:
version: 2
renderer: networkd
ethernets:
enp1s0f0:
dhcp4: false
dhcp6: false
addresses: []
optional: true
enp1s0f1:
dhcp4: false
dhcp6: false
addresses: []
optional: true
bonds:
bond0:
interfaces: [enp1s0f0, enp1s0f1]
optional: true
addresses:
- 10.10.10.150/29
gateway4: 10.10.10.145
nameservers:
addresses: [1.1.1.1, 8.8.8.8]
parameters:
lacp-rate: fast
mii-monitor-interval: 100
mode: 802.3ad
transmit-hash-policy: layer2+3
# END ANSIBLE MANAGED BLOCK
Everything works fine and my server gets the address listed (10.10.10.150).
I need to add additional addresses, so I have created the following file:
# cat /etc/netplan/60.yaml
network:
version: 2
renderer: networkd
bonds:
bond0:
addresses:
- 10.10.11.0/24
- 10.10.11.1/24
If I run netplan apply everything works without issue. If I reboot, I am unable to access the server. If I KVM into it and run netplan apply everything magically works again.
Quick look at journalctl and I see the following:
# journalctl --no-pager -lu systemd-networkd
-- Logs begin at Sun 2021-10-31 02:26:37 UTC, end at Sun 2021-10-31 02:28:05 UTC. --
Oct 31 02:26:38 res-d035 systemd[1]: Starting Network Service...
Oct 31 02:26:38 res-d035 systemd-networkd[461]: bond0: netdev ready
Oct 31 02:26:38 res-d035 systemd-networkd[461]: Enumeration completed
Oct 31 02:26:38 res-d035 systemd[1]: Started Network Service.
Oct 31 02:26:38 res-d035 systemd-networkd[461]: enp1s0f1: Link UP
Oct 31 02:26:38 res-d035 systemd-networkd[461]: enp1s0f0: Link UP
Oct 31 02:26:38 res-d035 systemd-networkd[461]: bond0: IPv6 successfully enabled
Oct 31 02:26:38 res-d035 systemd-networkd[461]: bond0: Link UP
Oct 31 02:26:41 res-d035 systemd-networkd[461]: enp1s0f1: Gained carrier
Oct 31 02:26:41 res-d035 systemd-networkd[461]: bond0: Gained carrier
Oct 31 02:26:41 res-d035 systemd-networkd[461]: enp1s0f0: Gained carrier
Oct 31 02:26:42 res-d035 systemd-networkd[461]: bond0: Gained IPv6LL
Oct 31 02:27:03 res-d035 systemd-networkd[461]: bond0: Could not set address: Connection timed out
Oct 31 02:27:03 res-d035 systemd-networkd[461]: bond0: Failed
The last two lines are my error, and do NOT exist when I reboot without the 60.yaml file.
What am I doing wrong here? I assume something is not setup correctly in the 60.yaml file, I just can't figure out where I am messing it up.
Thanks in advance.