If you have ever had to move a DHCP Server from one physical server to another, you know that the process isn’t exactly fun or intuitive if the servers are running Windows Server 2003. Fortunately, when Microsoft created Windows Server 2008, they completely redesigned the administrative interface, and in doing so, also made DHCP much easier to migrate. In this article, I will show you how it’s done.
Windows 2008 Network Infrastructure 70-642 Training!
Have you seen the Network Infrastructure 70-642 Training video by Train Signal? I highly recommend this course, as you will learn much more than you will from any book. Train Signal's package includes new iPod/MP3 versions of the course (for learning on the go) and Transcender practice tests to help you prepare for certification. The instructors, Ed and Coach, do an amazing job not only preparing you to get Microsoft Certified but also showing you what tasks you need to perform on real Windows 2008 Servers, in the real world!
Migration in Windows Server 2003
Since this article is supposed to be about Windows Server 2008, I don’t want to talk too much about Windows Server 2003. Even so, I do want to give you a quick overview of the migration process that was used in that version of Windows so that you can better appreciate what I am about to show you.
To migrate a Windows 2003 DHCP Server, the first thing that you must do is to stop, and then disable the DHCP service. Of course this means that clients will not be able to use the DHCP server to obtain IP addresses until the process is complete. You must then copy the server’s
\%systemroot%\system32\DHCP folder to a safe location that you can use later on. After doing so, you should remove this folder from the original server.
Next, you will have to do some work through the Registry Editor. As always, when you are working with the Registry Editor, you should make a backup first, because making an incorrect change can destroy Windows. With that said, navigate through the Registry Editor to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer\Configuration. Now, choose the
Save Key command from the editor’s Registry menu, and export the registry key to a safe location. When you are done, you can uninstall the Add / Remove Windows Components Wizard to uninstall the DHCP server component.
Restoring a DHCP Server Backup in Windows Server 2003
Before you can restore your DHCP server backup, you must install the DHCP server component onto the new server, but after doing so, you must stop and temporarily disable the DHCP service. Now, check the backup directory that you created earlier for a file named
system.mdb. If this file exists, rename it to
system.src. You may now copy all of the files from the backup directory to the new server’s
%systemroot%\system32\DHCP folder.
Now you have to restore the backup copy of the registry that you created earlier. To do so, open the Registry Editor and navigate through the registry tree to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer\Configuration. Choose the
Restore command from the editor’s Registry menu, and then restore the registry backup file that you created earlier. When you are done, close the Registry Editor, reboot the machine, and then enable and start the DHCP service.
Migration in Windows Server 2008
As you can see, moving the DHCP service from one server to another in Windows Server 2003 was a real pain. Fortunately, the process is a lot easier in Windows Server 2008. Begin the process by opening the DHCP Manager, found on the server’s Administrative Tools menu. When the console opens, right click on the server name, and then choose the Backup command from the resulting shortcut menu, as shown in Figure A.
// ord = window.ord || Math.floor(Math.random()*1E16); document.write('
// <![CDATA[
'); //]]>
// ]]>
document.write(''); CollectiveMedia.createAndAttachAd("ns-49886268_1272438470","http://ad.doubleclick.net/adj/ns.petri/archive;net=ns;u=,ns-49886268_1272438470,1181de793b8dc02,ce_gaming_psp,ns.ce_cartech_general_L;;kw=;tile=2;ord1=997780;sz=300x250,336x280;ppos=BTF;contx=ce_gaming_psp;btg=ns.ce_cartech_general_L;ord=9077363748768918?","300","250,336",false); google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad);
Figure A Right click on the server’s name, and choose the
Backup command from the resulting shortcut menu.
When you do, Windows will prompt you to enter a location for the backup file that you are creating. After entering a location, click OK, and the backup file will be created.
Restoring a DHCP Backup in Windows Server 2008
Microsoft makes restoring a backup just as easy. To do so, just open the DHCP management console, right click on the server that you want to restore the backup to, and choose the
Restore command from the resulting shortcut menu. You can see the Restore option shown in Figure A. Now, just specify the location of the backup that you want to restore, and click OK. Windows will now ask you if it is OK to stop and restart the DHCP Server service, as shown in Figure B. Click Yes, and the restore will begin. When the process completes, the DHCP Server service should automatically restart with the new settings.
Figure B You must restart the DHCP Server service in order for the restore operation to work correctly.
Note:
One of my readers - Mike Pagan - has identified some issues with this procedure and pointed me to an interesting Microsoft KB article:
"I was following along with this article and the DHCP scope appeared to migrate properly, but I had some issues. The reservations were blank and the active leases would not pull up and displayed a red X on the category. I did some further checking and found this article at Microsoft’s support site:
http://support.microsoft.com/kb/962355. I followed this article and I was able to migrate all the settings including the reservations and active leases."
Thanks Mike!
Conclusion
In this article, I have shown you how to migrate a DHCP Server configuration from one server to another. Keep in mind that regardless of whether you are performing this procedure in Windows Server 2003 or Windows Server 2008, you must disable any DHCP server that contains a conflicting scope prior to performing a restoration.
[...] This post was mentioned on Twitter by Info Tech. Info Tech said: DHCP Server Migration Made Easy in Windows Server ... http://fb.me/Be375JTk [...]
ReplyDelete