Troubleshoot Windows 2000 DHCP server

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

Well, that didn't work -- now what?
It's quite possible that the above procedure won't solve the problem. If it doesn't, you have other options. Chief among these will be to restore a copy of the DHCP database from a backup. You can try this from a prior tape backup or from the \Backup folder under the \System32 \Dhcp folder. If you do take this route, be sure to stop the DHCP Server Service first, and then make a new backup copy of the entire current (and possibly corrupted) System32 \Dhcp folder, preserving the folder hierarchy to a separate backup location or device from the one you're going to restore from. Next, delete all the files in \System32 \Dhcp and restore their equivalents from your secondary backup location. Then make sure to run the Jetpack.exe utility against the newly restored Dhcp.mdb file before restarting the service. Once you've restarted the service and checked all the scope and lease information, you may see that not all of it is correct and up to date, and you may not see any of the active leases or reservations. This is because there's an inconsistency between what's in the backup and what's in the server's registry key. To reconcile these two so that your DHCP database is consistent, open the DHCP console and choose Reconcile All Scope from the Action menu. This will open a dialog box called Reconcile Database in which you must click Verify. This runs through the DHCP database to check for inconsistencies. If it encounters any, it displays the relevant IP address information, which you need to select and then click Reconcile. Once the reconciliation is complete, the data is added back to the Active Leases for each scope. This information is based on the contents of the registry key atHKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Services \DHCPServer. Restart the DHCP Server Service. If you subsequently notice that individual client lease information is incorrect, don't worry too much, because this will be corrected the next time the clients renew their DHCP leases. In fact, I recommend that you aim to have all the clients renew their leases as soon as possible thereafter so that your Active Leases and Reservations information will be correct, and you can make an immediate backup of the newly restored DHCP database. Nope, it's still not working
The remedies I've described all assume that your DHCP server is in good physical health. However, if this is not the case and you need to repair or replace some hardware, you'll have to move the function of the DHCP server to another machine. This is not as complicated as it sounds, and you can do it fairly quickly and without the need to recreate a DHCP database from scratch. There are two phases to this procedure, the first on the source DHCP server and the second on the destination DHCP server. First, on the source DHCP server, stop and disable the DHCP Server Service. Copy the DHCP folder hierarchy to a temporary location on the destination server. For example, copy %Systemroot \System32 \Dhcp to C: \Tempdhcp. Start the Registry Editor (Regedt32.exe) and find the HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Services \DHCPServer key. Save this key to a text file using Save Key from the File menu. (Make sure you don't choose Save Subtree As!) Finally, make sure this text file is available on the Destination DHCP server. In the next phase, you must go to the destination DHCP server. Make sure the DHCP Server Service is installed and that the server has been rebooted. Stop the DHCP Server Service. Find the temporary location to which you copied the DHCP folder hierarchy in phase one. In this example, it would be C: \Tempdhcp. Find the System.mdb file and rename it System.src. Move the \Sytem32 \Dhcp folder hierarchy (containing the renamed file) into this server's existing DHCP folder structure, thereby replacing it. Open the Registry Editor, and find and select the DHCPServer key, which is located in the HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Services \DHCPServer hive. Restore the registry key you saved as a text file in phase one to this location. When you're prompted for a File Name in the Restore Key operation, use this path: Systemroot \System32 \Dhcp \Backup \Dhcpcfg. When prompted, click Yes, which will overwrite the current registry values with the ones you've transferred from the Source DHCP server. Finally, close the Registry Editor and restart the DHCP Server Service. Open the DHCP Server console and choose the Reconcile All Scopes as I outlined earlier. After doing so, you'll have successfully moved and recreated a working DHCP database on a new server. Be sure to renew all client IP address leases and make a backup of the new DHCP server installation as soon as possible.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

Freebies202

Duplicate comments are not made intentionally. Its very good to know that now you are keeping check on this problem because sometimes a commenter...

7 hours ago by Freebies202 on Microsoft fixes blog comments, speeds up blogs with open source
kevinmchapman

"the very significant number of users" and "many (most) of us" - you have no evidence for these statements. It is a fact that most users are saying...

15 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
Marg Menzies Harrison

Another grammar faux pas is the improper use of "you". When sitting down down in a restaurant, for example, I get cringe when the waitress...

17 hours ago by Marg Menzies Harrison via Facebook on 10 flagrant grammar mistakes that make you look stupid
zdnetukuser

And NOW, folks, for Canonical's next trick... Kubuntu is late. Here's a pencil. Draw your own conclusions. cf.:...

17 hours ago by zdnetukuser on Linux Minterface
Moley

@kevinmchapman. The discussion here reflects the very significant number of users who really do like the traditional menu system and who wish to...

19 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

Er, no... It is an efficient means of finding the application/file/setting you need in one place. The icons are a simply a fallback for when you...

21 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

Isn't the provision of a text based search an admission by the developers that the mass of icons approach does not work? I don't need to use a...

22 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

"Unity and GNOME 3 both abandon the old text-based cascading menus in favour of a graphical icon-driven system." Point truly missed. Both use a...

23 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

whs001 - Thank you, I'm glad you liked the article. I absolutely agree with you on your first point. I should perhaps have made it clearer that...

23 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Dennis Nilsson

If we allow corporate interest to dictate the way our government circumvents due process against foreign entities then we should accept the same...

1 day ago by Dennis Nilsson via Facebook on ACTA stumbles in Germany
GHar123

I totally dislike pirating of works, I fear that artists will be deterred from creating works if they think that they are going to get ripped off....

1 day ago by GHar123 on ACTA stumbles in Germany
JCB33

How dare film makers, artists or anybody that invests in creativity stop us pirating their works for free. I want to be able to walk into my local...

1 day ago by JCB33 on ACTA stumbles in Germany
Moley

@GrueMaster. I prefer horses for courses rather than one size fits all. I, and I suspect most other computer users, do not really wish to have...

1 day ago by Moley on A tale of two distros: Ubuntu and Linux Mint
greycynic

The product that scares me every time I have to use it is the Office 2007 version of Excel. The first bug that I found was applying the median...

1 day ago by greycynic on Ten flawed products that derail productivity
GrueMaster

Nice review and very informative. One thing I'd like to add (in reply to whs001's 1st question), the main reason to have the same interface from...

1 day ago by GrueMaster on A tale of two distros: Ubuntu and Linux Mint
Frederick Wrigley

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

1 day ago by Frederick Wrigley via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

2 days ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

2 days ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

2 days ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Moley

For Gnome 2 die-hards, it is possible to add icons to the bottom panel (or top top panel, if you prefer) which provide the exact Gnome 2...

2 days ago by Moley on A tale of two distros: Ubuntu and Linux Mint