windows2003中文版,windows2008R2英文版,dhcp服务器迁移

1)windows2003

netshdhcpserverdump>c:\exportdhcp_win2003.txt

2)windows2008R2

netshdhcpserverdump>c:\importdhcp_win2008r2.txt

3)查看windows2003dhcp服务器导出的文件exportdhcp_win2003.txt

有以下内容:

-----------------------------------

DhcpServer172.17.88.103AddClass"默认路由和远程访问类别""远程访问客户端的用户类别"525241532e4d6963726f736f66740b

DhcpServer172.17.88.103AddClass"默认BOOTP的类别""BOOTP客户端的用户类别"424f4f54502e4d6963726f736f66740b

DhcpServer172.17.88.103AddClass"MicrosoftWindows2000选项""Windows2000客户端的Microsoft供应商特定选项"4d53465420352e301b

DhcpServer172.17.88.103AddClass"MicrosoftWindows98选项""Windows98客户端的Microsoft供应商特定选项"4d5346542039381b

DhcpServer172.17.88.103AddClass"Microsoft选项""适用于Windows98和Windows2000客户端的Microsoft供应商特定选项"4d5346541b

------------------------------------

4)查看windows2008R2dhcp服务器导出的文件importdhcp_win2008r2.txt

有以下内容:

-内容A---------------------------------------------

#=====================================

#AddClasses

#=====================================

DhcpServer\\WIN-8A0G94PHHBTAddClass"DefaultRoutingandRemoteAccessClass""Userclassforremoteaccessclients"525241532e4d6963726f736f66740b

DhcpServer\\WIN-8A0G94PHHBTAddClass"DefaultNetworkAccessProtectionClass""DefaultspecialuserclassforRestrictedAccessclients"4d5346542051756172616e74696e650b

DhcpServer\\WIN-8A0G94PHHBTAddClass"DefaultBOOTPClass""UserclassforBOOTPClients"424f4f54502e4d6963726f736f66740b

DhcpServer\\WIN-8A0G94PHHBTAddClass"MicrosoftWindows2000Options""Microsoftvendor-specificoptionsforWindows2000andaboveClients"4d53465420352e301b

DhcpServer\\WIN-8A0G94PHHBTAddClass"MicrosoftWindows98Options""Microsoftvendor-specificoptionsforWindows98Clients"4d5346542039381b

DhcpServer\\WIN-8A0G94PHHBTAddClass"MicrosoftOptions""Microsoftvendor-specificoptionsapplicabletoallWindowsClients"4d5346541b

#=====================================

#AddClassesEnd

#=====================================

-----------------------------------------------

5)使用以下命令行在windows2003dhcp服务器上删除注册类:

---------------------------------------------------------

netshDhcpServer172.17.88.103deleteClass"默认路由和远程访问类别""远程访问客户端的用户类别"525241532e4d6963726f736f66740b

netshDhcpServer172.17.88.103deleteClass"默认BOOTP的类别""BOOTP客户端的用户类别"424f4f54502e4d6963726f736f66740b

netshDhcpServer172.17.88.103deleteClass"MicrosoftWindows2000选项""Windows2000客户端的Microsoft供应商特定选项"4d53465420352e301b

netshDhcpServer172.17.88.103deleteClass"MicrosoftWindows98选项""Windows98客户端的Microsoft供应商特定选项"4d5346542039381b

netshDhcpServer172.17.88.103deleteClass"Microsoft选项""适用于Windows98和Windows2000客户端的Microsoft供应商特定选项"4d5346541b

---------------------------------------------------------

6)copy出windows2008R2dhcp服务器导出的文件相应注册类内容,并修改主机或ip名称以适合windows2003服务器使用

-内容B--------------------------------------------------

netshDhcpServer172.17.88.103AddClass"DefaultRoutingandRemoteAccessClass""Userclassforremoteaccessclients"525241532e4d6963726f736f66740b

netshDhcpServer172.17.88.103AddClass"DefaultNetworkAccessProtectionClass""DefaultspecialuserclassforRestrictedAccessclients"4d5346542051756172616e74696e650b

netshDhcpServer172.17.88.103AddClass"DefaultBOOTPClass""UserclassforBOOTPClients"424f4f54502e4d6963726f736f66740b

netshDhcpServer172.17.88.103AddClass"MicrosoftWindows2000Options""Microsoftvendor-specificoptionsforWindows2000andaboveClients"4d53465420352e301b

netshDhcpServer172.17.88.103AddClass"MicrosoftWindows98Options""Microsoftvendor-specificoptionsforWindows98Clients"4d5346542039381b

netshDhcpServer172.17.88.103AddClass"MicrosoftOptions""Microsoftvendor-specificoptionsapplicabletoallWindowsClients"4d5346541b

------------------------------------------------------

7)在windows2003服务器上以cmd方式运行内容B,在windows2003上注册修改后windows2008R2的类。

使用命令netshdhcpserverdump检查是否新类被注册在windows2003的服务器上!

8)在Windows2003服务器上运行:Netshdhcpserverexportc:\dhcp.txtall

9)在windows2008R2服务器上停止windows2008R2的dhcp服务。

10)在windows2008R2服务器下删除windows\system32\dhcp目录下的DHCP.mdb数据库。

11)在windows2008R2服务器上启动windows2008R2的dhcp服务。12)在windows2008R2服务器下运行:netsh dhcp server import c:\dhcp.txt

导入到2008R2后,需要检查内容是否完整,需要手工补全!(我迁移时发现,路由、dns、ip地址范围、排除ip均有问题,不过大框可以迁移过来,避免手工量过大)

相关推荐