A DHCP server is a Dynamic Host Configuration Protocol, which is a client-server technology that allows the DHCP server to assign IP addresses to computers and other devices that are enabled as DHCP clients, and to allow the server to lease IP addresses.
By using a DHCP server, you can lease the IP address to a DHCP client for a specific time, and then automatically renew the IP address when the client requests a renewal.
The DHCP server can also reserve IP addresses for specific computers or other devices so that they always have the same IP address and receive the latest DHCP options.
After the Windows Server R2 is loaded in the virtual machine, be sure to select the static IP address as the DHCP server, and the IP address of this station is 192.168.52.129
Locate Server Manager in the Administration tool, select roles, add roles
Click Next, then select DHCP server
Then Next,
Network connection binding, which is the address of the server
Specify a DNS server
You can skip it first.
This step can also be skipped first, etc. after Setup is complete
Disable IPV6
Because AD domain management is installed, you must authorize the DHCP server
Next Install
After the DHCP server is successfully installed, we can find the DHCP server from the management tool.
Open the Configuration page
Right-click IPv4, select New Scope
Role domain name can be self-starting, with IP address range naming can be more intuitive
Fill Scope Range
Add an excluded Address
Lease term
Fill out the Gateway
Then the DHCP server is configured
We use the XP system client to test, in the same network segment, let the client automatically obtain the IP address
View IP address from the command line
Ipconfig/release Release IP Address
Ipconfig/renew IP address re-acquired
Ipconfig/flusdns Refreshing the DNS cache
Next we create a new reservation
MAC address fill in the MAC address of the host you want to keep the address for, add
If we fill in the MAC address of the XP client, we will test again, the IP address of the client becomes the reserved address of the setting.
View address leases to display a list of addresses that have been leased
Setup of the Windows server R2 DHCP server