1 安装DHCP
yum -y install dhcp
2 复制文件
cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
3 编辑文件
vi /ect/dhcp/dhcpd.conf
4 重启dhcpd
service dhcpd restart
5 在客户机上重新获取ip