dhcpcd-1.3.22-pl4

Introduction to dhcpcd

Download location (HTTP):       
Download location (FTP):        ftp://ftp.phystech.com/pub/dhcpcd-1.3.22-pl4.tar.gz
Version used:                   1.3.22-pl4
Package size:                   145 KB
Estimated Disk space required:  750 KB

The dhcpcd package contains the dhcpcd client. This is useful for connecting your computer to a network which uses DHCP to assign network addresses.

Installation of dhcpcd

Before installing dhcpcd, you need to download dhcpcd-1.3.22-pl4.patch from http://downloads.linuxfromscratch.org/blfs-patches and place it to your source directory.

Install dhcpcd by running the following commands:

patch -Np1 -i ../dhcpcd-1.3.22-pl4.patch &&
./configure --prefix="" --sysconfdir=/var/lib \
--mandir=/usr/share/man &&
make &&
make install

Command explanations

patch -Np1 -i ../dhcpcd-1.3.22-pl4.patch : Dhcpcd unpatched puts all configuration and temporary files in /etc/dhcpc. This becomes very annoying when dhcpcd tells you it's running and it's not. You look in /var/run for the pid file, but it's not there, the pid file that needs deleting is in /etc/dhcpc. This patch brings this program into FHS compliance, but more importantly, puts files where you expect them to be.

--prefix="" : There may be a good reason for abandoning the normal BLFS convention of using --prefix=/usr here. If you are installing DHCP, it is likely that it is required during the boot process and /usr may be network mounted in which case, dhcpcd wouldn't be available due to being on the network! Therefore, depending on your situation, you may want it to be installed in /sbin or /usr/sbin. This command installs to /sbin.

--sysconfdir=/var/lib : This command install configuration files in the /var/lib directory.

--mandir=/usr/share/man : This command install the man pages to the /usr/share/man directory.

Configuring dhcpcd

Config files

/var/lib/dhcpc/*

Configuration Information

To configure dhcpcd, create the ifconfig.eth0 file with the following commands (note that this will overwrite any existing file):

cd /etc/sysconfig/network-devices &&
cat > ifconfig.eth0 << "EOF"
ONBOOT=yes
DHCP_PROG=/sbin/dhcpcd
DHCP_START=<appropriate start parameters>
DHCP_STOP=-k
EOF

For more information on the appropriate DHCP_START and DHCP_STOP values, examine the man page for dhcpcd.

Contents

The dhcpcd package contains dhcpcd.

Description

dhcpcd

dhcpcd is an implementation of the DHCP client specified in RFC2131 and RFC1541 (depending on which options are specified).