DHCP

SETTING UP DHCP

WHAT IS DHCP?

Microsoft Windows Server operating systems includes Dynamic Host Configuration Protocol (DHCP), which is an optional networking server role that you can deploy on your network to lease IP addresses and other information to DHCP clients. All Microsoft Windows client operating systems include the DHCP client as part of TCP/IP, and it's enabled by default.

Read more about Dynamic Host Configuration Protocol here

After installing the Active Directory server role on my DC server, it's time to install and configure the DHCP server role, so log into the DC server again, and we will start setting up the DHCP server role for my LAB environment.

Installing DHCP

Step 1. Click "Add roles and features" in the Server Manager.

Step 2. Click "Next"

Step 3. Leave everything default and click "Next"

Step 4. Leave everything default and click "Next"

Step 5. Select "DHCP Server"

Step 6. Leave everything default and click "Add Features"

Step 7. Leave everything default and click "Next"

Step 8. Click "Next"

Step 9. Check the "Restart the destination server automatically if required" box and click "Install"

Step 10. Click "Close"

Configuring DHCP

Step 1. When the server role installation is done, we should now see a yellow triangle with an exclamation mark in the Server Manager, click on it and then click "Complete DHCP configuration"

Step 2. Click "Next"

Step 3. The "User Name" is populated automatically, so leave everything as default and click "Commit"

Step 4. Click "Close"

Configuring DHCP Scope

Step 1. Type "DHCP" in the search line next to the start button, and click "DHCP"

Step 2. Right-click on "IPv4" and then click "New Scope"

Step 3. Click "Next"

Step 4. Enter a name and description for the scope and click "Next"

Step 5. Enter start and end IP address (IP range), a subnet mask and click "Next"

Give it a subnet mask and a range of address from the private IP range we created in Part 2 during the Hyper-V configuration.

Step 6. Leave everything default and click "Next"

Step 7. Leave everything default and click "Next"

Step 8. Select "Yes, I want to configure these options now" and click "Next"

Step 9. Enter a Router (Default Gateway) IP address and click "Next"

The Router (Default Gateway) IP address is the IP address of the Virtual NIC that we created in Part 2 during the Hyper-V configuration.

Step 10. It should populate the IP address of the DC server automatically. But if that's not the case, then enter a server name and click "Resolve". Click "Add" to add the IP Address and then click "Next"

Step 11. Leave everything default and click "Next"

Step 12. Select "Yes, I want to activate this scope now" and click "Next"

Step 13. Click "Finish"

Step 14. Expand the scope and click on "Address Pool" to confirm that the IP range has been created.

Step 15. Click "Scope Options" to confirm that the Router and DNS settings are configured correct.

This concludes the DHCP installation and configuration on my DC server, let's configure the DNS server role. Click "Next" below or click "DNS" in the menu to the left.

Last updated