Linux: CentOS 6.5
1. Install DHCP service components:
# Rpm-ivh dhcp-4.1.1-38.P1.el6.centos.x86_64.rpm or yum install dhcp
Options and parameters:
-I: install
-V: view more detailed installation information.
-H: displays the installation progress in the installation information column.
2. list all files and directories of the software (list ):
# Rpm-ql dhcp
Options and parameters:
-Q: query
-L: list
3. cp/usr/share/doc/dhcp-4.1.1/dhcpd. conf. sample/etc/dhcpd. conf
Copy sample document
4. vim/etc/dhcpd. conf
Edit configuration document
Subnet 192.168.1.0 netmask has been released successfully {
Range 192.168.1.200 192.168.1.220;
Option domain-name-servers ns1.internal.example.org;
Option domain-name "internal.example.org ";
Option routers 192.168.1.1;
Option broadcast-address 192.168.1.255;
Default-lease-time 600;
Max-lease-time 7200;
}
Host ice {
Hardware ethernet 00: E0: 40: 02: EA: 2A;
Fixed-address 192.168.1.88;
}
5. Start dhcp
/Etc/init. d/dhcpd restart
Service dhcpd restart
Startup failure indicates a problem in the configuration document
6. Check whether the operation is successful
Netstat-tlunp
Tail-n 30/var/log/messages 7. Note: The configuration file has a problem: write less semicolons. The subnet mask and subnet are not the same network segment. The host ip address and the declared subnet are not in the same network segment.
Build a DHCP server in Linux
Configure the master-slave DNS server and DDNS under DHCP in CentOS
SUSE Linux 11 pxe + DHCP + tftp + ftp Unattended Installation
How to Set up a DHCP server in Linux
Step-by-step implementation of DHCP server in Linux