dhcpcd is an implementation of the DHCP client specified in RFC2131. A DHCP client is useful for connecting your computer to a network which uses DHCP to assign network addresses. dhcpcd strives to be a fully featured, yet very lightweight DHCP client.
This package is known to build and work properly using an LFS 7.8-systemd platform.
Make sure that you disable the systemd-networkd service or configure it not to manage the interfaces you want to manage with dhcpcd.
Download (HTTP): http://roy.marples.name/downloads/dhcpcd/dhcpcd-6.11.0.tar.xz
Download (FTP): ftp://roy.marples.name/pub/dhcpcd/dhcpcd-6.11.0.tar.xz
Download MD5 sum: 8c1340a53fd7e56d32bb6fef6e1354ee
Download size: 176 KB
Estimated disk space required: 2.2 MB
Estimated build time: less than 0.1 SBU
LLVM-3.8.0 (with Clang)
Install dhcpcd by running the following commands:
./configure --libexecdir=/lib/dhcpcd \ --dbdir=/var/lib/dhcpcd && make
This package does not come with a test suite.
Now, as the
/libexec is not
FHS-compliant. Since this directory may need to be available early
in the boot,
/usr/libexec cannot be
/var/db is not
--with-hook=...: You can optionally
install more hooks, for example to install some configuration files
ntp.conf. The set of hooks is
dhcpcd-hooks directory in the
If you want to configure network interfaces at boot using
dhcpcd, you need to
install the systemd unit included in blfs-systemd-units-20150310 package by
running the following command as the
Whenever dhcpcd configures or shuts down a network interface, it executes hook scripts. For more details about those scripts, see the dhcpcd-run-hooks and dhcpcd man pages.
behavior of dhcpcd sets the hostname and
mtu settings. It also overwrites
/etc/ntp.conf. These modifications to system
files and settings on system configuration files are done by
hooks which are stored in
/lib/dhcpcd/dhcpcd-hooks. Setup dhcpcd by removing or adding
hooks from/to that directory. The execution of hooks can be
disabled by using the
-C) command line option or by the
nohook option in the
At this point you can test if dhcpcd is behaving as expected
by running the following command as the
systemctl start dhcpcd@
To start dhcpcd on
a specific interface at boot, enable the previously installed
systemd unit by running the following command as the
systemctl enable dhcpcd@
eth0 with the
actual interface name.
Last updated on 2016-05-15 17:46:37 -0500