I have my eth0 interface configured for DHCPv4 via netplan:
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: true
dhcp6: true
optional: true
How do I tell systemd-networkd to renew my DHCP lease? I know with dhclient it's as simple as dhclient -r eth0 && dhclient eth0, as explained in many other answers on this site, but how do I do it for systemd-networkd?
I'm in Ubuntu 18.04 Server.
networkctl renew br0andnetworkctl forcerenew br0do nothing and silently exit with success as far as I can tell.networkctl status br0shows no changes to the DHCP lease, no log messages about obtaining a new lease, and things like the DNS server from the existing lease remain in effect.systemctl restart systemd-networkdon the other hand does everything that is expected. – David Vitek Oct 31 '24 at 16:51forcerenewstill does absolutely nothing! good oldsystemctl daemon-reload && systemctl reload systemd-networkd.serviceis still the only way. – gcb Jan 16 '25 at 03:21