2055 words
10 minutes

Install and Configure DHCP Server on Windows Server 2012 R2

Cover image for Install and Configure DHCP Server on Windows Server 2012 R2

This article is for those looking for a detailed and straightforward guide on installing and configure DHCP Server on Windows Server 2012 R2.

IMPORTANT

In this guide, we will consider the case when you already have a server with the Windows Server 2012 R2 operating system installed on it.

For details on installing Windows Server 2012 R2, read my guide: Install Windows Server 2012 R2.

NOTE

To learn how to install Active Directory Domain Services on Windows Server 2012 R2, read: Install Active Directory Domain Services on Windows Server 2012 R2.

IMPORTANT

Before starting the installation of the DHCP Server role, you must give the server the correct name in accordance with your organization’s standards, and then specify a static IP address in the network connection settings. In addition, the server must be added to the domain.

In my guide Basic Setup of Windows Server 2012 R2 you can read about how to make basic Windows Server 2012 R2 settings and add a server to a domain.

We go into the system under an account with domain administrator rights.

Open the “Server Manager”, click on the “Manage” button in the upper right corner of the screen and select “Add Roles and Features”.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 1

Click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 2

Select the installation type “Role-based or feature-based installation” and click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 3

Next, select the server on which the role will be installed.

Click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 4

We select the role “DHCP Server”.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 5

In the next step, the “Role Installation Wizard” will warn you that several components need to be installed to install the “DHCP Server” role.

Click on the “Add Features” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 6

Click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 7

At the stage of adding components, we leave all the default values.

Click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 8

Next, the “Role Installation Wizard” invites you to familiarize yourself with additional information regarding the “DHCP Server” role.

Click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 9

In order to start the installation of the selected role, click on the “Install” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 10

The installation of the selected role and the components required for it has begun.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 11

Installation of the DHCP Server role is complete.

Now click on the “Complete DHCP configuration” button in order to configure the DHCP server.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 12

You are notified that the next two local security groups will be created to control access to the DHCP server, and then the DHCP server will be authorized in Active Directory.

Click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 13

In the “Use the following user’s credentials” section, specify an account with domain administrator rights.

Click on the “Commit” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 14

In the “Use the following user’s credentials” section, specify an account with domain administrator rights.

Click on the “Close” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 15

Return to the “Role Installation Wizard” and click on the “Close” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 16

Now you need to check that the two security groups were created successfully.

On the keyboard, press the key combination “Win” and “x”, then select “Computer Management” in the menu that opens.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 17

Further in the section “Local Users and Groups” we find “Groups”.

All local security groups are displayed on the right side of the screen. These should include the DHCP Administrators group, whose members have full access to DHCP management, and the DHCP Users group, whose members have access only to view DHCP settings.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 18

Now let’s configure the DHCP server so that it distributes network settings (IP address, subnet mask, gateway, DNS) for all devices that will connect to the local network.

In Server Manager, click on the “Tools” button in the upper right corner of the screen and select “DHCP”.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 19

Let’s specify the range of addresses from which the DHCP server will distribute IP addresses for devices on the local network.

Right-click on “IPv4” and select “New Scope” in the menu that opens.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 20

Click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 21

In the “Name” field, specify the name for the new address range.

Click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 22

We indicate the subnet mask and the range of addresses from which the DHCP server will distribute IP addresses for devices on the local network.

Click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 23

Now you can specify a range for which the DHCP server will not distribute settings.

This can be useful if you know that there are servers, printers, or other devices in a certain range of addresses that have already been assigned a static IP address. In this case, you need to exclude this part of the range, since the IP addresses from it are already in use. You also need to exclude the IP address that is assigned to the gateway.

NOTE

To exclude one IP address, it is enough to fill in only the “Start IP address” field.

Specify the part of the range to be excluded and click on the “Add” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 24

After the part of the range to be excluded is added, click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 25

Then you can choose for how long IP addresses will be leased to devices.

Leave the settings unchanged and click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 26

Now you need to specify the network settings (gateway, DNS) that the DHCP server will distribute to devices on the local network.

We select “Yes, I want to configure these options now”.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 27

In the “IP address” field, specify the IP address of your gateway and click on the “Add” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 28

After the IP address is added, click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 29

Next, in the “Parent domain” field, specify the domain name.

In the “IP address” field, specify the IP address of the DNS server.

Click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 30

NOTE

The WINS server is not used in this guide.

Click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 31

Now you need to activate the selected address range.

Select “Yes, I want to activate this scope now” and click on the “Next” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 32

The DHCP server configuration is complete. Now all devices connected to the local network will receive network settings (IP address, subnet mask, gateway, DNS) and will be able to communicate with each other.

Click on the “Finish” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 33

Now you can reserve a specific IP address for a specific device so that the device is always given the same IP address.

In the “Address Leases” section, you can see all devices and IP addresses that the devices received from your DHCP server.

In order to reserve an IP address for a device, in the “Address Leases” section, right-click on one of the devices that has already received an IP address, and select “Add to Reservation” in the menu that opens.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 34

The IP address obtained by it has been successfully reserved for the specified device.

Click on the “OK” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 35

You can also add a reservation manually by specifying the required IP address and MAC address of the device’s network card.

Right-click on the “Reservations” section and select “New Reservation”.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 36

In the “Reservation name” field, specify the name of the device for which you want to make a reservation for the IP address.

In the “IP address” field, specify the IP address that must be reserved for the device.

In the “MAC address” field, specify the MAC address (Physical Address) of the device’s network card for which you want to make a reservation for the IP address.

NOTE

In fact, it is for the MAC address of the network card that the IP address is reserved. The MAC address on any device can be viewed in the properties of the network adapter. On Windows, you can run the ipconfig /all command at a command prompt to view the MAC address of a network adapter. On Linux, run the ifconfig command on the command line.

In the “Supported types” section, select “Both”.

Click on the “Add” button.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 37

Reservation of the IP address for the specified MAC address of the device has been successfully added.

In the “Reservations” section, you can see all devices for which IP addresses have been reserved.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 38

The DHCP server database and logs can be found in the “%systemroot%\system32\dhcp” directory. We recommend that you back up this directory.

Install and Configure DHCP Server on Windows Server 2012 R2 - Step 39

  • dhcp.mdb - DHCP server database file
  • j50.log - Log of all database transactions. This file is used by the DHCP database to restore data in case of need
  • j50.chk - Checkpoint file
  • tmp.edb - DHCP server temporary working file

Patreon Exclusives#

🏆 Join my Patreon and dive deep into the world of Docker and DevOps with exclusive content tailored for IT enthusiasts and professionals. As your experienced guide, I offer a range of membership tiers designed to suit everyone from newbies to IT experts.


Tools I Personally Trust#

If you’re building things, breaking things, and trying to keep your digital life a little saner (like every good DevOps engineer), these are two tools that I trust and use daily:

🛾 Proton VPN - My shield on the internet. It keeps your Wi-Fi secure, hides your IP, and blocks those creepy trackers. Even if I’m hacking away on free cafĂ© Wi-Fi, I know I’m safe.

🔑 Proton Pass - My password vault. Proper on-device encryption, 2FA codes, logins, secrets - all mine and only mine. No compromises.

These are partner links - you won’t pay a cent more, but you’ll be supporting DevOps Compass. Thanks a ton - it helps me keep this compass pointing the right way 💜


Gear & Books I Trust#

📕 Essential DevOps books
đŸ–„ïž Studio streaming & recording kit
📡 Streaming starter kit


Social Channels#

🎬 YouTube
🐩 X (Twitter)
🎹 Instagram
🐘 Mastodon
đŸ§” Threads
🎾 Facebook
🩋 Bluesky
đŸŽ„ TikTok
đŸ’» LinkedIn
📣 daily.dev Squad
✈ Telegram
🐈 GitHub


Community of IT Experts#

đŸ‘Ÿ Discord


Refill My Coffee Supplies#

💖 PayPal
🏆 Patreon
đŸ„€ BuyMeaCoffee
đŸȘ Ko-fi
💎 GitHub
⚡ Telegram Boost

🌟 Bitcoin (BTC): bc1q2fq0k2lvdythdrj4ep20metjwnjuf7wccpckxc
đŸ”č Ethereum (ETH): 0x76C936F9366Fad39769CA5285b0Af1d975adacB8
đŸȘ™ Binance Coin (BNB): bnb1xnn6gg63lr2dgufngfr0lkq39kz8qltjt2v2g6
💠 Litecoin (LTC): LMGrhx8Jsx73h1pWY9FE8GB46nBytjvz8g


Is this content AI-generated?

No. Every article on this blog is written by me personally, drawing on decades of hands-on IT experience and a genuine passion for technology.

I use AI tools exclusively to help polish grammar and ensure my technical guidance is as clear as possible. However, the core ideas, strategic insights, and step-by-step solutions are entirely my own, born from real-world work.

Because of this human-and-AI partnership, some detection tools might flag this content. You can be confident, though, that the expertise is authentic. My goal is to share road-tested knowledge you can trust.

Install and Configure DHCP Server on Windows Server 2012 R2
https://www.heyvaldemar.com/install-and-configure-dhcp-server-on-windows-server-2012-r2/
Author
Vladimir Mikhalev
Published at
2018-10-15
License
CC BY-NC-SA 4.0