dhcpcdis an implementation of the DHCP client specified in RFC2131. This is useful for connecting your computer to a network which uses DHCP to assign network addresses.
Download (HTTP): http://download.berlios.de/dhcpcd/dhcpcd-2.0.8.tar.bz2
Download (FTP): ftp://ftp.osuosl.org/pub/gentoo/distfiles/dhcpcd-2.0.8.tar.bz2
Download MD5 sum: ec91c33b6d9cb46a42f9564e573fd249
Download size: 123 KB
Estimated disk space required: 1.2 MB
Estimated build time: less than 0.1 SBU
Install dhcpcd by running the following commands:
./configure --prefix="" --mandir=/usr/share/man && make
This package does not come with a test suite.
Now, as the root user:
make install && chmod -v 754 /etc/dhcpc/dhcpcd.exe
--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.
To configure dhcpcd, you need to first install the network service script, /etc/sysconfig/network-devices/services/dhcpcd included in the blfs-bootscripts-20060910 package (as user root):
Whenever dhcpcd configures or shuts down a network interface, it executes the script /etc/dhcpc/dhcpcd.exe. This script can be customized to perform additional actions for the network interface. See the man page of dhcpcd for more details.
install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 && cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd << "EOF" ONBOOT="yes" SERVICE="dhcpcd" DHCP_START="<insert appropriate start options here>" DHCP_STOP="-k <insert additional stop options here>" # Set PRINTIP="yes" to have the script print # the DHCP assigned IP address PRINTIP="no" # Set PRINTALL="yes" to print the DHCP assigned values for # IP, SM, DG, and 1st NS. This requires PRINTIP="yes". PRINTALL="no" EOF
For more information on the appropriate DHCP_START and DHCP_STOP values, examine the man page for dhcpcd.
Last updated on 2007-02-14 11:57:11 -0600