To move DHCP from one server (2003/2008) to another you can use the following steps
- 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
- Add DHCP Server Role
- Make sure to Authorize DHCP while installing the Role.
Import the DHCP database
- Copy the exported DHCP database file to the local hard disk of the Windows Server 2008-based computer.
- 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.
Thanks
ReplyDeletethanks buddy :-)
ReplyDeleteAwesome. Thank you so much for your time posting this info for me to find and save me some time. I really appreciate it.
ReplyDeleteThanks for posting this!
ReplyDeleteOh wow, how long did it take me to find this simple answer, thanks so much!
ReplyDeletethanks
ReplyDeleteVery helpful, cheers.
ReplyDeleteThanks
ReplyDeleteThanks :D
ReplyDeleteIt was really helpful at the right time. Thanks a ton
ReplyDeletethanks! you are awesome!
ReplyDeleteDude! Your a life saver. IF you don't care I would like to link this to my blog.
ReplyDeleteHi Daniel,
DeleteI am glad it was useful, please feel free to share.
-Bhojraj
Hi,
ReplyDeleteWhere I can find the Server option "Just delete the above two entries from Server options"?.
Thanks.
You will find the option in:
DeleteDHCP
-----IP4
---------Server Option
Thanks!
ReplyDeleteI know this is a little bit of an older thread nbut in my searches for Merging DHCP i have this scenario. I have a DHCP 2003 box and want to merge it with a 2008 r2 box. Only thing is the r2 box already has some reservations/scopes on it for a VOIP. I want to combine the both of them into one DHCP server without losing anything on the R2 server. Is that possible??? Thanks. If so does anyone have a Linky?
ReplyDeleteThanks!
ReplyDeletePerfect - thanks!
ReplyDeleteThank you! :-)
ReplyDeletedude, you're a genius! big thx
ReplyDeleteI am glad it helped you, good motivation to continue to record my findings which I have stopped for past two years. :)
DeleteObrigado, amigo!
ReplyDeleteThank you for sharing this, saved me some time
ReplyDeleteThank you for this information. I was able to follow this, although I did change this on the export not the import. We are rebuilding one of 3 servers, which each have unique networks on them. I removed option 6 from the server I'm rebuilding and exported that configuration. No error on import. Apparently the issue is if the settings exist in conflict, it will not replace an existing value. Thank you for the help in solving my problem.
ReplyDeleteThanks for sharing ! you just saved me at least 2 hours !
ReplyDeletesolution worked !
ReplyDeleteMany thanks
ReplyDeleteThanks so much.
ReplyDeleteVery helpful, thanks
ReplyDeletePerfect! Worked right away. Thanks!!!
ReplyDeleteNice blog. Saved my day.
ReplyDelete