Configure High Availability on DHCP Server Role

Configure High Availability on DHCP Server Role

Why do we need to Configure High Availability on DHCP Server Role?

We always need a Failover or Load Balancer for our Network continuity (High Availability). Today I am going to discuss DHCP failover or Load Balance Scenario which will help us to give redundancy over DHCP failure.

Before we start configuring High Availability on DHCP Server Role in Windows Server 2016, just recap the memories from the past that how Microsoft DHCP server has improved over the versions.

  • Windows Server 2000/2003– DHCP Failover cluster was possible through Windows cluster, this legacy configuration wasn’t the best thing as it had loads of configuration hurdles but still, it was the only option to achieve it.
  • Windows 2008/2012– The DHCP Failover feature allows the High Availability of the service without using cluster services. But one has to have a NAP (network access protection) policy in place. It replicates all the configuration to the partner server.
  • Windows Server 2016- The DHCP failover feature doesn’t require NAP from Windows 2016 onwards which makes it quite easy to configure failover or load balance. We are going to discuss the same today.

Installation of DHCP Server

In this scenario,  two DHCP servers are created (in real scenario it can be different sites) that will be configured on Load Balance mode (50%-50% share) and we are going to test with two client machines that get the IP addresses from these DHCP Servers.

Here it starts:

DHCP Server -1 (MS Windows Server 2016)

  • Open Server Manager
  • Click on Add Roles and features
  • In the Before you Begin, a welcome page will be displayed. Click on Next.
  • In the Select Installation Type, leave the default setting, which is Role-based or feature-based installation, and click Next
775a2c9b1831836b9f83c3f7d2fca856
  • In the Select destination server, the local server should be listed, and click Next.
9e024021c0e431bcb7853ced06b0d4b2
  • In the Server Roles, select DHCP Server. A new dialog box will be displayed. Click on Add Features
6dbfe94d8f2c0a4769af715b8685bc81
af64d1a490c614e3b8c2dcefcc16c65c
88e26481621a3ad5edc9b435e4f09b46
  • Back to the wizard, just click Next
  • In the Features, click Next.
f9e6b2dd2ca0507d728b056a7602ff3d
  • Click another Next in DHCP Server
  • Click Install on confirmation
7249b7f638a132816337ef483b98a2f8
  • Wait for the installation to be completed
  • Repeat the same steps on another DHCP server
  • Once completed, a new message will pop up in the notification of the Server manager to complete the DHCP Configuration. Click on the Link.
a3dd7f02bc324d48929ec506fea0e14c
  • DHCP Post-install configuration wizard will be launched which basically creates the Security Groups of DHCP to delegate DHCP admin rights. Click on Commit
c8ee6af1655b091268aa4b53b85784aa
  • Once completed. Click Close

Once the DHCP Role gets installed on both servers. The next step is to create a new DHCP Scope on DHCP Server-1 only (don’t create it on another DHCP server)

  • Open a DHCP manager, by msc command or open it from Administrative Tools
  • Select IPV4 right-click and select New Scope
69ac6865771fb573b98098ea6e37b915
  • A New Scope wizard will be launched, click Next
5952e6840e9a8a0a70e5ae233da18371
  • Provide a desired name, click Next
0b172a82df8f419a3d3b4a883904449e
  • Enter the desired DHCP IP range and subnet mask, Click Next
ea8ca4bf80068f17b1277c7d3a290689
  • Ideally, click Next on the other 2 options (as default) that have IP exclusion and IP Lease duration
  • Click Next on Yes, I want to configure these options now.
61612b06df6bb07e8caec1a8c15789c5
  • Add Default Gateway IP address in Router, click Next
0ccbfedfdfdc87da434aa32bc2d57cf3
  • Add DNS servers and domain name, and click next
ca98d7b9e71e52b08a2783c37dc9f6ed
  • Select Yes, I want to activate the scope now option and click Next and finish the wizard.
f5b9c990e9af5d7363630073935db9e5

Now, the next step is the main for this blog which is to create a Failover/HA DHCP.

  • Go to the same DHCP Console and right click on IPV4 and select Configure Failover.
cddb6438661ceb66f1fe9af1df9d1453
  • A new wizard will be opened. Please check for available Scopes if you have more than one and you don’t want it to be included in failover then you may deselect the same. By default, all are selected. Click Next
b5756262269bfbeff61be5911539e98c
  • Add Partner DHCP Server (second DHCP Server), Click Add Server, and enter the IP address of the other DHCP server (it can also show up authorized DHCP server in AD)
bd671d9eaaca41181ea192429365d2c4
4a1f6c12c2d22b5351d64b593d0feeb2
  • Click OK and Next
  • Next is the Failover Relationship Screen, enter or change the Relationship Name, Check State Switchover Interval and uncheck Enable Message Authentication then click Next
1c4167abba62cbbabcac165842f019c4
  • Click Next and Click Finish
13b297f52ccdc7c836862cf07ae7ef98
  • Configure Failover Progress will be in a pop-up window. Usually, it takes seconds to complete (depending on Network)
cb631559a90e98eee01a8f49371ef102

Now you have successfully configured DHCP failover/ HA in Load Balance Mode. This means whatever DHCP is assigned will be shown on both servers and will be assigned on a 50-50 ratio.

Please Note:- There is no Virtual IP being configured over the network for DHCP (which is the best part) so if you using DHCP beyond the router then IP helper will have 2 DHCP IPs to provide the failover or load balance and if it is local LAN then there will be no conflict of DHCP both server will assign IPs and in case one is down then other will automatically work without any intervention or failover (o downtime)

Since we have configured DHCP failover it is time to check that DHCP Scope is replicated to other servers and both are active.

Configure High Availability on DHCP Server is done

DHCP Server 1

59de2e27e2567431de60963a9ea228a9

DHCP Server 2

7946717d0d1f3fcd1ab570f8aaa66c0a

The scope is replicated and Active on both servers. Now let’s check if both of these servers are assigning IP Addresses as per desired configuration.

Client Machine 1

93a04380467041dda789b6d7d49ffae5

Client Machine-2

36984f54621e3c191b2e23f40df79068

Both machines got IPs from different DHCP servers as Highlighted above.  Checking if both of this IPs assignment are populated in both DHCP Servers

DHCP Server 1

2215fae16c9ca3080c784a876c7401c5

DHCP Server 2

f9c0b9e10e1bb4ea91daaafa0e7e6c62

Conclusion

Both servers are in sync and working as per expectation. That’s it to configure High Availability on the DHCP Server Role in Windows Server 2016/2019/2022.

You may also watch these steps and other blog videos on my Video channel https://goo.gl/TFicWW. Please subscribe to get the latest videos. 

Also Read: How to Secure Active Directory: Best Practices and Pro Tips

Essential Network Ports for Active Directory, DNS, DHCP, and ADFS

Video Tutorial

Configure High Availability on DHCP Server

Configure High Availability on DHCP Server

Ravi Chopra

Leave a Comment

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

Scroll to Top