DHCP migration

Hi Guys ,
im going to add a 2nd DC Server 2012r2 - this will have AD/DNS and will move FSMO roles to this server so this will act as a primary DC - then the other will be for replication/failover.  How do I move the DHCP to the new server? or shall I leave it?? ideally I want to move DHCP to new server...
jag bAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DrAtomicCommented:
You can safely use the procedure outlined here: https://support.microsoft.com/en-us/kb/962355/en-us?wa=wsignin1.0 (yes it's about moving w2k3 to a w2k8 server but everything in that article applies to w2k12 as well, plus it can be used for any DHCP to DHCP move).
Lior KarasentiCommented:
Moving the DHCP service to another server in the domain is pretty easy and can be done in minutes.

Check this guide here for steps with screen shots:

http://community.spiceworks.com/how_to/23549-exporting-and-importing-dhcp-database-on-windows-server
DrAtomicCommented:
You can also use Export-DhcpServer and Import-DhcpServer powershell commands; see:
-. https://technet.microsoft.com/en-us/library/jj553823(v=wps.630).aspx (Export-DhcpServer)
-. https://technet.microsoft.com/en-us/library/jj590659(v=wps.630).aspx (Import-DhcpServer)
-. https://technet.microsoft.com/en-us/library/dn495425.aspx (Technet DHCP migration to w2k12 guide)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

jag bAuthor Commented:
Guys - at what point do i uninstall the role from the existing server?  i have tested both below (for my own knowledge) - created a .xml file and also .txtfile on my existing server for below commands:

Export-DhcpServer -ComputerName dhcpserver.contoso.com -File C:\exportdir\dhcpexport.xml

netsh dhcp server export c:\dhcp.txt all

Shall i copy these files onto my new server first? then install the role DHCP? Shall i remove the role DHCP from old server?
akbCommented:
How many devices do you have on your network acquiring addresses from the DHCP server?
I recently did exactly what you are doing for 50 users.
The current DHCP server assigned addresses from 192.168.1.50 to 192.168.1.250. Addresses below 192.168.1.50 were reserved for devices with fixed addresses.
I changed the existing DHCP server to only assign addresses in the range 192.168.1.50 to 192.168.1.150. There were no addresses reserved above 192.168.1.150.
I set the range on the new DHCP server to 192.168.1.151 to 192.168.1.250.
I activated the new DHCP server and disabled the old one. It doesn't matter if they are both running at the same time as long as they are serving out different addresses. Each device will take its address from whichever DHCP server replies first.
I waited a until most devices had obtained addresses from the new DHCP server. I then rebooted all devices which still had addresses in the old range.
Once all devices had addresses obtained from the new DHCP server I extended the range to 192.168.1.50 to 192.168.1.250.
jag bAuthor Commented:
im going to do this out of production - no users will be at work.  i have around 100 users... question is - can in install the role on new server - import the file i exported then uninstall from old server?
DrAtomicCommented:
@Jag

I would do it as follows (after hours):

1. Install DHCP role on new server
2. Stop new DHCP service so it's inactive
3. Export old DHCP database
4. Stop old DHCP service
5. Transfer files
6. Start new DHCP service
7. Import files
8. Restart new DHCP service
9. Verify everything works as intended
10. Uninstall DHCP role on old server

Test the entire procedure in your testlab prior to executing it in production.
Lior KarasentiCommented:
The DHCP will become active only ofter you authorize it, so don't forget this step..

http://searchwindowsserver.techtarget.com/tip/Moving-DHCP-without-interruption-during-an-Active-Directory-migration
jag bAuthor Commented:
Guys - followed below:  Seems to worked on my test - anything i missed?
1. Install DHCP role on new server - done ok
2. Stop new DHCP service so it's inactive - done ok
3. Export old DHCP database
old server i ran:  Export-DhcpServer -ComputerName dhcpserver.contoso.com -File C:\exportdir\dhcpexport.xml
4. Stop old DHCP service - done ok
5. Transfer files - done ok
6. Start new DHCP service
7. Import files
i ran: Import-DhcpServer -ComputerName dhcpserver.contoso.com -File C:\exportdir\dhcpexport.xml -BackupPath C:\dhcpbackup\
8. Restart new DHCP service
9. Verify everything works as intended
10. Uninstall DHCP role on old server

In number 7 - why is the -BackupPath C:\dhcpbackup needed??
anything else that needs to be done here??
DrAtomicCommented:
In number 7 - why is the -BackupPath C:\dhcpbackup needed??

For rollback purposes, it dumps the original config from before the import is ran in there.
jag bAuthor Commented:
nothing else needs to be done ? or any checks?
my test clients all have IP addresses... and have appeared in my new DHCP scope
DrAtomicCommented:
For testing you can:

1. Add a new device to the test domain that was previously unknown. make sure it gets it's IP.
2. Completely release the IP on a test workstation, make sure it gets a new IP.
3. Check the renewal on one of the existing workstations to see if it get's a refresh of the IP.
4. Check workstation eventlogs for any obscurities.
5. Check server eventlogs for any obscurities.
jag bAuthor Commented:
cheers for you help guys
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DHCP

From novice to tech pro — start learning today.