Windows DHCP failover is a high-availability feature that allows two DHCP servers to share lease information and configuration for IPv4 scopes. It helps organizations maintain IP address assignment services when one DHCP server becomes unavailable.
In a network that relies on a single DHCP server, a server failure can prevent new clients from obtaining IP addresses and may affect existing clients when their leases expire.
With DHCP failover, two Windows Server DHCP services maintain synchronized lease information. Depending on the selected mode, both servers can actively distribute leases or one server can remain on standby until its partner becomes unavailable.
Windows Server supports two DHCP failover modes:
This guide explains how Windows DHCP failover works, how the two modes differ, and how to configure, verify, replicate, and troubleshoot a failover relationship using Windows PowerShell.
DHCP (Dynamic Host Configuration Protocol) automatically provides IP configuration to network clients.
A DHCP server can assign:
In a traditional deployment, one DHCP server manages the address pool for a particular subnet.
For example:
Network Clients
|
|
DHCP Server
10.10.10.10
|
10.20.30.0/24 If the DHCP server fails, clients with valid leases may continue communicating until renewal is required. However, new clients and devices that need to renew their configuration may experience problems.
DHCP failover addresses this availability issue by connecting two DHCP server services through a failover relationship.
DHCP Clients
|
|
DHCP Requests
|
+-------+-------+
| |
| |
DHCP Server 1 DHCP Server 2
10.10.10.10 10.10.10.11
| |
+-------+-------+
|
Failover Link
TCP Port 647 The two servers share scope information and lease state. Each maintains its own DHCP lease database and communicates with its partner to keep the information synchronized.
A failover relationship can include one or more DHCPv4 scopes, but each relationship is between only two DHCP servers.
For the fundamentals of address assignment, DHCP leases, and the DORA process, see DHCP Explained: DORA, Ports, Leases & Troubleshooting.
Windows DHCP failover uses a relationship between two DHCP server services.
The relationship defines how the servers share DHCP scope information, client lease information, and operational state.
Consider this example:
| Component | DHCP Server 1 | DHCP Server 2 |
|---|---|---|
| Hostname | DHCP1 | DHCP2 |
| IPv4 address | 10.10.10.10 | 10.10.10.11 |
| DHCP role | Partner | Partner |
| Scope | 10.20.30.0/24 | Replicated scope |
| Failover relationship | HQ-DHCP-FO | HQ-DHCP-FO |
Both servers maintain separate lease databases.
When DHCP1 assigns an address, the relevant lease information is communicated to DHCP2. This allows the partner to understand which addresses are already allocated and how leases are being managed.
Windows DHCP failover provides several important capabilities:
A scope’s configuration changes are not automatically replicated merely because the failover relationship exists. Administrators must initiate configuration replication after making relevant changes.
Windows Server supports two modes for a DHCP failover relationship.
Load Balance is the default DHCP failover mode.
In this configuration, both servers actively serve clients in the same DHCP scope.
For example:
DHCP Clients
|
DHCP Requests
|
+-------+-------+
| |
DHCP1 DHCP2
50% share 50% share
| |
+-------+-------+
|
DHCP Scope
10.20.30.0/24 The default configuration assigns 50% of the client request distribution to each server.
The percentage can be customized.
For example:
DHCP1: 70%
DHCP2: 30% Windows uses a hash calculated from the client’s MAC address to determine which server is responsible for responding to the request.
This is not simple round-robin distribution. The client is assigned according to the configured distribution of hash values.
Load Balance is suitable when both DHCP servers are available at the same site or across a well-connected network, and you want both servers to participate in serving clients.
Hot Standby provides an active-passive DHCP configuration.
One DHCP server actively provides leases, while the second server remains in standby.
DHCP Clients
|
|
DHCP Requests
|
+-----+-----+
| |
| |
DHCP1 DHCP2
ACTIVE STANDBY
| |
+-----+-----+
|
DHCP Scope Under normal conditions:
If DHCP1 becomes unavailable, DHCP2 can take over according to the failover relationship state and safety rules.
Hot Standby includes a setting called Reserve Percentage.
It specifies the percentage of free addresses in the scope reserved for use by the standby server.
The default reserve percentage is 5%.
For example, consider a scope with 200 available addresses.
If the reserve percentage is 5%:
Available Address Pool: 200
Reserved for Standby:
200 × 5% = 10 addresses The standby server can use these reserved addresses for new clients when appropriate.
The reserve is intended to help the standby server serve new clients during an outage without immediately assuming control of the entire address pool.
Use Hot Standby when one DHCP server should normally handle client requests and another server should provide backup services.
For example, a branch-office DHCP server can be paired with a central data-center DHCP server that acts as its standby partner.
The two modes provide different approaches to DHCP availability.
| Feature | Load Balance | Hot Standby |
|---|---|---|
| Server roles | Both actively serve clients | Active and standby |
| Normal operation | Both respond according to hash allocation | Active server responds |
| Distribution | Configurable percentage | Reserve percentage |
| Default percentage | 50% / 50% | 5% address reserve |
| Main purpose | Shared DHCP service | DHCP redundancy |
| Typical deployment | Two available servers serving a site | Main server with backup partner |
Neither mode is universally better.
The correct choice depends on the physical topology, number of clients, site architecture, and availability requirements.
Maximum Client Lead Time (MCLT) is one of the most important DHCP failover settings.
MCLT defines the maximum time by which one DHCP server can extend a client’s lease beyond the lease expiration information known to its partner.
In other words, it provides a safety boundary that helps prevent two DHCP servers from assigning the same IP address to different clients when they cannot communicate.
The default MCLT is one hour.
Suppose DHCP1 and DHCP2 are working normally.
DHCP1 assigns an IP address to a client and communicates the lease information to DHCP2.
Later, the servers lose communication.
DHCP2 cannot safely assume that it knows every recent lease change made by DHCP1.
MCLT helps control how far DHCP2 can extend lease information beyond what it knows about its partner.
This prevents uncontrolled use of the address pool during an uncertain failure.
A larger MCLT can increase the time required for certain failover recovery operations.
A smaller MCLT may reduce recovery waiting time but must be considered carefully in relation to lease duration and the deployment design.
For most standard deployments, keep the default unless there is a documented reason to change it.
DHCP failover servers monitor the communication status of their partners.
Several states are important during troubleshooting.
| State | Meaning |
|---|---|
| NORMAL | Both servers are communicating and the relationship is operating normally |
| COMMUNICATION INTERRUPTED | A server cannot communicate with its partner |
| PARTNER DOWN | A server has determined that its partner is unavailable |
| RECOVER | A server is recovering and synchronizing failover information |
This is the expected state during normal operation.
Both partners communicate and maintain their failover information.
This state appears when a server loses communication with its partner.
It does not automatically prove that the partner server itself has failed.
The server may still be running but unable to communicate because of:
The server applies safeguards to prevent conflicting lease assignments.
PARTNER DOWN indicates that a server has determined that its partner is unavailable.
This state is important because it affects how the remaining DHCP server can use the available address pool.
Do not manually force a server into PARTNER DOWN simply because the failover connection is interrupted.
First establish whether the partner is actually unavailable and whether the transition is operationally safe.
RECOVER is part of the process through which a server restores synchronized failover information.
The server may need to wait for MCLT-related recovery conditions before returning to normal operation.
Before configuring DHCP failover, prepare both servers and verify the network environment.
You need:
For current deployments, Microsoft’s DHCP failover overview lists Windows Server 2016, 2019, 2022, and 2025, and specifies Windows Server 2016 as the minimum for both current failover partners. Check compatibility before pairing older server versions.
If the DHCP servers are joined to an Active Directory domain, they must be authorized in Active Directory.
Unauthorized DHCP servers in a domain environment cannot normally lease addresses to clients.
The two DHCP servers must communicate with each other using TCP port 647.
Windows Firewall creates the relevant inbound and outbound DHCP failover rules when the DHCP Server role is installed.
Also verify that DHCP clients can reach both failover partners, either directly or through a DHCP relay.
If the DHCP servers serve clients on remote subnets, configure the routers or DHCP relay agents to forward client requests to both server addresses.
A DHCP scope used to establish a new failover relationship should exist on the source server and should not already exist independently on the partner server.
The failover configuration creates the corresponding scope on the partner.
If the partner already has a scope with the same subnet ID, such as in an older split-scope deployment, plan a migration and reconcile existing reservations and leases before proceeding. Do not delete an operational scope without a backup and migration plan.
Windows Server’s built-in DHCP failover feature supports DHCPv4 scopes.
DHCPv6 scopes cannot be added to the same built-in failover relationship.
The following examples use:
DHCP1: 10.10.10.10
DHCP2: 10.10.10.11 Run PowerShell as Administrator on both servers.
Install the DHCP Server role:
Install-WindowsFeature DHCP -IncludeManagementTools Verify the installation:
Get-WindowsFeature DHCP The DHCP Server feature should show as installed.
On DHCP1, run:
Add-DhcpServerInDC `
-DnsName "dhcp1.corp.contoso.com" `
-IPAddress 10.10.10.10 On DHCP2, run:
Add-DhcpServerInDC `
-DnsName "dhcp2.corp.contoso.com" `
-IPAddress 10.10.10.11 Verify the authorized DHCP servers:
Get-DhcpServerInDC Only run the authorization commands when the servers are operating in an Active Directory domain.
Before configuring failover, create the required IPv4 scope on DHCP1.
For this example, use:
Scope Name: Office-LAN
Network: 10.20.30.0/24
Start IP: 10.20.30.100
End IP: 10.20.30.220
Gateway: 10.20.30.1 On DHCP1, run:
Add-DhcpServerv4Scope `
-Name "Office-LAN" `
-StartRange 10.20.30.100 `
-EndRange 10.20.30.220 `
-SubnetMask 255.255.255.0 `
-State Active Configure the default gateway and DNS servers:
Set-DhcpServerv4OptionValue `
-ScopeId 10.20.30.0 `
-Router 10.20.30.1 `
-DnsServer 10.10.10.20,10.10.10.21 `
-DnsDomain "corp.contoso.com" Replace the example gateway and DNS addresses with values from your own network.
Verify the scope:
Get-DhcpServerv4Scope -ComputerName DHCP1 At this stage, the example scope should exist on DHCP1 only.
Windows Server provides the Add-DhcpServerv4Failover cmdlet for creating an IPv4 failover relationship.
You can choose Load Balance or Hot Standby.
The examples below use DHCP1 as the source server and DHCP2 as its partner.
Set a shared secret for message authentication.
Use a unique, strong value for your environment and do not reuse the example text below.
$SharedSecret = 'REPLACE-WITH-A-UNIQUE-STRONG-SECRET' Create the failover relationship:
Add-DhcpServerv4Failover `
-ComputerName "dhcp1.corp.contoso.com" `
-Name "HQ-DHCP-FO" `
-PartnerServer "dhcp2.corp.contoso.com" `
-ScopeId 10.20.30.0 `
-LoadBalancePercent 50 `
-SharedSecret $SharedSecret This configuration creates a 50:50 load balance relationship.
The scope configuration is established on the partner server as part of the relationship creation.
The shared secret enables message authentication for communication between the DHCP partners.
Security note: The cmdlet may prompt for confirmation when a shared secret is supplied because of how the secret can be transported during remote management. Use a protected management network and handle the secret securely. Do not save production credentials in scripts or command history.
For Hot Standby, DHCP1 should be the active server and DHCP2 the standby server.
Use:
$SharedSecret = 'REPLACE-WITH-A-UNIQUE-STRONG-SECRET' Create the relationship:
Add-DhcpServerv4Failover `
-ComputerName "dhcp1.corp.contoso.com" `
-Name "HQ-DHCP-FO" `
-PartnerServer "dhcp2.corp.contoso.com" `
-ScopeId 10.20.30.0 `
-ServerRole Active `
-ReservePercent 5 `
-SharedSecret $SharedSecret In this example:
Choose only one mode for a particular failover relationship and scope.
You can also configure failover through the graphical DHCP management console.
On the DHCP server:
The wizard displays the scopes available for failover.
Select the desired scope and click Next.
On the partner server page, enter:
dhcp2.corp.contoso.com Select the appropriate partner and continue.
When the relationship configuration page appears, provide a relationship name:
HQ-DHCP-FO Choose one of the following:
Configure the percentage or reserve settings, enable message authentication, and enter the shared secret.
Review the settings and finish the wizard.
After completion, check that the tasks were successful and verify the relationship from the DHCP console.
After configuration, verify that the relationship is established and that both servers recognize the expected scope.
Run:
Get-DhcpServerv4Failover To inspect a specific server:
Get-DhcpServerv4Failover `
-ComputerName "dhcp1.corp.contoso.com" To display the important properties:
Get-DhcpServerv4Failover `
-ComputerName "dhcp1.corp.contoso.com" |
Format-List * Check the following fields:
| Property | Expected information |
|---|---|
| Name | Failover relationship name |
| PartnerServer | Partner DHCP server |
| Mode | LoadBalance or HotStandby |
| State | Normal during healthy operation |
| ScopeId | Associated IPv4 scope |
| MaxClientLeadTime | Configured MCLT |
| LoadBalancePercent | Load distribution percentage |
| ReservePercent | Standby reserve percentage |
On DHCP1:
Get-DhcpServerv4Scope `
-ComputerName "dhcp1.corp.contoso.com" On DHCP2:
Get-DhcpServerv4Scope `
-ComputerName "dhcp2.corp.contoso.com" Confirm that the failover-enabled scope appears on both servers.
On DHCP1:
Get-DhcpServerv4Lease `
-ComputerName "dhcp1.corp.contoso.com" `
-ScopeId 10.20.30.0 On DHCP2:
Get-DhcpServerv4Lease `
-ComputerName "dhcp2.corp.contoso.com" `
-ScopeId 10.20.30.0 The lease information should remain synchronized between the partners according to the failover relationship.
A common mistake is assuming that every scope modification automatically appears on the partner server.
When you modify a failover-enabled scope, its configuration must be replicated to the partner.
For example, you may add:
Use:
Invoke-DhcpServerv4FailoverReplication `
-ComputerName "dhcp1.corp.contoso.com" `
-Name "HQ-DHCP-FO" `
-Force This replicates the scope configuration associated with the selected relationship.
You can also replicate a specific scope:
Invoke-DhcpServerv4FailoverReplication `
-ComputerName "dhcp1.corp.contoso.com" `
-ScopeId 10.20.30.0 `
-Force Important: Replication copies the configuration from the server where the command is initiated to its partner and can overwrite the partner’s corresponding scope settings.
Before starting replication, confirm that the source server contains the configuration you intend to keep.
The default Load Balance distribution is 50:50.
You can change the ratio if one DHCP server should handle a larger share of client requests.
For example, configure DHCP1 to handle 70%:
Set-DhcpServerv4Failover `
-ComputerName "dhcp1.corp.contoso.com" `
-Name "HQ-DHCP-FO" `
-LoadBalancePercent 70 The partner DHCP2 will handle the remaining 30%.
Verify the change:
Get-DhcpServerv4Failover `
-ComputerName "dhcp1.corp.contoso.com" The configured percentage controls the distribution of DHCP client requests. It does not guarantee an exact 70:30 split in every short time interval or by total bandwidth.
A failover configuration should be tested before it is relied upon in production.
Perform tests in a controlled maintenance window with a test client and an independent administrative access path.
In Load Balance mode, both servers participate in serving clients.
You can:
The client distribution is based on the configured hash mechanism, so testing a single client does not prove the overall ratio.
In Hot Standby mode, the active server normally handles new client requests.
A controlled test can verify that the standby partner can take responsibility when the active DHCP service becomes unavailable.
During an approved test:
Do not assume that the standby server will immediately use the entire address pool as soon as communication is interrupted.
Windows DHCP failover uses MCLT and failover state transitions to help prevent duplicate IP address assignments.
On a Windows test client, run:
ipconfig /all Record the current IP configuration and DHCP server information.
Then renew the lease:
ipconfig /renew Verify that the client receives valid network settings and can communicate with the network.
A successful lease renewal is useful evidence, but it should be combined with server-side state checks and event log monitoring.
Several problems can prevent a Windows DHCP failover relationship from operating normally.
Possible causes:
Test connectivity between the servers:
Test-NetConnection `
-ComputerName "dhcp2.corp.contoso.com" `
-Port 647 Run the equivalent test from the partner server back toward DHCP1.
If the TCP connection fails, check the physical network, routing, name resolution, and firewall configuration.
Possible causes:
Check the DHCP scopes:
Get-DhcpServerv4Scope `
-ComputerName "dhcp1.corp.contoso.com" Check the partner:
Get-DhcpServerv4Scope `
-ComputerName "dhcp2.corp.contoso.com" If the same scope already exists on both servers, investigate the existing configuration before attempting to establish failover.
If DHCP scope settings are different between partners, manually initiate failover configuration replication from the server containing the correct settings.
Run:
Invoke-DhcpServerv4FailoverReplication `
-ComputerName "dhcp1.corp.contoso.com" `
-Name "HQ-DHCP-FO" `
-Force Then check the partner scope and verify that the required reservations, options, and policies are present.
Check the following:
Also inspect the current failover state rather than assuming that a communication interruption automatically means Partner Down.
If message authentication is enabled, both servers must use matching authentication information.
Inspect the DHCP failover administrative event log for authentication-related errors.
Common relevant event IDs include:
| Event ID | Meaning |
|---|---|
| 20256 | Message digest comparison failed |
| 20257 | Authentication was not configured as expected |
| 20258 | Required message digest was missing |
Verify the shared secret configuration on the relationship and follow Microsoft’s recovery guidance before changing authentication settings.
Windows Server provides dedicated DHCP failover event channels.
Open Event Viewer and navigate to:
Applications and Services Logs
Microsoft
Windows
DHCP-Server
Admin
Operational The Admin channel records failover state changes and communication-related errors.
The Operational channel records configuration activities such as relationship creation and scope changes.
Useful event IDs include:
| Event ID | Description |
|---|---|
| 20251 | Failover state transition |
| 20252 | Failover state transition error |
| 20253 | Time synchronization problem with partner |
| 20254 | Communication established with partner |
| 20255 | Communication lost with partner |
| 20256–20258 | Message authentication problems |
You can retrieve recent administrative events using PowerShell:
Get-WinEvent `
-LogName "Microsoft-Windows-DHCP Server Events/Admin" `
-MaxEvents 50 |
Select-Object TimeCreated, Id, LevelDisplayName, Message Use these logs when investigating unexpected state changes or repeated communication failures.
Follow these practices when deploying DHCP failover in production.
1. Use static IP addresses for DHCP servers
The partner servers need stable addresses for communication and management.
2. Choose the appropriate failover mode
Use Load Balance when both servers should actively serve clients. Use Hot Standby when the second server should normally remain passive.
3. Protect the DHCP failover communication path
Ensure that TCP port 647 is available between the two DHCP partners and that firewall rules match the intended network design.
4. Use message authentication
Configure a unique shared secret and protect it during administration and storage.
5. Monitor failover states
Regularly review the relationship state and DHCP failover event logs.
6. Replicate scope settings after configuration changes
Do not assume reservations, policies, and other scope configuration changes are automatically synchronized.
7. Avoid unnecessary Partner Down transitions
A broken communication link does not always mean the partner DHCP server has failed. Confirm the failure before making a manual state transition.
8. Test failover before production deployment
A failover relationship should be validated using controlled client tests and server-side monitoring.
9. Configure DHCP relay agents correctly
Clients on remote subnets must be able to reach both partners through the appropriate relay configuration.
10. Keep DNS update credentials consistent
When both DHCP servers perform DNS dynamic updates on behalf of clients, configure them to use the same DNS credentials.
Windows DHCP failover allows two DHCP servers to share IPv4 scope and lease information. It provides redundancy or load distribution when one server becomes unavailable.
Load Balance allows both DHCP servers to actively handle client requests according to a distribution ratio. Hot Standby uses one active server and one backup server.
The built-in Windows DHCP failover feature supports IPv4 scopes only. DHCPv6 scopes cannot be added to the same failover relationship.
The default is 50% for each DHCP server.
The default reserve percentage is 5% of the free address pool.
Maximum Client Lead Time defines how far one DHCP server can extend a client’s lease beyond what is known by its partner. It helps protect against conflicting address assignments during communication interruptions.
DHCP failover partner communication uses TCP port 647.
Yes. DHCP failover partners can be located on different subnets, provided they can communicate reliably and client traffic can reach both servers through the appropriate network paths.
DHCP failover can be configured and its settings modified without pausing, stopping, or restarting the DHCP Server service.
Run:
Get-DhcpServerv4Failover The output includes the relationship mode, partner, state, and other configuration information.
No. After modifying the configuration of a failover-enabled scope, manually replicate the scope settings to the partner.
Use:
Invoke-DhcpServerv4FailoverReplication `
-ComputerName "dhcp1.corp.contoso.com" `
-Name "HQ-DHCP-FO" `
-Force Windows DHCP failover provides a practical way to improve DHCP service availability by connecting two DHCP servers through a failover relationship.
Load Balance mode allows both servers to participate in serving clients, while Hot Standby provides an active server and a backup partner.
A successful implementation requires more than creating the relationship. Administrators must configure the scope correctly, verify partner communication, understand MCLT, replicate scope changes, and test failover in a controlled environment.
Using Windows PowerShell commands such as Add-DhcpServerv4Failover, Get-DhcpServerv4Failover, and Invoke-DhcpServerv4FailoverReplication makes it easier to configure and maintain the relationship.
With correct planning and regular monitoring, Windows DHCP failover can help maintain reliable IP address allocation when a DHCP server becomes unavailable.
Introduction Border Gateway Protocol (BGP) is the routing protocol used to exchange network reachability information…
Introduction A Linux server can experience connection failures even when its network interface is working…
Introduction TCP retransmissions are an important indicator of network reliability and performance. When a Linux…
Open Shortest Path First (OSPF) is a link-state routing protocol widely used in enterprise networks…
Group Policy is one of the most important management features in Windows Server Active Directory…
Windows DNS servers play an essential role in Active Directory environments, allowing computers, servers, applications,…