Server 2012 – Move a DCHP database to a new server.

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.

Content:

  1. Installing DHCP Server on Server 2012.
  2. Making backup of old DHCP server.
  3. Stopping and disabling DHCP server service.
  4. Restoring DHCP from backup.

First though, we need to install a DHCP server on our Server 2012:

Installing DHCP server on Server 2012:

  1. In Server Maanger -> Manage -> Add Roles and Features, Next, Next, Select your 2012 server and click next.
  2. Select the DHCP Server role and click the Add Features when the window pops up.
    server-roles-dhcp
  3. Next, Next, Next. Review the and confirma the installation selection and press Install and finally Close.
  4. We now have a new option on our Server Dashboard.
    servermanager-dhcp
  5. 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.
    dhcp-post
  6. 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.
    dhcp-commmit
  7. Open DHCP Manager
    dhcp-manager
  8. Restart your DHCP server as shown below.dhcp-restart
  9. Right-click DHCP and “Manage authorized servers…”. Select your old DCHP server and click OK.
    dhcp-manage-authdhcp-manage-auth02
  10. 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:
    systemroot\System32\Dhcp\Backup
    dhcp-backup
  11. Stop your 2008r2 DHCP Server to prevent it from giving out new address after we have made a backup.
    dhcp-stop
  12. 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.
    dhcp-disabledhcp-stopped-disabled
  13. Copy the backup folder you just created to your 2012 server. Right-click your 2012 DHCP server and choose “Restore…”
    dhcp-restore
  14. 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.
    dhcp-permissionsdhcp-restart02
  15. 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.
    dhcp-restored
  16. Everthing is restored as we can see. Even all my lab reservertaions are in place 🙂
    dhcp-restored02
Posted in Uncategorized

Leave a Reply