Environment centos6.5, centos6.6
Install the DHCP service: Yum install dhcp*-y
Edit the configuration file/etc/dhcp/dhcpd.conf me here directly to overwrite the previous content:
Ddns-update-style Interim;
Ignore client-updates;
Next-server 192.168.77.168;
FileName "pxelinux.0";
Allow booting;
Allow BOOTP;
Subnet 192.168.77.0 netmask 255.255.255.0 {
#---Default gateway
Option routers 192.168.77.1;
Option Subnet-mask 255.255.255.0;
# option Nis-domain "domain.org";
# option Domain-name "192.168.0.10";
# option Domain-name-servers 192.168.0.11;
# option Ntp-servers 192.168.1.1;
# option Netbios-name-servers 192.168.1.1;
#---Selects point-to-point node (default is hybrid). Don ' t change this unless
#--You understand Netbios very well
# option Netbios-node-type 2;
Range DYNAMIC-BOOTP 192.168.77.100 192.168.77.200;
Host NS {
Hardware Ethernet 00:1a:a0:2b:38:81;
Fixed-address 192.168.77.101;}
}
Change according to your own situation OK,, restart the service/ETC/INIT.D/DHCPD restart success
The client changes static to DHCP to automatically get the ...
This article is from the "Fluffy Duck" blog, please be sure to keep this source http://woshitieren.blog.51cto.com/2466034/1666087
DHCP service setup under Linux