Server 2012 – Move a DCHP database to a new server.
Continuing from our previous post “Server 2012 – View and moving FSMO roles using mostly GUI” where we move the fsmo roles from the 2008r2 server to the 2012 server, we are now going to move the DHCP role as well.
- Installing DHCP Server on Server 2012.
- Making backup of old DHCP server.
- Stopping and disabling DHCP server service.
- Restoring DHCP from backup.
First though, we need to install a DHCP server on our Server 2012:
Installing DHCP server on Server 2012:
- In Server Maanger -> Manage -> Add Roles and Features, Next, Next, Select your 2012 server and click next.
- Select the DHCP Server role and click the Add Features when the window pops up.
- Next, Next, Next. Review the and confirma the installation selection and press Install and finally Close.
- We now have a new option on our Server Dashboard.
- Now, we need to Complete the DHCP Configuration. As we have come to know in 2012, this is shown by the exclamation mark as shown below.
- The Post-Installation process consist of creating security Groups and Authorize the DHCP server for use in our domain. Click Next. Use administrator credentials, which is preselected, and press “Commit”. You should now see the below notification. Press Close.
- Open DHCP Manager
- Restart your DHCP server as shown below.
- Right-click DHCP and “Manage authorized servers…”. Select your old DCHP server and click OK.
- Right-click your server and choose backup. Choose a target folder for your backup and press OK. (I had to do it on my old server for some reason, which I’m not looking into at this point in time)
Note: The DHCP server make backups by default, which are located at:
- Stop your 2008r2 DHCP Server to prevent it from giving out new address after we have made a backup.
- To prevent the DHCP server from starting up again, we need to go to the old 2008r2 server and disable the DHCP server service. Make the selection and press Apply.
After we have stopped and disabled the DHCP server, we can no longer control it from our 2012 Server as shown below.
- Copy the backup folder you just created to your 2012 server. Right-click your 2012 DHCP server and choose “Restore…”
- Browse to your backupfolder and click ok. You might get the below warning, click Yes, and Yes to the warning about DHCP server being restarted.
- You should get a “database was restored successfullly”, as shown below. If you do not, try moving the folder containing the backup to the root of C: drive and make sure the foldername contains no Spaces.
- Everthing is restored as we can see. Even all my lab reservertaions are in place 🙂