Solved

DHCP RESTORE

Posted on 2013-11-20
4
1,239 Views
Last Modified: 2013-11-28
I have been asked to perform a test restore of our DHCP backup. When I perform the restore it fails.

The backup is coming from our domain controller, I set up DHCP on an unused server that is joined to the same domain as the DC. I installed the DHCP role, I entered the scope as 1.1.1.1 to 1.1.1.2 - for no other reason than to make sure there is a scope entered totally different to our actual scope.

Our DHCP backup saves in format "dhcp.bkf". I moved this onto the test DHCP server, opened DHCP right clicked on the server name and selected "restore". I select the correct folder but receive a message telling me the database was not restored correctly and to check Event Viewer. Event viewer says "The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format". I noticed when I manually run a backup of dhcp the format is DhcpCfg so I renamed it to that and tried again with no success.

Both servers are 2003. A fix was receommended that involved going to the following registry location, but this is not present in both the existing server and the newly built server??
 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer\Configuration
0
Comment
Question by:MongolianNoseFlute
  • 2
4 Comments
 
LVL 76

Expert Comment

by:arnold
Comment Utility
A DHCP service has to be authorized.

One can use netsh to export/import the DHCP server configuration.

http://technet.microsoft.com/en-us/magazine/ff621490.aspx

Do you only have a single DHCP server in the environment?

There is a way to have two running using a 30/70 split of the scope.
0
 

Author Comment

by:MongolianNoseFlute
Comment Utility
Hi, we do have only one server in our environment. The second I have setup is purely for testing purposes......the testing is not going well
0
 
LVL 76

Accepted Solution

by:
arnold earned 500 total points
Comment Utility
Using netsh there is a simpler/easier way to backup the configuration.

Your issue might be because the system on which you are trying to restore the backup is not an authorized DHCP server.
0
 
LVL 16

Expert Comment

by:Learnctx
Comment Utility
I suspect that because you are restoring a backup from an authorized DHCP server to a non-authorized DHCP server the restore is failing. That's just my theory. Netsh will make your life a lot easier. Setup a scheduled task to export your DHCP server configuration nightly using netsh. You could use PowerShell, VBScript or even just a basic batch file to do it. We usually backup via netsh and the DHCP database itself.

Export database via netsh.
netsh dhcp server export c:\backup\dhcpexport.txt all

Open in new window

Copy database MDB.
net stop "dhcp server"
copy /y %windir%\System32\dhcp\dhcp.mdb c:\backup

Open in new window

The DHCP restoration is simple. You just import via netsh or copy the DHCP MDB database on to the new server. If the server is not authorized it will import the settings but won't start servicing requests.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Ever wondered why you had to use DHCP options (dhcp opt 60, 66 or 67) in order to use PXE? Well, you don't!
Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now