Upgrade of the DHCP server for Windows server 2003-2012

Source: Internet
Author: User

Upgrade of the DHCP server for Windows server 2003-2012

Several previous articles introduced the construction of DHCP server, backup and restore, and the migration of DHCP server. So today I would like to introduce you or the relevant content, and will use the service backup and migration operations to implement the DHCP server upgrade.

As soon as Microsoft will stop providing support for Windows Server 2003 and Windows Server 2003 R2 on July 14 this year, the most important thing for companies to do is upgrade their servers to ensure data security.

The general ideas about this experiment are as follows:

(1) We want to install a Windows Server 2003 server, install the DHCP components, and configure.

(2) We export the configuration information of the DHCP server on the Win2003 machine.

(3) Install a new DHCP server on Windows Server R2.

(4) Export the configuration information on the new DHCP server.

(5) Modify the configuration file to re-consolidate the configuration information exported by the two new and old DHCP servers into one configuration file.

(6) Run the re-consolidated configuration file on the old DHCP server.

(7) Export all DHCP configuration information on Win2003 machine.

(8) Copy the generated dhcp.txt file to the new DHCP server and import the modified configuration information.

(9) Uninstall the old DHCP server.

In the following experiment, I will demonstrate the upgrade operation of the DHCP server in more detail:

Is the topology of this experiment, in order to ensure high availability of the new DHCP server, to avoid domain controller crashes we will deploy SERVER01 as an additional domain control for Server02. Server01, Server02, DC2003 are all in the domain environment, where server01, Server02 is a domain controller, DC2003 is added to the domain environment. After preparing the lab environment, we will start the DHCP upgrade operation.

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=" clip_image002 "border=" 0 "alt=" clip_ image002 "src=" http://s3.51cto.com/wyfs02/M02/6D/EB/wKiom1Vu3vqyp6k2AADBCI6FD3A011.jpg "height=" "/>"

First, we have a Windows Server2003 virtual machine ready with its IP configuration as shown:

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=" clip_image004 "border=" 0 "alt=" clip_ image004 "src=" http://s3.51cto.com/wyfs02/M00/6D/EB/wKiom1Vu3vuy761wAAI7uGgf5bU327.jpg "height=" 438 "/>

To install the DHCP component above, click Start-Control Panel-Add or Remove programs such as:

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=" clip_image005 "border=" 0 "alt=" clip_ image005 "src=" http://s3.51cto.com/wyfs02/M01/6D/EB/wKiom1Vu3vvgVlc7AAM07srD8iU488.jpg "height=" 698 "/>

Click Add/Remove Windows components, double-click Network Services (Note: If you directly check the network service will install all of the services), such as;

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=" clip_image006 "border=" 0 "alt=" clip_ image006 "src=" http://s3.51cto.com/wyfs02/M02/6D/EB/wKiom1Vu3vuR5fhjAAJZBKmjpHA378.jpg "height=" 494 "/>

Locate "Dynamic Host Configuration Protocol (DHCP)" To check it, click "OK",

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=" clip_image007 "border=" 0 "alt=" clip_ image007 "src=" http://s3.51cto.com/wyfs02/M00/6D/EB/wKiom1Vu3vzCvBS8AAKPoY5ejAU893.jpg "height=" 493 "/>

After completing the wizard, click Finish.

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=" clip_image008 "border=" 0 "alt=" clip_ image008 "src=" http://s3.51cto.com/wyfs02/M01/6D/EB/wKiom1Vu3vyBFa4KAAGSwIoX33Y426.jpg "height=" 497 "/>

At this point we can see the DHCP in the Start-management tool,

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=" clip_image010 "border=" 0 "alt=" clip_ image010 "src=" http://s3.51cto.com/wyfs02/M02/6D/EB/wKiom1Vu3vzSi27bAAJcxeA1y10002.jpg "height=" 560 "/>

After the DHCP installation is complete, we will create a new scope on the server and set the IP address range that can be leased to the client.

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=" clip_image012 "border=" 0 "alt=" clip_ image012 "src=" http://s3.51cto.com/wyfs02/M00/6D/EB/wKiom1Vu3vzxLPoVAAJCZzhrZU4355.jpg "height=" 540 "/>

I named this scope test (the name can be arbitrary according to my wishes), click "Next",

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=" clip_image013 "border=" 0 "alt=" clip_ image013 "src=" http://s3.51cto.com/wyfs02/M00/6D/EB/wKiom1Vu3v3yErrIAAFnm4w5nAA056.jpg "height=" 501 "/>

We will enter an IP address range for scope assignment, and the address range I assign is as follows:

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=" clip_image014 "border=" 0 "alt=" clip_ image014 "src=" http://s3.51cto.com/wyfs02/M02/6D/E7/wKioL1Vu4JjTFXcrAAGlLFdbFzo298.jpg "height=" 475 "/>

To exclude the scope of the DHCP server's IP address, click Next,

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=" clip_image016 "border=" 0 "alt=" clip_ image016 "src=" http://s3.51cto.com/wyfs02/M00/6D/E7/wKioL1Vu4JjzYqD7AAG-EcukHOs892.jpg "height=" 507 "/>

Add the gateways that specify this scope to be assigned.

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=" clip_image017 "border=" 0 "alt=" clip_ image017 "src=" http://s3.51cto.com/wyfs02/M01/6D/E7/wKioL1Vu4Jji2RmqAAFQsOrQJfQ109.jpg "height=" 464 "/>

Next, click "Yes I want to configure these options now" and click Next,

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=" clip_image018 "border=" 0 "alt=" clip_ image018 "src=" http://s3.51cto.com/wyfs02/M02/6D/E7/wKioL1Vu4JmS6f-AAAHYmXjLCAg982.jpg "height=" 461 "/>

After the configuration is complete, activate this scope, click "Yes, I want to activate this scope now",

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=" clip_image019 "border=" 0 "alt=" clip_ image019 "src=" http://s3.51cto.com/wyfs02/M00/6D/E7/wKioL1Vu4JniRb2wAAEub3qthM8698.jpg "height=" 467 "/>

When activation is complete, we close the New Scope Wizard, click Finish,

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=" clip_image020 "border=" 0 "alt=" clip_ image020 "src=" http://s3.51cto.com/wyfs02/M01/6D/E7/wKioL1Vu4JmStOLAAAF1YB4Mukw797.jpg "height=" 469 "/>

We perform a backup operation on the DHCP server, such as:

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=" clip_image022 "border=" 0 "alt=" clip_ image022 "src=" http://s3.51cto.com/wyfs02/M01/6D/EC/wKiom1Vu3v6SJpO-AAHv8sTDkLc671.jpg "height=" 458 "/>

We store the backup file on the local disk and create a new Dhcpbak folder, such as:

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=" clip_image024 "border=" 0 "alt=" clip_ image024 "src=" http://s3.51cto.com/wyfs02/M02/6D/EC/wKiom1Vu3v6iX73LAAHIR5SNP7o102.jpg "height=" 452 "/>

After backing up the DHCP server, we will then run the following command on the DC2003 command line "netsh dhcp server dump > c:\win2003dump.txt" To export the configuration information for the 2003 DHCP server. Such as:

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=" clip_image026 "border=" 0 "alt=" clip_ image026 "src=" http://s3.51cto.com/wyfs02/M00/6D/EC/wKiom1Vu3v-TtzqjAADueFATRMQ756.jpg "height=" 419 "/>

Below, we will install a new DHCP server on Server02, add roles and features, determine the server IP, click Next,

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=" clip_image028 "border=" 0 "alt=" clip_ image028 "src=" http://s3.51cto.com/wyfs02/M01/6D/E7/wKioL1Vu4JriiFqyAAFzIE5atCg850.jpg "height=" 441 "/>

Tick the GHCP server, click "Next",

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=" clip_image030 "border=" 0 "alt=" clip_ image030 "src=" http://s3.51cto.com/wyfs02/M02/6D/E7/wKioL1Vu4JrDi8S3AAGXY2vO1kU417.jpg "height=" 463 "/>

After you install the DHCP server, run the following command on the command line "netsh dhcp server dump > c:\win2012R2dump.txt" To export the configuration information for the 2012DHCP server. Such as:

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=" clip_image032 "border=" 0 "alt=" clip_ image032 "src=" http://s3.51cto.com/wyfs02/M02/6D/EC/wKiom1Vu3v_h-WS9AAECelbVSuc854.jpg "height=" 436 "/>

Next we come to the DC2003 and re-consolidate the DHCP server configuration file changes of 2003 and 2012 into the new Dhcp.bat file, respectively.

Copy the first five rows of data from the Win2003 file, add netsh before each line, and change the add to delete;

The first six rows of data in the win2012 file are copied, Netsh is added to each line, and the IP or computer name needs to be changed to the original DHCP server;

The contents of the consolidated Dhcp.bat file are as follows:

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=" clip_image034 "border=" 0 "alt=" clip_ image034 "src=" http://s3.51cto.com/wyfs02/M00/6D/EC/wKiom1Vu3wDRTNpkAAKMWlErFWQ187.jpg "height=" 281 "/>

We ran dhcp.bat on the DC2003, and the results were shown as:

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=" clip_image036 "border=" 0 "alt=" clip_ image036 "src=" http://s3.51cto.com/wyfs02/M01/6D/EC/wKiom1Vu3wCB_nYzAAIvUzUSrOI792.jpg "height=" 426 "/>

Next we run the "netsh dhcp server export c:\dhcp.txt All" command to export all of the DHCP configuration information. Such as:

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=" clip_image038 "border=" 0 "alt=" clip_ image038 "src=" http://s3.51cto.com/wyfs02/M02/6D/EC/wKiom1Vu3wDTwFPEAAD0H69JhkY530.jpg "height=" 423 "/>

We can see that the exported configuration file already exists, and we want to copy this configuration file to the new DHCP service, which is Server02, as

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=" clip_image040 "border=" 0 "alt=" clip_ image040 "src=" http://s3.51cto.com/wyfs02/M00/6D/EC/wKiom1Vu3wCAcbaBAAF8CJgd0L4691.jpg "height=" 305 "/>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=" clip_image042 "border=" 0 "alt=" clip_image042 "src=" Http://s3.51cto.com/wyfs02/M01/6D/E7/wKioL1Vu4JzDMrAQAAEI9t3xhLo329.jpg "height=" 245 "/>

After replication succeeds, we run the Netsh dhcp server import c:\dhcp.txt command on the new DHCP server and import the modified configuration information on Server02. Such as:

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=" clip_image044 "border=" 0 "alt=" clip_ image044 "src=" http://s3.51cto.com/wyfs02/M02/6D/E7/wKioL1Vu4Jyj_EOhAADu784sGVc147.jpg "height=" 423 "/>

Here we come to Server Manager-tool--dhcp, such as:

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=" clip_image046 "border=" 0 "alt=" clip_ image046 "src=" http://s3.51cto.com/wyfs02/M02/6D/EC/wKiom1Vu3wHj4unHAAGKxYUzWKk711.jpg "height=" 384 "/>

In Active Directory, the new DHCP server is authorized for operation, and the new DHCP server works.

We want to authorize the new DHCP server. (Note: The DHCP server can be authorized only on domain control),

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=" clip_image048 "border=" 0 "alt=" clip_ image048 "src=" http://s3.51cto.com/wyfs02/M00/6D/EC/wKiom1Vu3wHwRVlHAAF2qSf3Xok201.jpg "height=" "/>"

Next, click Refresh this server, you can see that the DHCP server has been able to work properly. Such as:

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=" clip_image050 "border=" 0 "alt=" clip_ image050 "src=" http://s3.51cto.com/wyfs02/M01/6D/E7/wKioL1Vu4J3jAdJ3AAFGij1yiFg009.jpg "height=" 448 "/>

Next is the last step, in DC2003 the old DHCP server on the DHCP component Delete, click "OK", at this time also really completed the DHCP server from 2003 to 2012 upgrade. For example:

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=" clip_image051 "border=" 0 "alt=" clip_ image051 "src=" http://s3.51cto.com/wyfs02/M02/6D/E7/wKioL1Vu4J2Dcrh_AAKQBe7M7iY100.jpg "height="/>

The above experiment is that we will upgrade the DHCP server from 2003 to 2012 of all processes and procedures, because the picture more space is also longer, thank you for your patience to watch, thank you, but also hope that we can put forward valuable comments or suggestions. ?

Upgrade of the DHCP server for Windows server 2003-2012

Related Article

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.