Difference between revisions of "Dhcpcd"

From CBLFS
Jump to navigationJump to search
(Introduction to Dhcpcd)
(Updated to version 5 as per svn (20100828) book)
 
(13 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://download.berlios.de/dhcpcd/dhcpcd-{{Dhcpcd-Version}}.tar.bz2
+
| http://roy.marples.name/downloads/dhcpcd/dhcpcd-{{Dhcpcd-Version}}.tar.bz2
 
|}
 
|}
  
 
----
 
----
  
== Introduction to Dhcpcd ==
+
{{Package-Introduction|A DHCP client|http://roy.marples.name/dhcpcd}}
 
 
<Package Description Needed>
 
  
 
== Dependencies ==
 
== Dependencies ==
  
 
== Non-Multilib ==
 
== Non-Multilib ==
 +
 +
Configure the package:
 +
 +
./configure --prefix=/usr --sbindir=/sbin \
 +
    --sysconfdir=/etc --dbdir=/var/lib/dhcpcd --libexecdir=/usr/lib/dhcpcd
  
 
Compile the package:
 
Compile the package:
  
  make CC="gcc"
+
  make
  
 
Install the package
 
Install the package
Line 27: Line 30:
  
 
=== 32Bit ===
 
=== 32Bit ===
 +
 +
Configure the package:
 +
 +
CC="gcc ${BUILD32}" ./configure --prefix=/usr --sbindir=/sbin \
 +
    --sysconfdir=/etc --dbdir=/var/lib/dhcpcd --libexecdir=/usr/lib/dhcpcd
  
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILD32}"
+
  make
  
 
Install the package
 
Install the package
Line 37: Line 45:
  
 
=== N32 ===
 
=== N32 ===
 +
 +
Configure the package:
 +
 +
CC="gcc ${BUILDN32}" ./configure --prefix=/usr --sbindir=/sbin \
 +
    --sysconfdir=/etc --dbdir=/var/lib/dhcpcd --libexecdir=/usr/lib/dhcpcd
  
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILDN32}"
+
  make
  
 
Install the package
 
Install the package
Line 47: Line 60:
  
 
=== 64Bit ===
 
=== 64Bit ===
 +
 +
Configure the package:
 +
 +
CC="gcc ${BUILD64}" ./configure --prefix=/usr --sbindir=/sbin \
 +
    --sysconfdir=/etc --dbdir=/var/lib/dhcpcd --libexecdir=/usr/lib/dhcpcd
  
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILD64}"
+
  make
  
 
Install the package
 
Install the package
Line 60: Line 78:
 
=== Network Service ===
 
=== Network Service ===
  
Install the dhcpcd service included in the [[blfs-bootscripts]] package:
+
Install the dhcpcd service included in the [[bootscripts]] package:
  
 
  make install-service-dhcpcd
 
  make install-service-dhcpcd
Line 66: Line 84:
 
=== Example Configuration ===
 
=== Example Configuration ===
  
  install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &&
+
  cd /etc/sysconfig/network-devices &&
  cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd << "EOF"
+
mkdir -v ifconfig.eth0 &&
 +
  cat > ifconfig.eth0/dhcpcd << "EOF"
 
  ONBOOT="yes"
 
  ONBOOT="yes"
 
  SERVICE="dhcpcd"
 
  SERVICE="dhcpcd"
DHCP_START=""
 
DHCP_STOP="-k"
 
 
   
 
   
  # Set PRINTIP="yes" to have the script print
+
  # Start Command for DHCPCD
# the DHCP assigned IP address
+
  DHCP_START="-q"
  PRINTIP="no"
 
 
   
 
   
  # Set PRINTALL="yes" to print the DHCP assigned values for
+
  # Stop Command for DHCPCD
  # IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
+
  DHCP_STOP="-k"
PRINTALL="no"
 
 
  EOF
 
  EOF
 +
 +
[[Category:Network Utilities]]

Latest revision as of 03:15, 15 October 2010

Download Source: http://roy.marples.name/downloads/dhcpcd/dhcpcd-5.2.8.tar.bz2

Introduction to Dhcpcd

A DHCP client

Project Homepage: http://roy.marples.name/dhcpcd

Dependencies

Non-Multilib

Configure the package:

./configure --prefix=/usr --sbindir=/sbin \
   --sysconfdir=/etc --dbdir=/var/lib/dhcpcd --libexecdir=/usr/lib/dhcpcd

Compile the package:

make

Install the package

make install

Multilib

This package does not provide any libraries so only one installation is needed.

32Bit

Configure the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr --sbindir=/sbin \
   --sysconfdir=/etc --dbdir=/var/lib/dhcpcd --libexecdir=/usr/lib/dhcpcd

Compile the package:

make

Install the package

make install

N32

Configure the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr --sbindir=/sbin \
   --sysconfdir=/etc --dbdir=/var/lib/dhcpcd --libexecdir=/usr/lib/dhcpcd

Compile the package:

make

Install the package

make install

64Bit

Configure the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --sbindir=/sbin \
   --sysconfdir=/etc --dbdir=/var/lib/dhcpcd --libexecdir=/usr/lib/dhcpcd

Compile the package:

make

Install the package

make install

Configuring

Network Service

Install the dhcpcd service included in the bootscripts package:

make install-service-dhcpcd

Example Configuration

cd /etc/sysconfig/network-devices &&
mkdir -v ifconfig.eth0 &&
cat > ifconfig.eth0/dhcpcd << "EOF"
ONBOOT="yes"
SERVICE="dhcpcd"

# Start Command for DHCPCD
DHCP_START="-q"

# Stop Command for DHCPCD
DHCP_STOP="-k"
EOF