How to Configure a DHCP Client in Red Hat Linux
The first step for configuring a DHCP client is to make sure the kernel recognizes the network interface card. Most cards are recognized during the installation process, and the system is configured to use the correct kernel module for the card. If you install a card after installation,KudzuÂ should recognize it and prompt you to configure the corresponding kernel module for it. Be sure to check the Red Hat Linux Hardware Compatibility List available atÂ http://hardware.redhat.com/hcl/.Â
To configure a DHCP client manually, you need to modify theÂ /etc/sysconfig/networkÂ file to enable networking and the configuration file for each network device in theÂ /etc/sysconfig/network-scriptsÂ directory. In this directory, each device should have a configuration file namedÂ ifcfg-eth0Â whereÂ eth0Â is the network device name.
TheÂ /etc/sysconfig/networkÂ file should contain the following line:
You might have more information in this file, but theÂ NETWORKINGÂ variable must be set toÂ yesÂ if you want networking to start at boot time.
TheÂ /etc/sysconfig/network-scripts/ifcfg-eth0Â file should contain the following lines:
DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes
You need a configuration file for each device that you want to configure to use DHCP.
If you prefer a graphical interface for configuring a DHCP client, refer toÂ Chapter 11Â for details on usingÂ Network ConfiguratorÂ to configure a network interface to use DHCP.