In article <[email protected]>, Thomas Mueller <[email protected]> wrote: >On Wed, Jan 31, 2018 at 1:18 PM, KIRIHARA Masaharu <[email protected]> >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
Run ldd on them and then add the sizes of the shared libraries they use. >FreeBSD uses dhclient in base system, which does not include dhcpcd. I don't think that we will remove the isc dhcp code from base since we still need it for dhcpd :-) christos
