BackUpRestoreandCompactDHCPDatabase

Document Sample
BackUpRestoreandCompactDHCPDatabase Powered By Docstoc
					Back Up, Restore and Compact DHCP Database

To install DHCP on a server from an export file you need to install DHCP on a server on your
network using add/remove programs but do NOT configure it. Import the file (using the
examples below) and then you will need to authorise it to make the scope active.

Export DHCP
DHCP can be backed up to a text file. To do this, run the command below from a command
prompt (the all switch exports everything to see examples see the export examples section).

       netsh dhcp server export C: \NorthgateDHCP.txt all

Import DHCP
DHCP can be imported from a text file. To do this, run the command below from a command
prompt.

       netsh dhcp server import C:\dhcpdatabase.txt all

Compact DHCP Database
DHCP can be compacted. To do this, run the commands below from a command prompt.
DHCPServer is the name of the service that is to be stopped and started.

       NET Stop DHCPServer

       cd\WINNT\system32\dhcp\

       Jetpack dhcp.mdb temp.mdb

       NET Start DHCPServer

DHCP Database Export Import Tool (dhcpexim.exe) WINDOWS 2000: This
command-line tool exports a DHCP database and server configuration from a server
that is running Microsoft Windows NT 4.0 Server or Windows 2000 Server for
import into a destination DHCP server that is running Windows 2000. To download
this tool, click the following link:
http://www.microsoft.com/downloads/details.aspx?familyid=3603ae26-81f0-478a-836c-b31ed463af5e



The above tool will also export your DHCP to txt file which then can be imported into your
Windows 2003 DHCP.

Export examples


The following command exports the full service configuration to the
c:\Temp\Dhcpdb file:
export c:\temp\dhcpdb all

The following command exports the configuration that pertains to scopes 10.0.0.0
and 20.0.0.0 to the c:\Temp\Dhcpdb file:
export c:\temp\dhcpdb 10.0.0.0 20.0.0.0

Import examples


The following command imports the full configuration from the c:\Temp\Dhcpdb
file:

import c:\temp\dhcpdb all

The following command imports the configuration pertaining to scopes 10.0.0.0 and
20.0.0.0 from the c:\Temp\Dhcpdb file:

import c:\temp\dhcpdb 10.0.0.0 20.0.0.0

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:0
posted:2/14/2012
language:
pages:2