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.
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
DHCP can be imported from a text file. To do this, run the command below from a command
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
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:
The above tool will also export your DHCP to txt file which then can be imported into your
Windows 2003 DHCP.
The following command exports the full service configuration to the
export c:\temp\dhcpdb all
The following command exports the configuration that pertains to scopes 10.0.0.0
and 188.8.131.52 to the c:\Temp\Dhcpdb file:
export c:\temp\dhcpdb 10.0.0.0 184.108.40.206
The following command imports the full configuration from the c:\Temp\Dhcpdb
import c:\temp\dhcpdb all
The following command imports the configuration pertaining to scopes 10.0.0.0 and
220.127.116.11 from the c:\Temp\Dhcpdb file:
import c:\temp\dhcpdb 10.0.0.0 18.104.22.168