How to Setup a DHCP Server
1. Install the DHCP Server Role: The first step in setting up a DHCP server on Windows
Server is to install the DHCP Server role. You can do this using the Server Manager or
by using the PowerShell command-line interface.
2. Configure Network Settings: After installing the DHCP Server role, you will need to
configure the network settings for the server. This will include configuring the IP
address, subnet mask, and default gateway, as well as specifying the DNS servers to
use.
3. Authorize the DHCP Server: Before the DHCP server can start handing out IP
addresses, it must be authorized on the network. You can do this by using the DHCP
snap-in in the Server Manager or by using the PowerShell command-line interface.
4. Create a DHCP Scope: A DHCP scope is a range of IP addresses that the DHCP server
can assign to clients. You will need to create a DHCP scope for your network and
specify the range of IP addresses that should be assigned, as well as other options
such as the subnet mask, default gateway, and DNS servers. You can do this using
the DHCP snap-in in the Server Manager or by using the PowerShell command-line
interface.
5. Configure DHCP Options: After creating the DHCP scope, you will need to configure
DHCP options. This will include specifying the lease duration for IP addresses, and
configuring other options such as the IP address of the WINS server, the IP address
of the router, and the IP address of the DNS server. You can do this using the DHCP
snap-in in the Server Manager or by using the PowerShell command-line interface.
6. Start the DHCP Server Service: After configuring the DHCP server, you will need to
start the DHCP Server service. You can do this using the Services snap-in in the
Server Manager or by using the PowerShell command-line interface.
7. Test the DHCP Server: Finally, you will need to test the DHCP server to make sure it is
working properly. You can do this by connecting a client computer to the network
and verifying that it receives an IP address from the DHCP server.