Windows Server, DHCP high availability

Source: Internet
Author: User
Tags failover get ip

the new features in the DHCP server for Windows Server 2012 are as follows:
1.DHCP Failover:This feature provides the ability to configure IP addresses and options for two DHCP servers on the same subnet or scope, provided that the DHCP service is continuously available to clients. Two DHCP servers replicate the lease information between them, allowing another server to assume responsibility for servicing the client in the entire subnet when one server is unavailable. You can also configure failover in a load-balanced configuration by using client requests that are distributed between two servers in a failover relationship.
2. Policy-based allocation:With policy-based allocation, the DHCP server evaluates DHCP requests based on policies that you define. Policies apply to specific scopes that have a processing order defined. Policies that apply to a scope can be configured at that scope or inherit from a server-wide policy. A client request can match multiple policies, and the policy can be associated with more than one address range.
3. For DHCPThe server's Windows Powershell:windows Server 2012 provides task-oriented Windows PowerShell cmdlets for DHCP server management. DHCP Server configuration operations are implemented in Windows Server 2012, just as cmdlets based on the Common Information Model (CIM). Windows PowerShell uses object pipelining to avoid the need to parse and manipulate text output. Windows PowerShell for DHCP servers includes 103 cmdlets that cover multiple aspects of DHCP server configuration and management.

The following are the main tests for DHCP failover functionality (only 2 failover capabilities are supported):
Test environment:
1 DC, DNS, DHCP Server2012 hosts
1 Domain-joined SERVER2012 hosts
1 Windows 8 clients
Topology:
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 606 "height=" 347 "id=" aimg_78872 "alt=" 1.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/12072410269d8892feea1e141c.jpg "/>
The steps are as follows:
1. Configuring DHCP1 (10.0.0.1)
Set the IP, raise the DC (slightly),
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 707 "height=" 389 "id=" aimg_78873 "alt=" 2.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/12072410342c121b45ddff05d7.jpg "/>
Installing DHCP Roles
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 744 "height=" "id=," "aimg_78874," alt= "3.jpg" src= "http://bbs.winos.cn/attachments/ Month_1207/1207241034f24e7c0063505b80.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "width=" 656 "height=" 420 "id=" aimg_78875 "alt=" 4.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/120724103583015e9db8e8bb40.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 744 "height=" 503 "id=" aimg_78876 "alt=" 5.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241038425c6f1dfe53fbab.jpg "/>
Authorizing DHCP
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 744 "height=" 386 "id=" aimg_78877 "alt=" 6.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241039da9a77d58846b6ea.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 725 "height=" 533 "id=" aimg_78878 "alt=" 7.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241041493260eb0ac3e136.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 744 "height=" 542 "id=" aimg_78879 "alt=" 8.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/12072410415f2d7fac9e9673b4.jpg "/>
2. Configuring DHCP2 (10.0.0.2)
Set IP, add domain, log in as domain administrator
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 623 "height=" 355 "id=" aimg_78880 "alt=" 9.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/120724105022130d259d8c291d.jpg "/>
Install DHCP roles,
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 526 "height=" 269 "id=" aimg_78881 "alt=" 10.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241051aac05a337c5deb8d.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "width=" 696 "height=" 483 "id=" aimg_78882 "alt=" 11.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241051d1f9c53307999e88.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 713 "height=" 405 "id=" aimg_78883 "alt=" 12.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/120724105330487962ed61dae3.jpg "/>
Authorized
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 744 "height=" 402 "id=" aimg_78884 "alt=" 13.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241054cb91e5fcf7c769f2.jpg "/>

Configuring Failover
In one of the DHCP scopes configured, I'm on DHCP1,
Open the DCP management tool first
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 744 "height=" 317 "id=" aimg_78885 "alt=" 14.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/12072410575b1d426e99393f2e.jpg "/>
Add a second DHCP server at the same time to come in for easy viewing,
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 539 "height=" 323 "id=" aimg_78886 "alt=" 15.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/12072411007c66fe75807df721.jpg "/>
New scopes, specifying scopes, gateways, DNS
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 640 "height=" 513 "id=" aimg_78887 "alt=" 16.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/12072411040872bd7bbf64f887.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" "height=" 459 "id=" aimg_78888 "alt=" 17.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241106288654652e142ba8.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 632 "height=" 444 "id=" aimg_78889 "alt=" 18.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241107d2777ea7d1186d5b.jpg "/>
The above is the basic environment, next is to configure the fault Xuan transfer detailed map:
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 744 "height=" 522 "id=" aimg_78890 "alt=" 19.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241112c541646cf0cd119d.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 602 "height=" 625 "id=" aimg_78891 "alt=" 20.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/12072411127069a59d926fcfbd.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 565 "height=" 449 "id=" aimg_78892 "alt=" 21.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241112a21f9e49e9381b01.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "width=" 585 "height=" 408 "id=" aimg_78893 "alt=" 22.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241112b53b0be819bc2587.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650 "width=" 585 "height=" "id=" aimg_78894 "alt=" 23.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241112693f557fe170ed6d.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 588 "height=" 607 "id=" aimg_78895 "alt=" 24.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241112676122fca0840e96.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 542 "height=" 425 "id=" aimg_78896 "alt=" 25.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/12072411121882d1019a1863c6.jpg "/>
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 560 "height=" 514 "id=" aimg_78897 "alt=" 26.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/12072411120387d52ecc17e240.jpg "/>
DHCP1 and DHCP2 are fully consistent with the data in the scope for setting up failover.
3. Client Test Results
Get IP from DHCP1:
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 675 "height=" 341 "id=" aimg_78898 "alt=" 27.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241117dbcdacb9452a929a.jpg "/>
To stop the DHCP1 service:
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "width=" 618 "height=" 424 "id=" aimg_78899 "alt=" 28.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/12072411179005d751b1cd2356.jpg "/>
Client releases, refreshes IP:
650) this.width=650; "src=" http://bbs.winos.cn/images/default/attachimg.gif "border=" 0 "alt=" attachimg.gif "/ >650) this.width=650; "Width=" 637 "height=" 337 "id=" aimg_78900 "alt=" 29.jpg "src=" http://bbs.winos.cn/attachments/ Month_1207/1207241117b610ebf8ed62b351.jpg "/>


Reference:
http://technet.microsoft.com/zh-cn/library/hh831385

This article is from "1+1=?" "Blog, be sure to keep this provenance http://lianggj.blog.51cto.com/176264/1437257

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.