migrating dhcp from windows server 2003 to 2012 r2
TRANSCRIPT
![Page 1: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/1.jpg)
Migrating DHCP From Windows Server 2003 to 2012 R2
End of support for Windows Server 2003 is nearing quickly. To address this concern,Microsoft provides great tools to assist organizations in their migration efforts.Windows Server Migration Tools, introduced with Windows Server 2008 R2 enables administrators to migrate server roles, features, configuration settings seamlessly from one system to another. Windows server 2012 R2 also includes this feature and in this Step-By-Step will demonstrate how it can be utilized to migrate the DHCP role.Please note to use this method we need to install this feature in both source and destination servers.For the demonstration I am using following setupServer Name Operating
SystemServer Roles
Networks
dhcp-2k3.canitpro.local Windows Server 2003 R2 Enterprise x86
DHCP Network A – 10.10.10.0Network B – 172.16.25.0Network C – 192.168.148.0
CANITPRO-DC2K12.canitpro.local
Windows Server 2012 R2 x64
- -
Before start the migration process it’s important to consider on following:
1. To migrate the roles you need to log in to source and destination servers as “Domain Administrators”
2. Before start the migration process make sure source and destination servers’ runs with latest updates and service packs
3. If the source server runs with multiple network, multiple NIC make sure the destination server also have same number of NIC so it can be server with same network setup.
Prerequisitesdhcp-2k3.canitpro.local server currently setup with 3 additional NIC to represent network A,B and C. those have configured with static ip addresses to match with relevant network it belongs to. The DHCP server host different DHCP scopes for each network.Before we start the process we need to install the following software in windows server 2003(dhcp-2k3.canitpro.local) if it’s not there already.
![Page 2: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/2.jpg)
1. .Net Framework 3.5 (http://www.microsoft.com/en-us/download/details.aspx?id=21)
2. Windows PowerShell 2.0 (http://support2.microsoft.com/kb/968929/en-us)Step 1: Windows Server Migration Tools installation for Windows Server 2012 R2
1. Log in to the Windows server 2012 R2 as Domain Administrator
2. Go to Server Manager > Add Roles and Features
3. It will open the Add roles and features Wizard and click next to start the
process
4. In next window, for the installation type select “Role-based or feature-based installation” then click next to continue
![Page 3: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/3.jpg)
5. In next window keep the default server selection and click next to continue
![Page 4: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/4.jpg)
6. Then it will give option to select server roles but we need to install only a
feature. So keep the default selection and click next to continue.
![Page 5: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/5.jpg)
7. Then in features selection, select “Windows Server Migration Tools” and
click next to continue
![Page 6: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/6.jpg)
8. In next window it will give the confirmation window and click on install to
begin the installation process
![Page 7: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/7.jpg)
9. Once installation is completed click on close to exit from the wizard
Step 2: Windows Server Migration Tools installation for Windows Server 2003
1. Log in to the Windows server 2012 as Domain Administrator
2. Go to Server Manager > Tools > Windows Server Migration Tools > Windows Server Migration Tools
![Page 8: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/8.jpg)
3. It will open up the command prompt and then
type cd ServerMigrationTools
4. Now we need to create migration deployment package for windows server
2003. To save the files I have create folder “C:\WIN2K3MIG”. Now type the command .\SmigDeploy.exe /package /architecture x86 /os ws03 /path C:\WIN2K3MIG and press enter
![Page 9: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/9.jpg)
5. This creates the package as following
6. Now we need to copy the folder C:\WIN2K3MIG\SMT_ws03_x86 to
windows server 2003 which host the DHCP role
![Page 10: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/10.jpg)
Step 3: Preparing the DHCP Source of Windows Server 2003 for Migration
1. Log in to the Windows server 2003 as Domain Administrator
2. Go to Start > All Programs > Accessories > Windows PowerShell > Windows PowerShell
3. Then type “Net stop “DHCP Server”” and enter
![Page 11: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/11.jpg)
4. This will stop the running DHCP server. Then open the folder copied from
windows server 2012 R2 and then open the file called “SmigDeploy.exe”
5. Then it will open up the command window. Then type Get-
SmigServerFeature and press enter
![Page 12: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/12.jpg)
6. This will examine the roles running on this server and provide list of roles
which we can migrate over to windows server 2012 R2
7. Now it’s time export the DHCP data using the tool. Before do it we need to prepare a share folder in network which will have access from both DHCP Source Server andDHCP Destination Server. I have create folder called “DHCPShare” in windows server 2012 and share it with read and write NTFS permissions.
![Page 13: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/13.jpg)
8. Type the command Export-SmigServerSetting -featureID DHCP -User All -Group -path \\Canitpro-dc2k12\DHCPShare -Verbose and press enter to export the DHCP data. In here featureID define the server role. Once enter the command it will ask a password to protect the data.
9. Now in the share we can see it created the backup file.
The DHCP data is now exported.
Step 4: Removing the old DHCP roles From Windows Server 2003Since we no longer need DHCP role running on this server we can go ahead and uninstall the DHCP service.
1. Log in to the windows server 2003 as member of administrator group
2. Start > Control Panel > Add or Remove Programs
![Page 14: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/14.jpg)
3. Then click on “Add/Remove Windows Components”
![Page 15: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/15.jpg)
4. In next window select “Networking Services” and click on details
![Page 16: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/16.jpg)
5. From next window de-select the DHCP option and click ok
![Page 17: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/17.jpg)
6. Then click next to uninstall the DHCP service
It will uninstall the DHCP role from the windows 2003 server.
Step 5: Installing the DHCP Role in Windows Server 2012 R21. Log in to the windows server 2012 as member of administrator group
2. Open Server Manager > Add Roles and Features
![Page 18: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/18.jpg)
3. It will open the wizard and click next to continue
4. For the installation type select “Role-based or feature-based installation”
and click next
![Page 19: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/19.jpg)
5. Let the default selection run on server selection and click next to continue
![Page 20: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/20.jpg)
6. For the server roles select DHCP and it will prompt to add relevant
features. Click on “Add features” to add them and next to continue
![Page 21: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/21.jpg)
7. For the features let it run with default. Click next to continue
![Page 22: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/22.jpg)
8. Then it will give brief description about DHCP server role and click next to
continue
9. Next window it will give the confirmation and click on install to continue
![Page 23: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/23.jpg)
This will install the DHCP server role in the new server.
Step 6: Importing the DHCP Server Data into Windows Server 2012 R2
1. Log in to the Windows server 2012 as Domain Administrator
2. Open Windows Powershell using Server manager > Tools > Windows Powershell
3. Type “Net stop “DHCP Server”” and press enter
4. Then type Add-PSSnapin
microsoft.windows.servermanager.migration and press enter to use the
![Page 24: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/24.jpg)
migration tools command set.
5. Now to import DHCP data type Import-SmigServerSetting -featureID
DHCP -Force -path C:\DHCPShare -Verbose and press enter. Here C:\DHCPShare is the folder path where we save the DHCP data from windows server 2003. It will ask the password to enter which we have define during the export DHCP server data process. Note: Here I didn’t import the users or groups as its domain controller I am importing to but if necessary you can do it using –Users and Group command
6. Then type Start-Service DHCPServer and press enter to start the
DHCP server
7. Then Authorize the DHCP server with command Netsh DHCP add server
CANITPRO-DC2K12.canitpro.local 38.117.80.124
![Page 25: Migrating dhcp from windows server 2003 to 2012 r2](https://reader033.vdocument.in/reader033/viewer/2022052706/5873bbde1a28abbc788b57a1/html5/thumbnails/25.jpg)
8. Reboot the Server Note : If the source DHCP server had multiple NIC with Multiple networks make sure the new server also match the same config. Assign the static ip address to those interfaces to match the configuration. This also can automated during the import process. You can get more info about command option in http://technet.microsoft.com/en-us/library/dn495425.aspx
Now we completed with the restore process and I already can see its issues IP addresses.
Source: http://blogs.technet.com/b/canitpro/archive/2014/11/26/step-by-step-migrating-dhcp-from-windows-server-2003-to-2012-r2.aspx