?
Solved

Error option “6.” while importing DHCP database from Windows Server 2003 to another Windows Server  2008 R2

Posted on 2016-08-10
3
Medium Priority
?
285 Views
Last Modified: 2016-08-15
I had this question after viewing Moving DHCP scope fro 2003 to 2008 R2.

When we tried to import the scope (to 2008 R2) that we exported (on 2003) we got an error. Please note that the 2008 R2 server we are trying to import the scope to already has DHCP running (authorized) and it servicing other scopes that we WANT TO KEEP, thus we are trying to append to that DHCP server. We got an error option "6" when importing (as noted below), but I don't want to delete the Server Options entries 006 and 015 as I don't know what impact that would have on the existing scope.
Error while importing option “6.” while moving DHCP database from Windows Server 2008 to another Windows Server 2008/2003 or 2008 R2




 

To move DHCP from one server (2003/2008) to another you can use the following steps
1.At the command prompt type netsh dhcp server export C:\dhcpdata.txt all , and then press ENTER.

Note: You must have local administrator permissions to export/import the data.

Configure the DHCP server service on the server that is running Windows Server 2008
1.Add DHCP Server Role
2.Make sure to Authorize DHCP while installing the Role.

Import the DHCP database
1.Copy the exported DHCP database file to the local hard disk of the Windows Server 2008-based computer.
2.At the command prompt, type netsh dhcp server import c:\dhcpdata.txt all and press ENTER

If might receive the following error

“Error while importing option “6.” “This option conflicts with the existing option “” An Internal Error Occurred.”


It is because by default when you install DHCP Server Role, it puts the following entries in Server Options.

006 DNS Server
015 DNS Domain Name

To fix the Error –> Just delete the above two entries from Server options and Run the Import DHCP database command again.
0
Comment
Question by:Laszlo Denes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 37

Expert Comment

by:bbao
ID: 41750670
did you delete DHCP.MDB on the target W2K8 server before importing the data file?

did you check this MSKB?

How to move a DHCP database from a computer that is running Windows Server 2003 to Windows Server 2008
https://support.microsoft.com/en-au/kb/962355
0
 

Author Comment

by:Laszlo Denes
ID: 41750719
Yes, we did BUT we are NOT trying to move the scope to just another server, rather to a server that already has an authorized DHCP role with existing scopes that must remain! My own investigation suggests that we really need is a MERGE, i.e. exporting and  importing not ALL, but rather only the specific scopes as noted here.
https://support.microsoft.com/en-us/kb/281626
From the NETSH DHCP SERVER command prompt, you may then export and import scopes by following the examples below.
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
0
 
LVL 37

Accepted Solution

by:
bbao earned 2000 total points
ID: 41750729
be aware two things: :)

1. you can edit the exported file which is in plain text per your needs.

2. if the configurations are not complicated say just a few scopes and options, manually creating them on the target server from the scratch might be the best option, at least a time-saving way.
1

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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!
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

777 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