I have the appropriate network file with DHCP enabled.
$ cat /etc/systemd/network/20-dhcp.network
[Match]
Name=enp3*
[Network]
DHCP=ipv4
[DHCP]
UseDomains=true
I have appropriate /etc/resolv.conf as well. I am not using systemd-resolvd daemon (and it may not have anything to do with it, because I did try using it, but did not help anyway). Any ideas why the DHCP client needs to be run manually to get it working?
systemd-network, please. – GAD3R Nov 01 '18 at 19:08DHCPServermode would probably result in DHCP client mode being disabled. If you want the DHCP client mode you only need to set theDHCPvariable in the[NETWORK]config section. – Pierz Jan 04 '23 at 11:57