Move DHCP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have one server that is handling DHCP for one of my sites. I want to
transfer the DHCP server to a new server. What is the easiest method of
doing this.
 
Hi George,

Thanks for posting here.

From your post, my understanding of this issue is: You would like to know
how to move a DHCP database from one server to another new server. If this
is not correct, please feel free to let me know.

Based on my research, there is a KB article which can be your good
reference:

How to move a DHCP database from one server to another in Windows NT 4.0
and in Windows 2000
http://support.microsoft.com/kb/130642

I also copy related information as below just for your convenience (I
assume the source and destination are all Windows 2000):

Warning: If you use Registry Editor incorrectly, you may cause serious
problems that may require you to reinstall your operating system. Microsoft
cannot guarantee that you can solve problems that result from using
Registry Editor incorrectly. Use Registry Editor at your own risk.

To move a DHCP database from one Windows 2000-based server to another
Windows 2000-based server, follow these steps.

Notes
o On the source server, the DHCP database name and location may have been
changed from the default of %systemroot%\System32\DHCP\DHCP.mdb. The
procedure in this article is not affected by differences in the DHCP
database location between the source server and the destination server.
However, the procedure requires that the destination DHCP server use the
default name and path of %systemroot%\System32\DHCP\DHCP.mdb.

o This method does not migrate the following DHCP Server settings:
- APIProtocolSupport
- DatabaseCleanupInterval
- DatabaseLoggingFlag
- DetectConflictRetries
- DatabasePath
- BackupDatabasePath
- DatabaseName
- BackupInterval
- RestoreFlag

For information about how to configure these parameters, see the Windows
2000 Resource Kit documentation. To do this, visit the following Microsoft
Web page:
<http://www.microsoft.com/resources/documentation/Windows/2000/server/reskit
/en-us>

o The Microsoft Windows 2000 Help file incorrectly identifies the registry
subkey to be exported and imported as the following:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer\Configuratio
n
This article correctly identifies the subkey to be exported and imported as
the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DHCPServer\Configuration

Step 1: Before you move a DHCP database
==========================
Important: Moving a DHCP database incorrectly can leave your computer in an
unstable state. Therefore, we strongly recommend that you do the following
before you try to move a DHCP database:
o Create a backup of your working configuration.
o Test this procedure in a lab environment.
o Perform all the following steps exactly as they appear in this article.
Also, it is assumed that the destination server does not have the DHCP
Server service installed. If the DHCP Server service has been installed on
the destination server, we recommend that you remove it. To do this, follow
these steps:
1. On the destination DHCP server, click Start, point to Settings, click
Control Panel, and then double-click Add/Remove Programs.
2. Click Add/Remove Windows Components, double-click Networking Services
(do not click to select the Networking Services check box), and then click
to clear the Dynamic Host Configuration Protocol (DHCP) check box.
3. Click OK, and then click Next.

Step 2: On the source DHCP server
==========================
1. To prevent the DHCP Server service from starting after you move the DHCP
database, disable the DHCP Server service by using the Services tool in
Control Panel. To do this, follow these steps:
a. Click Start, point to Settings, click Control Panel, and then
double-click Services.
b. In the Services box, click Microsoft DHCP Server, click Startup, and
then click Disabled under Startup Type.
2. Stop the DHCP Server service. To do this, type the following at a
command prompt, and then press ENTER:
net stop dhcpserver
3. Click Start, click Run, type regedit32, and then click OK.
4. Locate and then click the following subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DHCPServer\Configuration
5. On the Registry menu, click Save Key, and then save the subkey as
C:\Config.key.
6. Quit Registry Editor.

Step 3: On the destination DHCP server
==========================
After you have installed the DHCP Server service on the destination server,
you must not start the DHCP console until you are instructed to do this.
The first time that you start the DHCP console, it will look for and will
create certain settings that should only be created at the end of the
following procedure.
1. Install the DHCP Server service. To do this, follow these steps:
a. Click Start, point to Settings, click Control Panel, and then
double-click Add/Remove Programs.
b. Click Add/Remove Windows Components, double-click Networking Services
(do not click to select the Networking Services check box), and then click
to select the Dynamic Host Configuration Protocol (DHCP) check box.
2. Stop the DHCP Server service. To do this, type the following at a
command prompt, and then press ENTER:
net stop dhcpserver
3. Copy the Config.key file to the destination server, and then save the
file as C:\Config.key.
4. Click Start, click Run, type regedit, and then click OK.
5. Locate and then click the following subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DHCPServer\Configuration
6. On the Registry menu, click Restore. Select the C:\Config.key file, and
when you are prompted to restore over the existing key, click Yes.
7. Quit Registry Editor.
8. Delete all the contents of the %systemroot%\System32\DHCP folder. This
includes its subfolders.
9. Copy the DHCP database file (DHCP.mdb) from the
%systemroot%\System32\DHCP folder on the source server to the
%systemroot%\System32\DHCP folder on the destination server.
10. Start the DHCP Server service. To do this, type the following at a
command prompt, and then press ENTER:
net start dhcpserver
You should receive the following message:
The DHCP Server service was started successfully
11. Start the DHCP Server console from the Administrative Tools group.
12. Click the destination DHCP server, and then click Reconcile All Scopes
on the Action menu. Click Verify. If any leases have to be reconciled,
click Reconcile to synchronize the registry and the database.
13. If the Windows 2000-based server is part of an Active Directory domain,
the server must be authorized. To authorize the DHCP server, follow these
steps:
a. Click Start, point to Programs, point to Administrative Tools, and then
click DHCP.
b. Click the name of the DHCP server.
c. On the Action menu, click Authorize.

Important: This article does not apply to Microsoft Windows Server 2003. To
move a DHCP database from a computer that is running Microsoft Windows NT
Server 4.0, Windows 2000, or Windows Server 2003 to a computer that is
running Windows Server 2003, view the Microsoft Knowledge Base article:

How to move a DHCP database from a computer that is running Windows NT
Server 4.0, Windows 2000, or Windows Server 2003 to a computer that is
running Windows Server 2003
http://support.microsoft.com/kb/325473

Hope this helps!

Have a nice day!

Sincerely,
Tom Che
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
Back
Top