Current-Users archive

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

Re: DHCP client: dhclient vs dhcpcd ?



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.

FreeBSD uses dhclient in base system, which does not include dhcpcd.

Tom


Home | Main Index | Thread Index | Old Index