Projects / dhcpcd

dhcpcd

dhcpcd is an RFC2131 compliant DHCP client. It is fully featured and yet lightweight: the binary is 60k as reported by size(1) on Linux i386. It has support for duplicate address detection, IPv4LL, carrier detection, and a merged resolv.conf and ntp.conf for which other DHCP clients require third party tools.

Tags
Operating Systems
Implementation

Recent releases

  •  13 Jan 2010 19:52

    Release Notes: This release fixes compilation, routing issues on Linux, and more.

    •  08 Jul 2009 22:56

      Release Notes: A crash on MIPS has been fixed. This release will default to requesting interface MTU, and save and restore interface MTU when changing. IP whitelist has been added. Detection of correct dstaddr for PtP interfaces at startup has been fixed. This release ensures that the lease and pidfile directories exist at startup.

      •  14 May 2009 16:37

        Release Notes: The ServerID requirement in DHCP messages can be toggled in dhcpcd.conf. If MTU is requested, it won't be applied if it's less than 576. A minimum lease time of 20 seconds is enforced.

        •  11 May 2009 11:02

          Release Notes: The -n option now starts dhcpcd if it is not already started. The 29-lookup-hostname hook was installed by default, but was skipped in dhcpcd.conf. A warning about missing directories if we don't have any existing state was fixed. Compiling on some Linux distributions regarding linux/wireless.h was fixed. A crash when getifaddrs(3) returns NULL ifa_addr was fixed.

          •  03 May 2009 06:58

            Release Notes: Compile warnings on Sparc64 were silenced. Existing address detection was fixed.

            Recent comments

            17 Feb 2004 18:55 ckrainey

            *** WARNING *** dhcpcd will over-write /etc/ntp.conf
            If using a consumer-grade router, eg. SMC Barricade 7004AWBR and dhcpcd with NTP client, then, you'll have to pass the 'dhcpcd -N' command to prevent over-write of your '/etc/ntp.conf' file. dhcpcd is supposed to restore the file upon exit -- but it does not --. Consumer routers will often grant infinite IP address' to clients and this causes dhcpcd to exit(rather than deamonize to background). It does not restore the ntp.conf file as indicated by the man page(!?).

            'dhcpcd -N' will prevent this behavior.

            07 Jan 2002 23:13 proskin

            The best DHCP client
            I believe that dhcpcd is the best DHCP client for GNU/Linux. I have never had problems with it. It's easy to setup and it works with all DHCP servers and network interfaces I have ever tried.

            I remember seeing both dhclient and pump confused where dhcpcd just did its job. In one case it was a buggy DHCP server, in the other it was a buggy network driver.

            Many thanks to the developers of dhcpcd.

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.