Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to

You're reading from   Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to A step-by-step guide to installing, configuring, and updating to Windows Server 2012

Arrow left icon
Product type Paperback
Published in Jan 2013
Publisher Packt
ISBN-13 9781849687447
Length 84 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Santhosh Sivarajan Santhosh Sivarajan
Author Profile Icon Santhosh Sivarajan
Santhosh Sivarajan
Arrow right icon
View More author details
Toc

Dynamic Host Configuration Protocol (DHCP) migration (Must know)

In this recipe I will explain a procedure for migrating DHCP scope and lease information using the Windows Server Migration Tools. Migrating infrastructure services such as DHCP, DNS, WINS, and so on will have some impact on network operations. So make sure to schedule a maintenance window and place proper change control before you perform these activities.

If the DHCP role is not installed on the target server, the Windows Server Migration Tools will install it during the migration process. However, in this scenario, we will be manually installing the DHCP role and authorizing the DHCP server in Active Directory.

The following diagram explains the high level steps involved in this migration:

Dynamic Host Configuration Protocol (DHCP) migration (Must know)

How to do it...

  1. Log on to Windows Server 2012.
  2. Open Server Manager. From the Server Manager option, install the DHCP Server role. Refer to the Add and remove roles and features (Must know) recipe for roles and feature installation details.
    How to do it...
  3. From the DHCP Admin console, authorize the new DHCP server in Active Directory.
  4. Log on to the source DHCP server. Copy the migration tool package from \\HOU-MGR-01\MigTools to C:\MigTools.
  5. Stop the DHCP Server service.
  6. Open Command Prompt with elevated permission and navigate to the C:\MigTools folder. Run the SmigDeploy.exe command. This will register the migration tool on the source server and open a PowerShell window as shown in the following screenshot:
    How to do it...

    Note

    The PowerShell and .NET Framework are prerequisites for this tool.

    After you register the SmigDeploy.exe tool, Windows Server Migration Tools will be added to the Administration Tools menu on the local server. You can uninstall this tool by running the SmigDeploy.exe /Unregister command.

  7. The next step is to export the current DHCP configuration from the source server. From the PowerShell window type Export-SmigServerSetting –FeatureID DHCP –Path C:\DHCPExport\ cmdlet. It will prompt you for a password for the export file. Hit Enter to continue with the export process. The export file will be in the C:\DHCPExport folder.
    How to do it...
  8. Copy this export file (C:\DHCPExport\svrmig.mig) over to the target Windows Server 2012 DHCP server.
  9. The next step is to import this file onto the new DHCP server. Log on to the target Windows Server 2012 server and open Windows Server Migration Tools from the Start window as an administrator. If this role is not locally installed on the server, you can copy the installation package from the \\HOU-MGR-01\MigTools folder and run the SmigDeploy.exe tool.
    How to do it...
  10. From the PowerShell window, run the Import-SmigServerSetting –FeatureID DHCP –Path D:\DHCPExport cmdlet and hit Enter. You need to provide only the folder name.

    As I mentioned before, if the DHCP feature was not installed, the migration tool will install this feature as shown in the following screenshot:

    How to do it...
  11. Since we already installed the DHCP feature, it will start the import process. You need to provide the same password as configured in the export process.
    How to do it...
  12. The new server needs to be restarted after the import process has completed.

How it works…

The preceding process migrates DHCP information onto the new Windows Server 2012 server. At this point the new DHCP server will have all the DHCP scope and lease information.

There′s more...

You can verify the scope and lease information from the DHCP admin console. The IP helper address on the router has to be changed with the new DHCP server′s IP address if it is configured with the old DHCP server′s IP address. Once you verified these configurations, the old DHCP server can be decommissioned. Windows Server 2012 provides high-availability and failover capability for DHCP. You may want to take advantage of this new feature right away.

The DHCP scope and lease information can also be migrated using Netsh Export and Netsh Import commands.

You have been reading a chapter from
Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
Published in: Jan 2013
Publisher: Packt
ISBN-13: 9781849687447
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image