{"id":2169,"date":"2017-05-31T20:10:38","date_gmt":"2017-05-31T20:10:38","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2169"},"modified":"2018-09-06T23:18:18","modified_gmt":"2018-09-06T23:18:18","slug":"migrating-dhcp-part-2-migrate-dhcp-to-a-new-windows-server","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2169","title":{"rendered":"Migrating DHCP Part 2: Migrate DHCP to a New Windows Server"},"content":{"rendered":"<p>With Windows 2012 \/ Windows 2012R2 now offering a way to failover DHCP, many organizations have opted to migrate their DHCP functions from an older operating system. There are multiple, creative ways to handling a migration from an old server a new server; this article outlines one method of migrating all DHCP scopes from an existing server to a newly deploy Microsoft Windows 2012R2 Server.<\/p>\n<p>&nbsp;<\/p>\n<h2>Migrating DHCP to a New Server<\/h2>\n<p>In the example explained below, the server to be decommissioned is a Windows Server 2003R2 Standard (I will call this <em>DHCP-Old<\/em>) and will be migrated to a Windows 2012R2 Datacenter server (I will call this <em>DHCP-New<\/em>). The existing DHCP server is handling multiple scopes and multiple locations via an IP DHCP helper. To avoid having to adjust multiple routers with a new DHCP helper address or having to go through a complex migration process, I will be utilizing the same IP address on the new DHCP server.<\/p>\n<p>Note that in the case explained below, an outage was not required due to how the business operates, having a secondary Domain Controller\/Global Catalog server, and how the DHCP lease times were configured.\u00a0<strong>Each organization is unique, so it is imperative that the needs of the business be evaluated before migrating any critical services or doing any work that may impact services.<\/strong><\/p>\n<h3>Back Up the Existing DHCP Server<\/h3>\n<p>The first step will be to log on to <em>DHCP-Old<\/em> navigate to <strong>CONTROL PANEL<\/strong> &gt; <strong>Administrative Tools<\/strong> &gt; <strong>DHCP<\/strong>. Once the <strong>DHCP<\/strong> tool opens up, make sure that the server listed under DHCP is the server that needs to be backed up. By default, it should go to the correct server; if for some reason another server is showing up, right-click on <strong>DHCP<\/strong> and click <strong><em>Add Server<\/em><\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.interworks.com\/sites\/default\/files\/blog\/u34\/Blog-DC-ADMigrate-SS01.png\" alt=\"\" width=\"243\" height=\"205\" \/><\/p>\n<p>Next, browse for old <strong>DHCP<\/strong> server:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.interworks.com\/sites\/default\/files\/blog\/u34\/Blog-DC-ADMigrate-SS02.png\" alt=\"\" width=\"428\" height=\"305\" \/><\/p>\n<p>Once the correct server is listed in the <strong>DHCP <\/strong>tool, right-click on the server name (blurred out in my example) and click <strong><em>Backup<\/em><\/strong><em>:<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.interworks.com\/sites\/default\/files\/blog\/u34\/Blog-DC-ADMigrate-SS04.png\" alt=\"\" width=\"645\" height=\"449\" \/><\/p>\n<p>This will prompt for a location to place the backup. With Windows 2003\/2003R2 machines, I have experienced issues with trying to backup the DHCP scope to the non-default directory. So, I went ahead and left the default options. The default folder is located at <strong><em>C:\\WINDOWS\\system32\\dhcp\\backup\\<\/em><\/strong>.<\/p>\n<h3>Unauthorize the Existing DHCP Server<\/h3>\n<p>Since one of my requirements was to utilize the same server IP address on <em><strong>DHCP-New<\/strong><\/em>, I need to start prepping <em><strong>DHCP-Old <\/strong><\/em>and <strong><em>DHCP-New<\/em><\/strong> before migrating in the scope.<\/p>\n<p>On <strong><em>DHCP-New<\/em><\/strong>, I copied the entire backup folder from <strong><em>DHCP-Old<\/em><\/strong> and dumped it on the desktop of<strong><em>DHCP-New<\/em><\/strong>.<\/p>\n<p>I then logged back on to <strong><em>DHCP-Old<\/em><\/strong>, navigated to the <strong>DHCP<\/strong> tool, and went to <strong><em>Manage authorized servers<\/em><\/strong> by right- clicking on <strong>DHCP<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.interworks.com\/sites\/default\/files\/blog\/u34\/Blog-DC-ADMigrate-SS03.png\" alt=\"\" width=\"296\" height=\"159\" \/><\/p>\n<p>Next, <strong><em>unauthorize<\/em><\/strong>\u00a0the old <strong>DHCP <\/strong>server. If this is the only\/last\u00a0<strong>DHCP <\/strong>server in the environment, the following list will be blank after removing <strong><em>DHCP-Old<\/em><\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.interworks.com\/sites\/default\/files\/blog\/u34\/Blog-DC-ADMigrate-SS05.png\" alt=\"\" width=\"420\" height=\"250\" \/><\/p>\n<p>Next, document the IP address of <em><strong>DHCP-Old<\/strong>,<\/em> then adjust the IP address of <em><strong>DHCP-Old <\/strong><\/em>to another address on the network. I suggest using a static IP address, for quick and easy access back to the server. In my particular case, I was able to decommission the existing Domain Controller roles by following my &#8220;Decommissioning A Windows 2003 Or Windows 2008 Domain Controller &#8221; \u00a0http:\/\/microsoftgeek.com\/?p=2174 \u00a0article.<\/p>\n<p>Once that is complete, log back onto <strong><em>DHCP-New<\/em><\/strong> and adjust the IP address of <strong><em>DHCP-New<\/em><\/strong> to the IP address that was previously being used on <em><strong>DHCP-Old<\/strong>.<\/em><\/p>\n<p>At this stage, <strong><em>DHCP-New<\/em> <\/strong>can be authorized as a server (see steps to &#8220;Complete DHCP configuration&#8221;\u00a0in http:\/\/microsoftgeek.com\/?p=2171 ).<\/p>\n<h2>Importing the DHCP Scope and Finalizing the Migration<\/h2>\n<p>Now that <strong><em>DHCP-New<\/em><\/strong> has been authorized, open up the <strong>DHCP<\/strong> tool. Right-click on the server and select <em><strong>Restore<\/strong>:<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.interworks.com\/sites\/default\/files\/blog\/u34\/Blog-DC-ADMigrate-SS06.PNG\" alt=\"\" width=\"459\" height=\"398\" \/><\/p>\n<p>Next, select the location of your DHCP backup files. In my case, I had copied the files to the desktop of the new DHCP server:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.interworks.com\/sites\/default\/files\/blog\/u34\/Blog-DC-ADMigrate-SS07.PNG\" alt=\"\" width=\"329\" height=\"315\" \/><\/p>\n<p>A prompt may appear warning that the existing user has insufficient privileges. In my case, I was logged in as the Domain Administrator so the warning could be ignored:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.interworks.com\/sites\/default\/files\/blog\/u34\/Blog-DC-ADMigrate-SS08.PNG\" alt=\"\" width=\"490\" height=\"212\" \/><\/p>\n<p>As with many Windows Services, the DHCP service will need to be stopped and restarted as part of the restart process:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.interworks.com\/sites\/default\/files\/blog\/u34\/Blog-DC-ADMigrate-SS09.PNG\" alt=\"\" width=\"474\" height=\"170\" \/><\/p>\n<p>On a virtual machine, the process took a few minutes to complete:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.interworks.com\/sites\/default\/files\/blog\/u34\/Blog-DC-ADMigrate-SS10.PNG\" alt=\"\" width=\"336\" height=\"138\" \/><\/p>\n<p>Once the database has been restored successfully, a prompt will appear. If there is something wrong with the DHCP backup files, the process will fail out.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.interworks.com\/sites\/default\/files\/blog\/u34\/Blog-DC-ADMigrate-SS11.PNG\" alt=\"\" width=\"325\" height=\"169\" \/><\/p>\n<h2>Monitoring the DHCP Server<\/h2>\n<p>Although the DHCP server was reporting that the database properly imported, I have observed multiple cases where steps were skipped that caused finicky behavior on the new <strong>DHCP<\/strong> server. In a multi-scope environment, I have seen some scopes not fully import,\u00a0and issues do not come to light until after leases start expiring. I was fortunate enough for many environments\u00a0to be able to delete the bad scopes and recreate them from scratch;\u00a0however, this cannot be done in every environment.\u00a0Make sure to test the environment after the migration as the old <strong>DHCP<\/strong> server may need to be reauthorized.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Windows 2012 \/ Windows 2012R2 now offering a way to failover DHCP, many organizations have opted to migrate their DHCP functions from an older operating system. There are multiple, creative ways to handling a migration from an old server a new server; this article outlines one method of migrating all DHCP scopes from an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57,6,48],"tags":[],"class_list":["post-2169","post","type-post","status-publish","format-standard","hentry","category-dhcp","category-general-2008","category-microsoft-windows-server-2012"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2169"}],"version-history":[{"count":3,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2169\/revisions"}],"predecessor-version":[{"id":2177,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2169\/revisions\/2177"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}