|
Howto - Move a DHCP Database from one server to another |
|
|
|
Perform the steps below on the server that currently hosts the DHCP Server service. Be warned that while doing this no DHCP clients will be able to start TCP/IP so this should be done outside working hours.
- Log on as an Administrator and stop DHCP (Start - Settings - Control Panel - Services - Microsoft DHCP server - Stop).
- You also need to stop DHCP from starting again after a reboot so start the Services Control Panel applet and select Microsoft DHCP Server and click Startup. From the startup choose disabled and click OK.
- Copy the DHCP directory tree %systemroot%\system32\DHCP to a temporary storage area for use later.
- Start the registry editor (regedt32.exe)
- Move to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer \Configuration
- From the Registry menu, click Save Key. Create a name for this key, for example dhcpcfg.bck
- Close the registry editor
Optionally if you want to remove DHCP from the source machine totally delete the DHCP directory (%systemroot%\system32\dhcp) and then delete the DHCP Service (Start - Settings - Network - Services - Microsoft DHCP Server - Remove) On the new DHCP server perform the following - Log on as an Administrator
- If the server does not have the DHCP server service installed, install it (Start - Settings - Control Panel - Network - Services - Add - DHCP Server)
- Stop the DHCP service (Start - Settings - Control Panel - Services - Microsoft DHCP server - Stop).
- Delete the contents of %systemroot%\system32\dhcp
- Copy the backed up DHCP directory tree from the storage area to %systemroot%/system32/dhcp, but rename the file system.mdb to system.src. You may not have this file if you are using NT 4.0, skip this step.
- Start the registry editor (regedt32.exe)
- Move to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer\Configuration and select it
- From the registry menu select restore
- Located the file dhcpcgf.bck you saved from the original machine and click open
- Click Yes to the warning
- Close the registry editor
- Reboot the machine
|