Avatar of CSR14
CSR14
Flag for Canada asked on

Migrate Two Split-Scope Windows Server 2003 DHCP to a Windows Server 2012 R2 R2 DHCP Cluster

Hi Guys,

I was wondering what is the safest option to migrate a 2003 split-scope dhcp setup to 2012 r2? We absolutely need to keep the leases and reservations and the 40+ scopes. I looked around the web and most people migrate dhcps using powershell so i installed the package.

Regards

Jeff
DHCPWindows Server 2003Windows Server 2012

Avatar of undefined
Last Comment
CSR14

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Michael Pfister

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
CSR14

ASKER
I exported both dhcps but the resulting files are unreadable. I can't really edit them.
Michael Pfister

You're right, I confused it with the dump parameter. This one generates a readable text file but its not dumping leases, just reservations.

netsh dhcp server \\dhcpserver dump > allscopes.txt
Michael Pfister

PowerShell on 2012 has  Export-DhcpServer and Import-DhcpServer cmdlets but I've never tried them.

I also doubt it can remotely export the data from a Windows 2003 DHCP but you could give it a try. It will generate an editable XML file.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Michael Pfister

As a last try use this vbs to export your leases to a text file

http://blogs.technet.com/b/teamdhcp/archive/2006/09/19/dhcp-reservation-tool.aspx

Then convert the leases to XML and try to import them via Import-DhcpServer.
CSR14

ASKER
In fact, what i was hoping for was a straightforward procedure. I know it can easily be done from 2008 to 2012 but information is lacking for 2003. Any thoughts or field experience would be appreciated.

Jeff
CSR14

ASKER
Would it be easier if i migrate my two 2003 dhcps to two 2008 r2 test servers and then to the 2012 r2 servers which is a way more documented?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
CSR14

ASKER
I guess the easiest solution here would be to decomission one of the servers and modify the other one to accomodate the entire scopes and then export everything to a 2012 r2 server. This scenario seems more documented so thanks for the cues.
Michael Pfister

The main problem seems to be getting the leases from the 2003 database to the new server.

This article describes the (imho complicated)  usage of the Windows Server Migration Tools to migrate to 2008 R2 (as an intermediate step)

http://social.technet.microsoft.com/wiki/contents/articles/7411.step-by-step-migration-dhcp-from-windows-server-2003-to-windows-server-2008-r2-with-windows-server-migration-tools.aspx

Never tried that, netsh dchp server export and netsh dhcp server import were always good enough. It is not clear if Windows Server Migration Tools are capabable to grab the leases
CSR14

ASKER
Here are ma thoughts:

Our DHCP split-scope setup is 50/50.
What if i set lease expiration very low on DHCP #2 (to be retired)
Configure scopes to include  the whole bunch of addresses on DHCP #1
Configure scopes to exclude the whole bunch of addresses on DHCP #2 (this should tell clients that their ip leased is expired and to request new ips which should be provided by DHCP #1)
Configure ip conflict detection on DHCP #1 just in case.
When every lease is transfered to DHCP #1, decomission DHCP #2
Export DHCP #1 config to DHCP 2012 #1
Configure load balance options to DHCP 2012 #2.

How does that sound?

Jeff
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
CSR14

ASKER
Another idea just popped in my head. We will be moving a split scope to a cluster of two servers. What if i import DHCP#1 to new dhcp#1 and DHCP#2 to new DHCP #2 and then configure load balancing? Will the scopes sync if i specify the same options on both sides beforehand?
CSR14

ASKER
Final update:

Here is how i'm going to do it.

Export both 2003 DHCP servers
Import the configs on my new 2012 r2 servers

At this point i'll follow this document but the final import will be done on DHCP 2012 #1:
http://didyourestart.blogspot.ca/2013/02/dhcp-migrate-from-split-scope-to.html

Thanks!