Export and import DHCP

One of many things that I found useful is exporting and importing a DHCP database. I'm sure there are so many uses for exporting and importing a DHCP database. It can be simply needing to as a backup , or to move the DHCP role from a 2003 server to a 2008 R2 server. You can reference the Microsoft link below for a detailed version on how to do this.

http://support.microsoft.com/kb/962355

It is important before you perform any administrative tasks that you first understand what you are doing, you have the proper authorization and access.


Export the DHCP database from Windows 2003:


 On the Windows 2003 DHCP server, navigate to a command prompt type the following command:
netsh
DHCP
server \\servername or
server \\ipaddress

Type the following Command:
export c:\w2k3DHCPdb all


Import the DHCP database
******************************************
Copy the exported DHCP database file to the local hard disk of the Windows Server 2008-based computer.

Install the DHCP Role on the server.
Stop the DHCP server service on the server from the command line by using: net stop DHCPserver

Delete the DHCP.mdb file under c:\windows\system32\DHCP folder.

Start the DHCP server service on the server from the command line by using: net start DHCPserver

Type the following Command:  netsh DHCP server \\servername or \\ipaddress
Then type: import c:\w2k3DHCPdb
Restart DHCP and verify the database has moved over properly.




 

Follow Us

Copyright © 2007 - 2024. All Praise Media LLP. All Rights Reserved.