DHCP How To
How to use DHCP with the Windows 2000 Cluster Service
Windows 2000 supports the ability to cluster the Dynamic Host Configuration Protocol (DHCP) and Windows Internet Name Service (WINS) services.
For more information about how to configure WINS and DHCP with Windows Clustering, click the article number below to view the article in the Microsoft Knowledge Base:
226796 Using WINS and DHCP with the Windows 2000 Cluster Service
How to Install -Authorize- Configure DHCP in Active Directory
This step-by-step article describes how to build and configure a new Windows 2000 DHCP Server in a Windows 2000 Active Directory domain. The Windows 2000 DHCP service provides clients with IP addresses, and information such as the location of their default gateway, DNS servers, and WINS servers.
300429 How to install and configure a DHCP server in an Active Directory domain in Windows 2000
How to Use Netsh with DHCP
This following article describes how to use the Netsh.exe tool to authorize or unauthorize DHCP servers in Active Directory, and also to see what servers are authorized for the current domain.
303351 How to Use Netsh.exe to authorize, unauthorize, and list DHCP servers in Active Directory
How DHCP Integrates Dynamic Update
When a network client receives an IP Address and related configuration information from a DHCP server, the client may register an “A” (Host) record with the Domain Name System (DNS), or the client may allow the DHCP server to register either an “A” (Host) record, a PTR (pointer) record, or both in the DNS database. The DHCP server keeps track of the PTR (pointer) record for the client.
For more information, click the article numbers below to view the articles in the Microsoft Knowledge Base:
816592 How to configure DNS dynamic updates in Windows Server 2003
317590 How to configure DNS dynamic update in Windows 2000
How to Restore a Corrupted DHCP Database File
For more information about the methods that you can use to recover a corrupted Dynamic Host Configuration Protocol (DHCP) database, click the article number below to view the article in the Microsoft Knowledge Base:
173396 How to restore a corrupted DHCP database file
This also applies to Windows 2000.
To recover a corrupted DHCP database, use one of the following methods:
- Restore a backup copy of the database file, Dhcp.mdb.
- Generate a new database file by using the DHCP configuration registry key.
Restoring a backup copy of the database file is the recommended method because you will not lose information when you use it. After you recover the database file by using one of the methods mentioned earlier, you must reconcile the information between the database file and the registry information.
Note:
The following steps assume that your DHCP server will not start because of a corrupted DHCP database. If your DHCP server starts, but the database is corrupted, you have to start by stopping the service.
To stop the DHCP server service, type the following at a command prompt:
net stop dhcpserver
Restoring a Backup Copy of the Database
Caution:
If you use Registry Editor incorrectly, you may cause serious problems that may require that you reinstall the operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
- Move the files from your existing DHCP folder to a different location, being careful to keep the DHCP folder structure intact. For example, type the following at a command prompt, and then press ENTER after each line:
md c:\Olddhcp
move %SystemRoot%\system32\DHCP\*.* C:\Olddhcp - Remove the corrupted database file.
- Copy the backup database file into the DHCP folder. To do this, type the following at a command prompt, and then press ENTER.
For Windows NT 3.51
copy %SystemRoot%\system32\dhcp\backup\jet\dhcp.mdb %SystemRoot%\system32\dhcp\dhcp.mdb
For Windows NT 4.0
copy %SystemRoot%\system32\dhcp\backup\jet\new\dhcp.mdb %SystemRoot%\system32\dhcp\dhcp.mdb - If the computer is running Microsoft Windows 2000, modify the following registry key to restore the DHCP server: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer\Parameter
- Change the RestoreFlag REG_DWORD value in this registry key to 1.
- Restart the Microsoft DHCP Server Service.
Generating a New Database File
Move the files in your existing DHCP folder to a different location, being careful to keep the DHCP folder structure intact. For example, type the following at a command prompt, and then press ENTER after each line:
- md c:\Olddhcp
- move %SystemRoot%\system32\DHCP\*.* C:\Olddhcp
This procedure should enable the service to start, but if your scope information is missing, you must use a backup copy of the DHCPCFG registry file to restore your scope and reservation information.
For more information, the article number below to view the article in the Microsoft Knowledge Base:
130642 How to move a DHCP database from one server to another in Windows NT 4.0 and in Windows 2000
Reconciling DHCP Information
After you generate a new database file, you may notice that the scope information is present, but no active leases are displayed. To regain the active leases, you must reconcile the database with the information in the registry. To do this, follow these steps:
- From DHCP Manager, click your scope, and then click Active Leases on the Scope menu.
- In the Active Leases dialog box, click Reconcile.
- Click OK. Your active leases will appear in the Active Leases dialog box.
How to Move a DHCP Database from NT/2000
This step-by-step article describes how to move a Dynamic Host Configuration Protocol (DHCP) database from a computer that is running Microsoft Windows NT Server 4.0, Microsoft Windows 2000, or Microsoft Windows Server 2003 to a computer that is running Windows Server 2003.
325473 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


Leave a Reply