First, DHCP overview
(1) Understanding of DHCP services
DHCP (Dynamic Host Configuration Protocol) is a protocol developed by the IETF (Internet Task Force) designed to automatically assign TCP/IP parameters to computers in a TCP/IP network
DHCP provides secure, reliable, and simple TCP/IP network settings that reduce the burden of configuring IP addresses
(2), the good outside of DHCP
Reduces the workload of the Administrator
Avoid the possibility of input errors
Avoid IP conflicts
When the network changes the IP address segment, you do not need to reconfigure each user's IP address
Increased utilization of IP addresses
Client-friendly configuration
Second, the working principle of DHCP
(1), DHCP distribution mode
Auto-assign (Automatic allocation): This is the permanent use of this IP address when a DHCP client successfully obtains an IP address from a DHCP server for the first time
Manual assignment: The IP address is specifically assigned by the DHCP server administrator
Dynamic allocation: Is when a DHCP client first obtains an IP address from a DHCP server and does not use the address permanently, and after each use, the DHCP client needs to release the IP address so that other clients can use
(2), DHCP lease process
Client requests IP (client sends DHCP Discover broadcast packet)
Server response (server sends DHCP offer broadcast package)
Client chooses anti-IP (client sends DHCP request broadcast packet)
Server determines lease (server sends DHCP ACK broadcast packet)
1, client request IP
2, server response