How to Configuring and Installing High Availability of #DHCP using Windows Server 2012 #ws2012   5 comments

How to Configuring and Installing High Availability of DHCP using Windows Server 2012

DHCP is often the one thing a IT Pro just runs as next, next, I agree,

But there is this big question Did you Know ?

DHCP failover in Windows Server 2012 enables administrators to deploy a highly resilient DHCP service to support a large enterprise without the challenges of the options discussed earlier. The main goals of the feature are the following:

  • Provide DHCP service availability at all times on the enterprise network.
  • If a DHCP server is no longer reachable, the DHCP client is able to extend the lease on its current IP address by contacting another DHCP server on the enterprise network.

The DHCP server failover feature provides the ability to have two DHCP servers provide IP addresses and option configuration to the same subnet or scope, providing for continuous availability of DHCP service to clients. The two DHCP servers replicate lease information between them, allowing one server to assume responsibility for servicing of clients for the entire subnet when the other server is unavailable. It is also possible to configure failover in a load-balancing configuration with client requests distributed between the two servers in a failover relationship.

DHCP failover in Windows Server 2012 provides support for a maximum of two DHCP servers, and the failover relationship is limited to IPv4 scopes and subnets. Network nodes using Internet Protocol version 6 (IPv6) typically determine their own IPv6 address using stateless IP auto configuration. In this mode, the DHCP server delivers only the DHCP option configuration, and the server does not maintain any lease state information. A high availability deployment for stateless DHCPv6 is possible by simply setting up two servers with identical option configuration. Even in a stateful DHCPv6 deployment, the scopes do not run under high address utilization, which makes split scope a viable solution for high availability.

So how do we start go to the add roles and add DHCP

 

clip_image002 The DCHP Role is now installed.

clip_image003[1] But Sure you can setup this with powershell easy and fast.

Add-WindowsFeature dhcp,rsat-dhcp

For the command line users, DHCP PowerShell provides the following PowerShell cmdlets for setting up and monitoring failover:

  • Add–DhcpServerv4Failover  – Creates a new IPv4 failover relationship to a DHCP server
  • Add–DhcpServerv4FailoverScope   – Adds the specified scope(s) to an existing failover relationship
  • Get–DhcpServerv4Failover   – Gets the failover relationships configured on the server
  • Remove–DhcpServerv4Failover   – Deletes the specified failover relationship(s)
  • Remove–DhcpServerv4FailoverScope – Removes the specified scopes from the failover relationship
  • Set–DhcpServerv4Failover   – Modifies the properties of an existing failover relationship
  • Invoke-DhcpServerv4FailoverReplication – Replicates scope configuration between failover partner servers

In powershell the installation of the two options is easy

powershell Add-WindowsFeature RSAT-DHCP

powershell Add-WindowsFeature DHCP

or both options at the same time.

powershell Add-WindowsFeature dhcp,rsat-dhcp

clip_image005 now that the roles are installed we can start.

Remember I use two servers in this demo and on both you should install the roles !

image  clip_image009 

The first two things I would do is change the database backup path to your location or just leave it to the designed location.

The Second part is change the binding of the DHCP server if you have multiple IP’s on the machine you should use only the IP address that the DHCP should use.

 

clip_image013       image

Configuring the Failover

the following example, two DHCP servers simultaneously provide IP addressing to clients on a single subnet.

Load sharing single subnet

 

clip_image015 clip_image017

If this step fails you need to install the dhcp role on the partner server

image

clip_image021 

 

 

You can select the mode that you want to use load balance or hot standby

and you can adjust the scope as you desire

clip_image023 I do enable the authentication and use a shared secret

 

clip_image025  clip_image027

The wizzard does the configuration and you are done. the config is done on both servers.

clip_image029

clip_image031

in the failover properties you can see what partner there is and made some adjustments

press edit all the options are here in one screen to adjust the dhcp server

clip_image033

You can easy change from load balance mode to hot standby

clip_image035 If you want to make use of dynamic updates you need to configure a service/user account that can register items in the DNS server.

Most forgotten item !

in the advanced pane you can change this.

clip_image037 clip_image039

clip_image041

If you change the configuration it needs to replicate the config

clip_image043

Now we are all set ready to configure the scope and yes you need to authorize the server and activate the scope

clip_image002[4] clip_image004

clip_image006 clip_image008

The scopes on both servers

image  clip_image049

Go to the replication relationship and you can see the configuration.

 

But is is just two dhcp servers and how does the cluster fit in ?

still there are two servers to manage and it can be in two data centers but what if you already have a fine datacenter and you can use clustering.

 

Clustered DHCP servers

 

In this case I will not show you how to create a cluster. you can see this in my other blog posts.

clip_image051 clip_image053

Start up the failover manager and add roles and select the dhcp server and the wizard installs the dhcp role n the cluster.

you will need a dhcp server name and IP and a disk that holds the DHCP database.

clip_image053[1]

 

Easy setup and easy to manage. there are multiple configurations for this and can be just the way you want this

Ensuring High Availability of DHCP using Windows Server 2012 DHCP Failover

http://blogs.technet.com/b/teamdhcp/archive/2012/06/28/ensuring-high-availability-of-dhcp-using-windows-server-2012-dhcp-failover.aspx?ocid=aff-n-we-loc–ITPRO40922&WT.mc_id=aff-n-we-loc–ITPRO40922

Step-by-Step: Configure DHCP for Failover

http://technet.microsoft.com/en-us/library/hh831385.aspx?ocid=aff-n-we-loc–ITPRO40922&WT.mc_id=aff-n-we-loc–ITPRO40922

Happy giving IP’s

Posted February 19, 2013 by Robert Smit [MVP] in DHCP Cluster, Windows Server 2012

Tagged with

5 responses to “How to Configuring and Installing High Availability of #DHCP using Windows Server 2012 #ws2012

Subscribe to comments with RSS.

  1. Pingback: Week of February 25: New from Windows Server/System Center MVPs - Server and Cloud Partner and Customer Solutions Team Blog - Site Home - TechNet Blogs

  2. Howdy! Do you know if they make any plugins to assist
    with SEO? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains.
    If you know of any please share. Kudos!

  3. Howdy! Do you know if they make any plugins to help with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing
    very good success. If you know of any please share. Many thanks!

  4. Pingback: Microsoft server 2012 , Is it enough for my business?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

  • Now Reading

    Microsoft Windows Server vNext
  • Follow

    Get every new post delivered to your Inbox.

    Join 1,434 other followers

    %d bloggers like this: