Serverspace Black Friday
JT
October 25 2024
Updated October 25 2024

Windows DHCP: How to configure quickly?

Windows

In networks, there are two main ways in which an IP address can be assigned to a device: static and automatic configuration. This is an important step because it is where the device identifies itself to other devices on the network by comparing its mask to its IP address. This is how the machine knows what network it is on and understands how to address other devices within its network and beyond.

To avoid the administrator having to run through all the devices every time, the DHCP service was implemented to automate the process. However, it has its own nuances, but let's talk about everything in order.

What is DHCP?

DHCP or Dynamic Host Configuration Protocol is a service that allows you to automatically assign IP addresses and other network configuration attributes to machines on a predetermined subnet. It works quite simply, a client without network settings sends a broadcast packet within its environment with IP address 0.0.0.0.0. After that, the first server that received this packet sends its response with an offerer.

Schema of work
Screenshot №1 — Schema of work

Where it offers to occupy the provided IP address and other network settings, then the client accepts and sends a DHCP confirmation. And the server makes a record that the device has leased it for a period of time, after the expiry of the lease period the address can be extended. The main problem in this case is the possibility of unauthorised server spoofing with Mitm attack or difficulties in network segmentation. It is necessary for the DHCP server to have access to all network environments, which is a threat.

Okay, how do you configure it though? Let's do a quick step-by-step breakdown.

How do I quickly set up DHCP?

We will configure it on Windows Server, unfortunately, many infrastructure services are not available on regular client versions of the OS, so the choice is limited. Let's go to the search tab or press the Win command key where we enter ‘Server Management’ and launch the utility.

Search manager
Screenshot №2 — Search manager

After that a window with settings of the current server will be opened, you need to select Manage -> Add Roles and Features in the upper right corner:

Add Role
Screenshot №3 — Add Role

Select the server you want in the Server Selection tab and go below to the DHCP configuration roles:

Choose server
Screenshot №4 — Choose server

Then select DHCP from the list of roles that appears and confirm the installation action. To do this, select Add Features:

Installation of role
Screenshot №5 — Installation of role

Start the installation process by clicking the Install button and wait for the result of the service:

Finish installation
Screenshot №6 — Finish installation

Right-click on the DHCP pad and select Go to DHCP. Repeat the action by clicking on the server bar and select DHCP Manager:

DHCP manager
Screenshot №7 — DHCP manager

Select the IPv4 line and right-click, select New Scope in the context menu. Configure the corresponding address pool:

Pool of IP's
Screenshot №8 — Pool of IP's

As exceptions to the pool, you can select a range of addresses that will not be issued on demand:

Exception
Screenshot №9 — Exception

For example, it will be perfect for excluding the pool of static addresses of services, this setting will help to avoid collisions with packets. The next item will be router settings, DNS and Wins server settings, if necessary:

Settings
Screenshot №10 — Settings

Select the desired Scope and right-click to open the menu, where we select the option to activate the Scope.

Main menu
Screenshot №11 — Main menu

Great! Now the DHCP server is configured and provides the service to clients, to disable it open the required menu and select Deactivate Scope. If the service is no longer needed at all, you can also delete the role through the Server Manager panel.

Vote:
5 out of 5
Аverage rating : 5
Rated by: 1
33145 North Miami, FL 2520 Coral Way apt 2-135
+1 302 425-97-76
700 300
ITGLOBAL.COM CORP
700 300

You might also like...

We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.