1 安装DHCP

yum -y install dhcp

wKiom1g9b3iAyOvsAAAY375_6A0595.png-wh_50

2 复制文件

cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf

wKioL1g9b3nzLaQAAAAJ34Chehk108.png-wh_50

3 编辑文件

vi /ect/dhcp/dhcpd.conf

wKioL1g9b3uib95GAACbPw4m7lA038.png-wh_50

4 重启dhcpd

 service dhcpd restart

wKiom1g9b3yzAZTbAAAKodyO7Ss448.png-wh_50

5 在客户机上重新获取ip

 wKiom1g9b_zB5nUbAAAnoJOSY4k429.png-wh_50