Configuring dhcpcd
Config files
/var/lib/dhcpc/*
Configuration Information
To configure dhcpcd, we need to first install
the network service script,
/etc/sysconfig/network-devices/services/dhcpcd
included in the package.
make install-service-dhcpcd
Now create the ifconfig.eth0 configuration
file using the following commands. Adjust appropriatly for additional
interfaces.
Note: This will overwrite any existing file.
cat > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF"
ONBOOT=yes
DHCP_START="[insert appropriate start options here]"
DHCP_STOP="-k [insert other stop options here]"
SERVICE=dhcpcd
EOF
For more information on the appropriate
DHCP_START and DHCP_STOP
values, examine the man page for dhcpcd.
Finally, if the DHCP configured interface is
used as your default gateway, you should remove the GATEWAY and GATEWAY_IF
variables from /etc/sysconfig/network:
sed -i "s/GATEWAY/#&/" /etc/sysconfig/network