DHCP:D ynamic host config Protocol Dynamic Host Configuration Protocol works with UDP protocol
Port:
DHCP SERVER:UDP67
DHCP client:udp68
To formally install the DHCP service:
Yum Install DHCP dhcp-devel-y, then modify DHCP
The contents of the/etc/dhcpd.conf configuration file are as follows:
Ddns-uupdate-style Interim;
Ignore client-updates;
Next-server 192.168.0.79;
FileName "pxelinux.0";
Allow booting;
Allow BOOTP;
Subnet 192.168.0.0 netmask 255.255.252.0{
#---Default gateway
Option routers 192.168.0.1;
Option Subnet-mask 255.255.255.0;
#option nis-domain "domain.org";
#option domain-name "192.168.0.10";
#otion domain-name-servers 182.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.0.100 192.168.0.200;
Host ns{
Hardware Ethernet 00:1a:a0:2b:38:81;
Fixed-address 192.168.0.101;
}
}
Note that as configured above, you need to modify the corresponding server network segment IP, and then restart the DHCP service,/ETC/INIT.D/DHCPD restart.
Client to obtain IP from this DHCP server, need to do simple settings, if it is Linux, you need to change the/etc/sysconfig/network-scritps/ifcfg-eth0 Bootproto to DHCP, Windows machine, you need to modify the local connection, set him to automatically obtain the IP;
Bootproto-dhcp
Linux Build DHCP server