dhclient in LFS
Petr Ovtchenkov
ptr at island.corbina.net
Mon Jun 2 00:31:59 MDT 2008
On Monday 26 May 2008 22:37:33 Ken Moffat wrote:
> On Mon, May 26, 2008 at 07:19:49AM -0600, Gerard Beekmans wrote:
> >
> > > Why dhclient over dhcpcd? I don't really care much, but my argument is
> > >
> > Not real reason why I mentioned one over the other. dhclient is easier
> > to type than dhcpcd but that's a pretty weak argument. :)
> >
> > Would there be a technical reason that anybody knows of why we'd want to
> > pick one over the other?
>
> I prefer dhclient because of its hooks. Not that I make a lot of
> use of them (I just copy a skeletal /etc/hosts on my desktop /
> laptop and then add $new_ip_address in the exit hook, so that I can
> easily see my current address if I need to).
As dhclient as dhcpcd has similar hooks: "cat /var/lib/dhcpcd/dhcpcd-eth0.info",
/etc/dhcpcd.sh vs /etc/dhclient-exit-hooks; both has similar problem: I can't
turn off setting of default routing (and both declare, that I can do it ;)).
dhclient (>= 4.0.0) has support of IPv6, but dhcpcd simpler and lighter
(if you need only DHCP client). [on just builded system I shifted from
dhclient to dhcpcd: edit dhclient-script in /sbin not good idea, IMO].
dhclient really come from BSD, and it portable, while dhcpcd is Linux-specific
(and faster on Linuxes).
--
- ptr
More information about the lfs-dev
mailing list