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

 

posted on 2015-02-08 09:42  飞儿传媒  阅读(267)  评论(0编辑  收藏  举报
飞儿传媒