Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: DHCP client: dhclient vs dhcpcd ?



On Thu, 1 Feb 2018, Thomas Mueller wrote:
On Wed, Jan 31, 2018 at 1:18 PM, KIRIHARA Masaharu <mki_open%yahoo.co.jp@localhost> wrote:
NetBSD has two DHCP clients; dhclient(8) and dhcpcd(8).
What's the difference?
Which is better to use?

On Wed, 31 Jan 2018 13:47:42 +0100, Benny Siegert responded:

I agree that this is confusing. dhclient is the older tool, while
dhcpcd has been created by a NetBSD developer, is newer and smaller. I
have run into situations (on Google Compute Engine for instance) where
dhclient was unable to interpret some of the more modern DHCP
features.

I recommend using dhcpcd :)

I have read about NetBSD planning to drop dhclient in favor of dhcpcd.

I have had installations where dhcpcd succeeded where dhclient failed, and (7.99.1 amd64) where dhclient succeeded where dhcpcd failed.

Failure means not being able to set up the internet connection even if the command ran without error messages.

I have also had a situation where neither dhcpcd nor dhclient could establish the internet connection, but I was able to connect by using ifconfig and route directly.

I notice NetBSD's dhclient is very big while FreeBSD's dhclient is much smaller, like

$ ls -l /sbin/dhclient
-r-xr-xr-x  1 root  wheel  100056 Jul 31  2017 /sbin/dhclient
$ ls -l /media/zip0/sbin/dh*
-r-xr-xr-x  1 root  wheel  5352184 Jun 20  2017 /media/zip0/sbin/dhclient
-r-xr-xr-x  1 root  wheel     6221 Jun 20  2017 /media/zip0/sbin/dhclient-script
-r-xr-xr-x  1 root  wheel   299176 Jun 20  2017 /media/zip0/sbin/dhcpcd

running from FreeBSD 11.1-STABLE where /media/zip0 is mount point for NetBSD 8.99.1 installation.

Interesting. NetBSD-5/i386:
# ls -l /sbin/dhclient
-r-xr-xr-x  1 root  wheel  353002 May 21  2010 /sbin/dhclient

NetBSD-7/amd64:
# ls -l /sbin/dhclient
-r-xr-xr-x  1 root  wheel  5056282 Jan 16 14:27 /sbin/dhclient

Both dynamically linked, not stripped.

--
Stephen



Home | Main Index | Thread Index | Old Index