1 [root@ks-server ~]# yum install dhcp -y >> /dev/null
 2 [root@ks-server ~]# rpm -ql dhcp | grep "dhcpd.conf"
 3 /etc/dhcp/dhcpd.conf
 4 /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example
 5 /usr/share/doc/dhcp-4.2.5/ldap/dhcpd-conf-to-ldap
 6 /usr/share/man/man5/dhcpd.conf.5.gz
 7 [root@ks-server ~]#cat /etc/dhcp/dhcpd.conf 
 8 #
 9 # DHCP Server Configuration file.
10 #   see /usr/share/doc/dhcp*/dhcpd.conf.example
11 #   see dhcpd.conf(5) man page
12 #
13 subnet 192.168.2.0 netmask 255.255.255.0 {
14         range 192.168.2.100 192.168.2.254;
15         option domain-name-servers 192.168.2.1;
16         option domain-name "test.cn";
17         option routers 192.168.2.1;
18         option broadcast-address 192.168.2.255;
19         default-lease-time 600;
20         max-lease-time 7200;
21 }
22 [root@ks-server ~]# systemctl start dhcpd
23 [root@ks-server ~]# netstat -nltup|grep dhcpd
24 udp        0      0 0.0.0.0:67    0.0.0.0:*      1732/dhcpd