Repro instructions:
- (Enable systemd-networkd debug logging)
- Start a server with its interface configured with DHCP
- In the netplan config, configure the interface wtih static addressing, using the exact same address as it already has gotten from DHCP
- Either wait for the initial DHCP lease time to expire, and observe that the interface loses its address; OR observe in the debug log that networkd applied the address with a lease time, even though you told netplan to use static addressing
Networkd config with static addressing:
cat /run/systemd/network/10-netplan-ens3.network
[Match]
MACAddress=<redacted>
Repro instructions:
- (Enable systemd-networkd debug logging)
- Start a server with its interface configured with DHCP
- In the netplan config, configure the interface wtih static addressing, using the exact same address as it already has gotten from DHCP
- Either wait for the initial DHCP lease time to expire, and observe that the interface loses its address; OR observe in the debug log that networkd applied the address with a lease time, even though you told netplan to use static addressing
Networkd config with static addressing: network/ 10-netplan- ens3.network <redacted>
cat /run/systemd/
[Match]
MACAddress=
[Network] sing=ipv6 10.212. 132.107/ 24 10.212. 132.1
LinkLocalAddres
Address=
Gateway=
DNS=8.8.8.8
DNS=8.8.4.4
Domains=<redacted>
Networkd config with DHCP: network/ 10-netplan- ens3.network <redacted> sing=ipv6
cat /run/systemd/
[Match]
MACAddress=
[Network]
DHCP=ipv4
LinkLocalAddres
[DHCP]
RouteMetric=100
UseMTU=true
Debug log output from systemd-networkd when netplan tells it to apply static addressing when the interface already has an address from DHCP: networkd[ 6086]: ens3: Adding address: 10.212.132.107/24 (valid for 11h 52min 55s)
Sep 30 10:36:15 nettest1 systemd[1]: Stopped Network Service.
Sep 30 10:36:16 nettest1 systemd[1]: Starting Network Service...
<snip>
Sep 30 10:36:16 nettest1 systemd-