DHCP database transfer

Login to the DHCP server with appropriate credentials

Click start – run – type cmd and press enter

DHCP1

In the command console

Type:
netsh dhcp server export c:\dhcp.txt all

Then press enter. You can change the path and filename to suit your needs.

DHCP2

You should see confirmation after a short bit

The amount of time to backup your database will be dependent upon the size. You should get a confirmation that it was completed successfully.

DHCP3

Login to your target server

Login with the appropriate credentials on your target server for importing. If you haven’t installed the DHCP role yet open the server manager console and click on Add Roles.

DHCP4

click the DHCP Server box to add the role

then click Next, then Next again

DHCP5

Make sure the correct IP is selected for binding

then click Next

DHCP6

Configure DNS

Set parent domain, Primary and Secondary DNS server IPs and click Next (in this instance the primary is the loopback for the DC that is being used as an example)

DHCP7

If WINS is in use…

click the radio button for “WINS is required…” and configure your Primary and Secondary server IPs then click Next, if you don’t use WINS, leave the default setting and click Next

DHCP8

Since we are importing a database, just click Next on this screen

DHCP9

Usually you can disable DHCPv6 stateless mode

If you aren’t sure you I can’t tell you if you need it or not so either accept the default or change it and click Next

DHCP10

You should get a confirmation message saying the install succeeded.

I wouldn’t import the database onto the new server until you have gone to your old DHCP server and either disabled the DHCP Server service, deactivated the scopes or Unauthorized it.

DHCP11

Open a command prompt on the new server

DHCP12

In the command console

type:
netsh dhcp server import c:\dhcp.txt all

Then press enter. You can change the path and filename to whatever you are using. This how to skips the step of copying the file you exported to the root of C: on the new server.

DHCP13

Authorize the DHCP server

Click Start, point to All Programs, point to Administrative Tools, and then click DHCP.

In the console tree of the DHCP snap-in, expand the new DHCP server. If there is a red arrow in the lower-right corner of the server object, the server has not yet been authorized.
Right-click the server object, and then click Authorize.
After several moments, right-click the server again, and then click Refresh. A green arrow indicates that the DHCP server is authorized.

DHCP14

Comments are closed.