1.yum install dhcp -y
2.chkconfig dhcpd on
3.vi /etc/dhcp/dhcpd.conf
ddns-update-style interim;
allow booting;
allow bootp;
next-server 10.12.190.152;
filename "pxelinux.0";
subnet 10.12.190.0 netmask 255.255.255.0 {
option routers 10.12.190.254;
option subnet-mask 255.255.255.0;
option domain-name-servers 10.12.190.152;
option time-offset -18000;
range dynamic-bootp 10.12.190.220 10.12.190.240;
default-lease-time 21600;
max-lease-time 43200;
}
service dhcpd restart
阅读(468) | 评论(0) | 转发(0) |