You can create a DHCP failover with two serversĀ in hot standby mode by using a single Add-DhcpServerv4Failover PowerShell cmdlet.

This tutorial assumes you have an active scope on primary DHCP server and a DHCP running on standby or partner server.

Configure DHCP Failover in Windows Server 2016 using PowerShell

Step 1. Open PowerShell on primary DHCP server with elevated privileges.

Step 2. Execute the following command. Make sure to replace the appropriate values:

Add-DhcpServerv4Failover -ComputerName "dhcpserver.contoso.com" -Name "SFO-SIN-Failover" -PartnerServer "dhcpserver2.contoso.com" -ServerRole Standby -ScopeId 10.10.10.0,10.20.20.0 -force

 

How to Configure DHCP Failover in Windows Server 2016 using PowerShell
Avatar

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

Leave a Reply

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

*