Archive

Archive for June, 2012

Migrate DHCP database from Server 2003 to Server 2008 R2

June 20, 2012 1 comment

Very often when doing Active Directory upgrade projects for customers, DHCP will be running on one of the current domain controllers that will need to be decommissioned after the upgrade process has been completed. Migrating the DHCP database and configuration from Server 2003 to Server 2008 R2 is a very easy process that is not time consuming at all.

Export the DHCP database and configuration from the server that is running Windows Server 2003.
You will need to have local administrator rights to accomplish this. 

1) Open up a command prompt by clicking Start, click Run, type cmd in the run box, then OK or Enter.

2) Type netsh dhcp server export c:\dhcp.txt all, and then press Enter. 

Install the DHCP server role on the Server 2008 R2 server. 

1) Click Start, click Administrative Tools, Click Server Manager.

2) In the Roles Summary click Add Roles, click Next, check DHCP server, and then click Next.

3) Click Next on the Introduction to DHCP Server page.

4) On the Select Network Connection Bindings page, make sure the IP Address is checked that you want to service DHCP clients.

5) On the Specify IPv4 DNS Server Settings page, remove all information that has been populated, click Next. (Since we are importing from the Server 2003 DHCP server, all information will be brought over)

6) On the Specify IPv4 WINS Server Settings page, select WINS is not required for applications on this network, click Next. (Again, if you are using WINS, these settings will be migrated over)

7) On the Add or Edit DHCP Scopes page, do not add any DHCP scopes, click Next.

8) On the Configure DHCPv6 Stateless Mode page, click Disable DHCPv6 stateless mode for this server, click Next.

9) On the Authorize DHCP Server page, click Skip Authorization of this DHCP server in AD DS, click Next. (We will be authorizing later)

10) On the Confirm Installation Selections page, review your selections, if all looks correct, click Install.

Now that we have the DHCP server database and configuration exported, and the DHCP server role installed on our new 2008 R2 server, the next step is to import our database and configuration into the new server.

Importing the exported DHCP database and configuration into our new Windows Server 2008 R2 server. 

1) Copy the exported DHCP database and configuration file to the local hard disk of the Windows Server 2008 R2 server.

2) Open up a command prompt by clicking Start, click Run, type cmd in the run box, then OK or Enter.

3) Type netsh dhcp server import c:\dhcp.txt all, and press Enter. (In this example, we copied the dhcp.txt file to the root of the c:\ drive.

Open up the DHCP console and verify the DHCP database and configuration has been imported. 

Now that we have exported the DHCP database and configuration, installed the DHCP server role, and imported the DHCP database and configuration, it is time to authorize the DHCP server. Now this process is very quick and simple but before you make the cutover to use the new DHCP server, a few things need to be in place. Depending on your network configuration, you might have to make some IP address helper for DHCP on some of your networking devices. Once those are in place, then we can authorize the new DHCP server, and unauthorize the old DHCP server.

Authorize the DHCP server

1) Open up your DHCP server console on the new Server 2008 R2 server.

2) In the console tree, expand the new DHCP server.

3) Right click on the server object, then click Authorize.

4) If all goes successful, right click the server again, and click Refresh. (Your red arrow should not be a green arrow showing that the server is authorized.)

5) If all IP address helpers are in place for the new DHCP server, you can now unauthorize your old DHCP server. A quick test can be done by running ipconfig /release and ipconfig /renew from a DHCP client to see if DHCP server address has changed.

Advertisements
Categories: Active Directory