Difference between revisions of "Dhcpcd"
From CBLFS
Jump to navigationJump to searchLine 55: | Line 55: | ||
make install | make install | ||
+ | |||
+ | == Configuring == | ||
+ | |||
+ | === Network Service === | ||
+ | |||
+ | Install the dhcpcd service included in the [[blfs-bootscripts]] package: | ||
+ | |||
+ | make install-service-dhcpcd | ||
+ | |||
+ | === Example Configuration === | ||
+ | |||
+ | install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 && | ||
+ | cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd << "EOF" | ||
+ | ONBOOT="yes" | ||
+ | SERVICE="dhcpcd" | ||
+ | DHCP_START="" | ||
+ | DHCP_STOP="-k" | ||
+ | |||
+ | # 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 |
Revision as of 14:18, 31 December 2006
Download Source: | http://download.berlios.de/dhcpcd/dhcpcd-5.2.8.tar.bz2 |
---|
Contents
Introduction to Dhcpcd
Dhcpcd is 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.
Dependencies
Non-Multilib
Compile the package:
make CC="gcc"
Install the package
make install
Multilib
This package does not provide any libraries so only one installation is needed.
32Bit
Compile the package:
make CC="gcc ${BUILD32}"
Install the package
make install
N32
Compile the package:
make CC="gcc ${BUILDN32}"
Install the package
make install
64Bit
Compile the package:
make CC="gcc ${BUILD64}"
Install the package
make install
Configuring
Network Service
Install the dhcpcd service included in the blfs-bootscripts package:
make install-service-dhcpcd
Example Configuration
install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 && cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd << "EOF" ONBOOT="yes" SERVICE="dhcpcd" DHCP_START="" DHCP_STOP="-k" # 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