How to Configure DHCP Server on Windows Server 2012 R2

DHCP (dynamic Host Configuration Protocol) is used to dynamically assign IP addresses to client machines. We are going to demonstrate how to configure this DHCP server on Windows Server 2012 R2. This tutorial is divided into following two parts:

  • Part 1. Installing DHCP Server role on Windows Server 2012 R2
  • Part 2. Configuring and creating IP address pool in order to distribute those addresses to client machines

Prerequisites

Before you proceed with setting up DHCP server on your Windows Server 2012 R2, you have to fulfill following four requirements for an installation and configuration to be successful.

  1. Administrator account has strong password
  2. At least one static IP is configured
  3. Current security updates from Windows Update are installed
  4. Firewall is turned off

Part 1: Installing DHCP Server

Step 1: Open Server Manager from task bar and click Add roles and features

Open the Server Manager

Figure 1

Step 2: Before you run the installation wizard, make sure that an administrator account has a strong password, static IP is configured, and security updates from Windows updates are installed. When you are done, click Next

Start the Windows DHCP Server configurationFigure 2

Step 3: Select Role-based or feature-based installation and click Next

Select Role Based installationFigure 3

Step 4: Select a destination server on which you want to install the DHCP server. In our case, there is only one server which is local server and it is selected by default. Click Next

Select the destination server for the DHCP installationFigure 4

Step 5: Select DHCP server role by checking the appropriate box. As soon as you check the box, a small window will pop up alerting you that there are some other features which are also required to be installed along with DHCP server. Click Add Features

Add features

Figure 5

Step 6: Click Next

Select server role: DHCP ServerFigure 6

Step 7: Click Next

Install .NET FrameworkFigure 7

Step 8: Note the things outlined in the screen and click Next

Things to noteFigure 8

Step 9: Confirm your installation selections and click Install

Confirm installation of DHCP ServerFigure 9

Step 10: Click Close to finish the installation

Finish the installationFigure 10

Part 2: Configuring DHCP Server and Creating Scope

Step 11: Open Server Manager and click notifications icon.  A small window will appear. Click Complete DHCP configuration

Configure DHCP ServerFigure 11

Step 12: Click Next

Description of actionsFigure 12

Step 13: Choose Skip AD authorization since we do not have any AD configured and click Commit

Skip AD authorizationFigure 13

Step 14: Read the summary and click Close

Read the summary and closeFigure 14

Step 15: Open Server Manager and click on Tools. When a small window appear, scroll to DHCP and click it

Open the server managerFigure 15

Step 16: In management console, right click on IPv4 and scroll to New Scope and click it

Configure IPv4 scopeFigure 16

Step 17: Click Next

Start the WizardFigure 17

Step 18: Provide name and meaningful description of this new scope and click Next

Set server name and descriptionFigure 18

Step 19: Provide IP address range along with sub net you need to distribute to client machines and click Next

Set DHCP IP address rangeFigure 19

Step 20: Provide any IP addresses you need to exclude from pool and click Add. I have excluded a first IP address which is statically assigned to my DHCP server. Click Next

Exclude IP addresses from DHCP rangeFigure 20

Step 21: Keep lease duration as 8 days and click Next

Set DHCP Lease TimeFigure 21

Step 22: Choose No, I will configure these options later and click Next

Configure DHCP optionsFigure 22

Step 23: Click Finish to end the new scope wizard

Finish the DHCP setup wizardFigure 23

Step 24: Right-click on new scope you just created in above step and click Activate

Activate the Scope

Figure 24

Step 25: Right-click on your server, scroll to All Tasks and then click Restart to finish with configuration

Restart All Tasks

Figure 25

Conclusion

DHCP server has been successfully set up on Windows Server 2012 R2. You should test this configuration by using a client machine and setting it to obtain an IP address automatically in TCP/IPv4 Properties.