You are not logged in.

#1 2020-09-03 16:06:47

Tharbad
Member
Registered: 2016-02-27
Posts: 333

[SOLVED] DHCP keeps getting IP when disabled by systemd-networkd

Hi everyone,

Today I had some bizarre bug with systemd-networkd.
I used the wiki to configure static IP on a wired connection. I specifically added DHCP=no to the [network] section.
Alas I still got a DHCP IP. That was strange and I needed a specific IP to access some servers.
In the end I disabled dhcpd service.
Is it a bug?

Thanks

Last edited by Tharbad (2020-09-03 17:06:32)

Offline

#2 2020-09-03 16:16:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,371

Re: [SOLVED] DHCP keeps getting IP when disabled by systemd-networkd

Not a bug, misconfiguration. Why do you have multiple network services enabled on the same interface? There should never be a reason for dhcpcd.service to be enabled if you use systemd-networkd and it will actively lead to unwanted behaviour if it is.

Which is explicitly mentioned here and here and there

Last edited by V1del (2020-09-03 16:22:43)

Offline

#3 2020-09-03 17:05:52

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [SOLVED] DHCP keeps getting IP when disabled by systemd-networkd

DHCP was not enabled on that interface.

I thought that dhcpd was part of systemd. My mistake. I'll disable it on all of my computers now.
Thanks

Offline

Board footer

Powered by FluxBB