Tip
Subject Content

34
Migrate DHCP to another server

Before you migrate DHCP on your production server, you should create a backup and perform test

migrations. When you do the migration, follow these steps exactly.



Disable the DHCP service on server1 by using the Services console. Make sure you set Disabled

under Startup Type for the services.

Stop your service from the command prompt using net stop dhcpserver.

Open the Regedt32.exe and go to

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DhcpServer\Configuration

Select the Configuration Key and click Save Key on the Registry menu. Save the key in the

Config.key file.

Install the DHCP service on server2, through the Add/Remove Programs wizard.

Stop the DHCP service on computer1 using net stop dhcpserver in the command prompt.

Copy the Config.key file from server1 to server2.

On server2, use the Regedt32.exe and go to

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DhcpServer\Configuration

Select the Configuration key and click Restore from the Registry menu. Select the Config.key file

and click Yes.

Delete the %systemroot%\System32\Dhcp folder, including subfolders on server2.

Copy the %systemroot%\System32\Dhcp\Dhcp.mdb from server1 to server2.

Use net start dhcpserver to start the DHCP service on server2.

Open the DHCP Server console from the Administrative Tools on server2.

Right-click server2 and select Reconcile All Scopes. Click Verify.

If this compute is part of the Active Directory domain, authorize it.



This isn't the only way to migrate DHCP. Supplement 1 for the Windows 2000 Resource Kit

includes DHCPExIm.exe, which can move the DHCP scopes from one server to another.



Also note that not all DHCP settings are migrated. After you migrate the database, reconfigure

your DHCP settings, like Logging, Backup interval, and so on.



Reminder: Once again, editing the registry can be risky, so be sure you have a verified backup

before making any changes.

Page 34 of 237
First Previous Next Last