Windows Server DHCP server upgrade

Source: Internet
Author: User

The big environment for this experiment is the DHCP server for Windows Server 2003, which is directly upgraded to Windows Server 2012, a solution that is more used in today's real-world production environments, and has previously done Server 2003-to-server 2012 Server upgrade is related, if there is a DHCP service on the original server, after the server upgrade, you also need to migrate the DHCP service to the new server, because Microsoft immediately stopped service to Server 2003, so many customers in the real production need to upgrade, Migrating services on Legacy servers is also one of the must-do projects.

First of all, the DHCP service is already built on Server 2003, and the service has data on it, and in the experimental environment, we randomly build two scopes.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6D/ED/ Wkiom1vvczidzn8yaahf8hsddg4982.jpg "" 842 "height=" 562 "/>

After the DHCP service is no problem, we want to export the configuration information of the old DHCP server, run the command netsh dhcp server dump > C: \ win2003dump.txt.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6D/E9/ Wkiol1vvdnbbylw0aaehxvofkja371.jpg "" 672 "height=" 182 "/>

After successful execution, we will see the exported generated file in the appropriate directory.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6D/E9/ Wkiol1vvdnej8nv-aas5hmfxoos839.jpg "" 971 "height=" 612 "/>

Next we will install the DHCP service for server 2012.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6D/E9/wKioL1VvDNeSkUy_ Aah_bvjhzvs515.jpg "" 929 "height=" 437 "/>

After installing the DHCP service do not have to do any configuration, directly export configuration information, run the command netsh dhcp server dump > C: \ win2012dump.txt.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6D/EE/ Wkiom1vvczzywqdeaadpn4i6nsm775.jpg "" 677 "height=" 186 "/>

You can also see the exported generated files in the corresponding directory.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6D/E9/ Wkiol1vvdniab8xvaavx2crv8sa138.jpg "" 1030 "height=" 614 "/>

Here we want to modify two export information, first create a. bat file on Server 2003, and edit it.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6D/EE/ Wkiom1vvcz2dqfxlaadvpm4idx4242.jpg "" 753 "height=" 416 "/>

Open Win2003dump.txt, copy one of the 5 lines, add netsh before each line, and replace add with delete.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6D/EE/ Wkiom1vvc0tgkoa0aaiyn3cvbfm780.jpg "" 980 "height=" "/>

Open Win2012dump.txt, copy one of the six rows, add netsh before each line, and change the IP or server name to the original DHCP server (Server 2003).

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6D/E9/ Wkiol1vvdodswq8taasfsd--sg4885.jpg "" 975 "height=" 289 "/>

After the modification is completed, we run the Dhcp.bat file on the original server, which is Server 2003, the system automatically modifies and prompts the command to succeed, then we re-export the configuration information and run the command on Server 2003

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

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6D/EE/ Wkiom1vvc0irfqc6aadbsxvmgsq401.jpg "" 665 "height=" 188 "/>

Copy the exported file to the new server, which is server 2012, and then import the information to run the command netsh dhcp server import c:\dhcp.txt.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6D/EE/ Wkiom1vvc0jhop-maacoirdqi24700.jpg "" 675 "height=" 184 "/>

Finally open the tool-dhcp to see if the DHCP information has been successfully imported.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6D/EE/ Wkiom1vvc0nzujt7aaicrge_lpu383.jpg "" 846 "height=" 489 "/>

After the import is successful, if you are in a domain environment, you need authorization to use DHCP on the new server normally, whereas the workgroup does not.

Windows Server DHCP server upgrade

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.