How to migrate DHCP configuration from two DHCP servers configured for failover hot-standby?
Are there any good articles, documentation, videos on how to migrate DHCP configuration?
Existing environment:
1) Two DHCP servers running Window Server 2016 Standard where each scope is configured with DHCP failover in stand-by mode.
2) Need to standup a third (new) DHCP server with the same scope configurations as the two current DHCP servers.
3) Need to decommission one of the original two DHCP servers that is already a member of the failover.
What is Microsoft best practices to accomplish this?
Do we need to break the failover relationship prior to starting this project?
Thank you
# Migrate DHCP
# TODO Export
$OldDHCPServer = "MY-OldDC"
$Domain = "DOMAIN.Com"
Export-DhcpServer -File C:\DHCPdata.xml -Leases -Force -ComputerName "$($OldDHCPServer).$($Domain)" –Verbose
# TODO Import
$NewDHCPServer = "MY-TempDC"
$Domain = "DOMAIN.Com"
Import-DhcpServer -File C:\DHCPdata.xml -BackupPath C:\DHCP\ -Leases -ScopeOverwrite -Force -ComputerName "$($OldDHCPServer).$($Domain)" –Verbose
# Using CMD
netsh DHCP server export C:\dhcp.txt
netsh DHCP server import C:\Temp\dhcp.txt
ASKER
ASKER
ASKER
The Dynamic Host Configuration Protocol (DHCP) is an auto configuration protocol used on IP networks and an extension of the Bootstrap Protocol. DHCP allows for computers to be configured automatically to communicate with each other over an IP network without the need for manual setup by a network administrator. The implementation of DHCP relies on a DHCP server to hand out network configuration information to DHCP-capable clients that request an IP address (and other information required or useful in communicating with other devices on an IP network). In addition to an IP address, common configuration information served over DHCP includes a default gateway, subnet mask and DNS sever(s).
TRUSTED BY
As far as I know you can only have 2 servers in this configuration I know you used to be able to do full DHCP failover clustering but I haven't looked into this in a few years.
So basically you would need to remove the other server from the failover configuration then add the new server in the wizard.