Both dhclient and dhcpcd running

By coincidence I noticed that either dhclient ist started as well as dhcpcd:
ps ax | grep dhc:

  511 ?        S      0:00 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /run/ -lf /var/lib/NetworkManager/ -cf /var/lib/NetworkManager/dhclient-eth0.conf eth0
  771 ?        Ss     0:00 /sbin/dhcpcd -q -w

journalctl shows also the following:

openhab dhclient[609]: Can't bind to dhcp address: Address already in use
openhab dhclient[609]: Please make sure there is no other dhcp server
openhab dhclient[609]: running and that there's no entry for dhcp or

That seems to be a misconfiguration of OH3 default image. Before deinstalling dhclient I’d just want to double check with you guys as I am not a linux expert.
Anybody else noticed this?

I am not using the latest ( 1.7.X ) image.
On mine /sbin/dhcpcd -q -w is running.
Neither dhclient nor network-manager is installed.
network-manager seems to be required to use wifi.

Thanks Wolfgang,
then probably a package has installed dhclient as a dependency.

Hi Wolfgang,
do you know how to disable dhclient?
Network-Manager is also started on my OH server, which I have now disabled by removing the file network-manager from init.d (I hope that this is correct).
But I cannot find a way t o disable dhclient

I would have tried to stop and disable network-manager with:

sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service

As I do not have dhclient running here I am not sure if the following works.

sudo systectl status > /tmp/debug.txt

Then check inside the file if you can find which service belongs to dhclient.

1 Like