CentOS安装DHCP服务

1:首先安装包

yum install dhcp

2:编辑配置文件

vi /etc/dhcp/dhcpd.conf

内容是

subnet 10.96.34.32 netmask 255.255.255.240 {
option routers 10.96.34.33;
option subnet-mask 255.255.255.240;
option domain-name-servers 10.96.34.1;
}
host fir34-039{hardware ethernet 00:0c:29:d8:4a:80;fixed-address 10.96.34.39;}

可以增加的选项

ignore client-updates;

3:启动服务

service dhcpd restart
飞儿传媒www.firadio.com
原文地址:https://www.cnblogs.com/firadio/p/4279706.html