DHCP Server Deployment on Hyper-V: From Scope Creation to Failover Configuration

6 min read

Step-by-step deployment of a highly available DHCP service in a Hyper-V virtual environment

In modern enterprise networks, manual IP address management is impractical, error-prone, and costly. As environments scale across on-premises, virtualized, and hybrid infrastructures, automated IP address allocation becomes essential.

In this hands-on lab, I set up, deployed, and documented a fully functional DHCP server running on a Windows Server Hyper-V virtual machine, covering everything from scope configuration to high-availability DHCP failover.
This lab mirrors how enterprises reliably distribute and manage IP addressing across production networks

What This Lab Covers

This tutorial walks through a full DHCP lifecycle, including:

  • Installing and authorizing the DHCP Server role

  • Creating and configuring a DHCP scope

  • Assigning IP addresses to client virtual machines

  • Validating leases at the client level

  • Implementing DHCP Failover (Hot Standby) for high availability

  • Verifying scope replication and service continuity

Why DHCP Matters for Organizations

The Dynamic Host Configuration Protocol (DHCP) provides centralized, automated IP address management and eliminates many operational risks associated with static configuration.

DHCP ensures:

  • Zero manual IP configuration on clients

  • Conflict-free IP address allocation

  • Faster device provisioning

  • Centralized control for network administrators

  • Improved resilience when paired with failover

How DHCP Works: The DORA Process

At a protocol level, DHCP follows the DORA sequence:

  1. Discover: Client broadcasts a DHCP Discover message

  2. Offer: Server responds with an available IP address

  3. Request: Client requests the offered address

  4. Acknowledge: Server confirms and assigns the lease

Understanding this flow helps with troubleshooting and packet-level analysis.

Lab Environment Overview

  • Hyper-V host

  • Windows Server 2019 VM (DHCP Server)

  • Optional secondary Windows Server VM (Failover partner)

  • Windows 10 client VM

Step-by-Step Implementation

Part 1: Install and Authorize DHCP Server on Hyper-V

  • Start the Windows Server VM in Hyper-V

  • Open Server Manager

  • Click Add Roles and Features

  • Select Role-based or feature-based installation

  • Choose your server from the list

  • Under Server Roles, select DHCP Server

  • Confirm dependencies and click “Add Features.” → Continue the wizard and Click Install

Post-Installation

  • Click Complete DHCP Configuration

  • Authorize the server (domain credentials required)

  • Commit changes and close the wizard

Result: DHCP Server role installed and authorized in Active Directory.

Part 2: Configure DHCP Scope and Address Pool

Create a New Scope

  1. Open DHCP Manager

  2. Expand your server node → Right-click IPv4

  3. Select New Scope… to launch the wizard

  4. Provide:

    • Scope name (e.g., Lab-Scope)

    • Description

Enter the IP address range, Example.

  • Start IP: 192.168.100.10

  • End IP: 192.168.100.100

  • Subnet Mask: 255.255.255.0

Additional Configuration

  • Exclusions: 192.168.100.1–9 (reserved for static devices)

  • Lease Duration: 8 days (lab-appropriate)

  • Options:

    • Default Gateway: 192.168.100.1

    • DNS Server: Domain Controller or external DNS

    • WINS (if applicable)

Activate the scope when prompted.

Part 3: Assign DHCP on a Client VM

Windows Client Configuration

  1. Open Control PanelNetwork and Sharing Center

  2. Click Change adapter settings

  3. Right-click the active adapter NIC → Properties

  4. Select IPv4 → Properties

  5. Enable:

    • Obtain an IP address automatically

    • Obtain DNS server address automatically

  6. Apply and close all dialogs.

Verification

Run:

ipconfig /all

✅ Confirm the client received an IP from the DHCP scope.

Step-by-Step: DHCP Failover

Part 4: Configure DHCP Failover (High Availability)

To avoid IP address service disruption, DHCP failover is configured between two servers.

Step 1: Prepare Both Servers
  • Install and authorize DHCP on both Windows Server VMs

Use Server Manager Add Roles and Features to install DHCP Open DHCP Console → right-click server → Authorize

Step 2: Create Failover Relationship
  1. Open DHCP Manager

  2. Right-click the scope → Configure Failover

  3. Select the scope(s) to share

  4. Enter the partner server hostname or IP

Choose Failover Mode
  • Hot Standby – Primary active, secondary passive (Used in this lab)

  • Load Balance (both servers active)

Configure Settings
  • Shared Secret

  • MCLT (Maximum Client Lead Time)

  • Load balance percentage (if applicable) (default 50/50)

Finish the wizard.

Step 3: Verify Failover Configuration
  • Expand IPv4 → Scope in DHCP Console

  • Confirm status shows “Active”

  • Ensure scope is replicated on the partner server

Result: High-availability DHCP with automatic failover.

Lab Outcome

  • Seamless IP address provisioning

  • High availability through DHCP Failover

  • Real-time client lease assignment

  • Conflict-free IP management

  • Enterprise-grade DHCP architecture in a virtualized environment

Key Takeaway

Even in highly automated and cloud-driven infrastructures, DHCP remains a foundational service.

A properly designed DHCP deployment ensures the following:

  • Network stability

  • Scalability

  • Operational resilience

  • Faster onboarding of systems and devices

This lab demonstrates how DHCP is deployed the way enterprises do it: structured, redundant, and reliable.

 


Discover more from Humble Cloud Tech

Subscribe to get the latest posts sent to your email.

Leave a Comment

Your email address will not be published. Required fields are marked *

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners. View more
Cookies settings
Accept
Decline
Privacy & Cookie policy
Privacy & Cookies policy
Cookie name Active

Who we are

Suggested text: Our website address is: https://humbletech.cloud.

Comments

Suggested text: When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection. An anonymised string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service Privacy Policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.

Media

Suggested text: If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.

Cookies

Suggested text: If you leave a comment on our site you may opt in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year. If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser. When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select "Remember Me", your login will persist for two weeks. If you log out of your account, the login cookies will be removed. If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.

Embedded content from other websites

Suggested text: Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website. These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.

Who we share your data with

Suggested text: If you request a password reset, your IP address will be included in the reset email.

How long we retain your data

Suggested text: If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognise and approve any follow-up comments automatically instead of holding them in a moderation queue. For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.

What rights you have over your data

Suggested text: If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.

Where your data is sent

Suggested text: Visitor comments may be checked through an automated spam detection service.
Save settings
Scroll to Top