How can I move a DHCP database from one server to another?

John Savill

January 8, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. Perform the steps below on the server that currentlyhosts the DHCP Server service. Be warned that while doing this no DHCP clientswill be able to start TCP/IP so this should be done outside working hours.

  1. Log on as an Administrator and stop DHCP (Start - Settings - Control Panel- Services - Microsoft DHCP server - Stop).

  2. You also need to stop DHCP from starting again after a reboot so start theServices Control Panel applet and select Microsoft DHCP Server and clickStartup. From the startup choose disabled and click OK.

  3. Copy the DHCP directory tree %systemroot%system32DHCP to a temporarystorage area for use later.

  4. Start the registry editor (regedt32.exe)

  5. Move to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesDHCPServerConfiguration

  6. From the Registry menu, click Save Key. Create a name for this key, forexample dhcpcfg.bck

  7. Close the registry editor

Optionally if you want to remove DHCP from the source machine totally deletethe DHCP directory (%systemroot%system32dhcp) and then delete the DHCPService (Start - Settings - Network - Services - Microsoft DHCP Server -Remove)

On the new DHCP server perform the following

  1. Log on as an Administrator

  2. If the server does not have the DHCP server service installed, install it(Start - Settings - Control Panel - Network - Services - Add - DHCP Server)

  3. Stop the DHCP service (Start - Settings - Control Panel - Services -Microsoft DHCP server - Stop).

  4. Delete the contents of %systemroot%system32dhcp

  5. Copy the backed up DHCP directory tree from the storage area to%systemroot%/system32/dhcp, but rename the file system.mdb to system.src. Youmay not have this file if you are using NT 4.0, skip this step.

  6. Start the registry editor (regedt32.exe)

  7. Move toHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesDHCPServerConfigurationand select it

  8. From the registry menu select restore

  9. Located the file dhcpcgf.bck you saved from the original machine and clickopen

  10. Click Yes to the warning

  11. Close the registry editor

  12. Reboot the machine

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like