# DHCP Networking Configuration

## Creating the DHCP Network Interface Configuration Files

First install the service from the CLFS Bootscripts package:

    tar -xvf bootscripts-cross-lfs-&bootscripts-clfs-version;.tar.xz
    cd bootscripts-cross-lfs-&bootscripts-clfs-version;
    make install-service-dhcpcd

Finally, create the `/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd` configuration file using the following commands. Adjust appropriately for additional interfaces:

    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

The `DHCP_START` and `DHCP_STOP` variables arguments that are passed onto `dhcpcd` when starting and stoppping the service. More information about what can be passed can be found in the `dhcpcd(8)` man page.

To configure another Static Interface, Follow ch-network-static.