Premise: Set as a DHCP server, the IP address setting of the machine will be in the same network segment of the assigned address range
1. See if the DHCP server is installed
# Rpm-qa | Grepdhcp
2. Install if not installed
# yum Install DHCP
3, installed and then view the installation files, that is, repeat the first step of the operation
4. Locate the file you want to copy
# cat/etc/dhcpd.conf
The following files will appear:
See/usr/share/doc/dhcp*/dhcp.conf.conf.smaple
dhcp-3.0.5 This file
5. Copy this file to a file for example:/etc/dhcpd.conf
# cp–p/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample/etc/dhcpd.conf
6. Configuring DHCP Files
Modified: Sub Segment
router-Routing Address (Gateway)
IP Address Pool
7. Restart the DHCP service
# service DHCPD Start
8. Test-Test on another machine
setup--Setting the network IP is obtained by DHCP
Restart the NIC service--service network restart
Ifdown eth0
Ifup eth0