Installing and Configuring DHCP Server on Windows Server 2012 R2 | Information Technology from Valdemar

This article is written for those who were searching for a detailed and simple for the understanding guide on how to install and configure the DHCP Server on Windows Server 2012 R2.

We will consider the case when you already have a server with Windows Server 2012 R2 installed on it.

You can read more about how to install Windows Server 2012 R2 in my guide «Installing Windows Server 2012 R2». You can learn how to install Active Directory Domain Services on Windows Server 2012 R2 by reading «Installing Active Directory Domain Services on Windows Server 2012 R2».

Before you begin installing the DHCP Server role, you must give the server the correct name in accordance with the standards of your organization, and then assign a static IP address in the network connection settings. In addition, the server must be added to the domain. In my guide «Configuring Windows Server 2012 R2» you can read about how to configure Windows Server 2012 R2 and add the server to the domain.

Log in under the account with the rights of the domain administrator.

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

Click on the “Next” button.

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

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

Click on the “Next” button.

Select the role “DHCP Server”.

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

Click on the “Add Features” button.

Click on the “Next” button.

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

Click on the “Next” button.

Further, the “Role Installation Wizard” offers to familiarize yourself with additional information regarding the “DHCP Server” role.

Click on the “Next” button.

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

The installation of the selected role and the necessary components for it began.

The installation of the DHCP Server role is complete.

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

You are notified that then 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.

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

Click on the “Commit” button.

The DHCP server is authorized in Active Directory, and the necessary security groups have been created to control access to DHCP.

Click on the “Close” button.

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

Now you need to verify that the two security groups have been created successfully.

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

Next, in the “Local Users and Groups” section, find “Groups”.

All local security groups are displayed on the right side of the screen. Among them should be the “DHCP Administrators” group, whose members have full access to DHCP management, as well as the “DHCP Users” group, whose members have access only to view DHCP settings.

Now 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”.

Specify the address range 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.

Click on the “Next” button.

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

Click on the “Next” button.

Specify the subnet mask and address range from which the DHCP server will distribute IP addresses for devices on the local network.

Click on the “Next” button.

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

This can come in handy if you know that in a certain range of addresses there are servers, printers or other devices that already have 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.

Please note that to exclude a single IP address, just fill in the “Start IP address” field.

Specify the part of the range that you want to exclude, and click on the “Add” button.

After the part of the range that you want to exclude is added, click on the “Next” button.

Next, you can choose at what time the IP addresses will be issued to devices for rent.

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

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

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

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

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

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.

The WINS server is not used in this manual.

Click on the “Next” button.

Now you need to activate the selected address range.

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

The DHCP server setup 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.

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

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

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

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

Click on the “OK” button.

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

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

In the “Reservation name” field, specify the name of the device under which you want to reserve 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 it is necessary to reserve an IP address.

Обратите внимание, по факту именно под MAC-адрес сетевой карты резервируется IP-адрес. MAC-адрес на любом устройстве можно посмотреть в свойствах сетевого адаптера. На Windows, чтобы посмотреть MAC-адрес сетевого адаптера, можно выполнить команду «ipconfig /all» в командной строке. На Linux, в командной строке необходимо выполнить команду «ifconfig».

Please note that in fact, it is under 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, to see the MAC address of the network adapter, you can run the ipconfig /all command on the command line. On Linux, the command line ifconfig must be run at the command prompt.

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

Click on the “Add” button.

IP address reservation for the specified MAC address of the device was successfully added.

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

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

  • dhcp.mdb – DHCP server database file
  • j50.log – Log of all database transactions. This file is used by the DHCP database to recover data if necessary
  • j50.chk – Checkpoint file
  • tmp.edb – Temporary DHCP server working file
Author

Hi, I’m Vladimir Mikhalev, but my friends call me Valdemar. I have a lot of experience in the design and maintenance of various information systems. On my website, you will find detailed and clear guides for setting up IT solutions. Dive into the ocean, full of positive and technology! For cooperation: callvaldemar@gmail.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.