DHCP Load Balance Cluster on Windows Server 2012 R2

Tổng quan

In giant environments a single DHCP server might develop into overwhelmed by the quantity of shopper DHCP lease requests it receives. Load balancing your Windows DHCP server permits you to enhance efficiency and availability by spreading the load throughout a number of servers.

When a load stability cluster is created, a partnership between two servers is outlined. Each server is ready to learn and write to the DHCP scope’s database. Any modifications are then replicated to the opposite companion to insure consistency.

Clustering is completed on the scope degree, permitting us to make use of one server, ví dụ, as a cluster companion with a number of distant servers. We can selectively select to cluster all scopes out there on a server or a number of scopes.

This step-by-step tutorial will information you thru configuring a DHCP load stability cluster on Windows Server 2012 R2.

Yêu cầu

  • An present Active Directory Domain.
  • Two Windows Server 2012 R2 servers which might be area members.

Install the DHCP Server Role

The DHCP server position have to be put in on each servers earlier than the cluster may be created.

  1. Log onto the primary server with an account that has administrative rights.
  2. Launch the Server Manager console.
  3. In the highest-proper nook, bấm vào quản lý.

    Click the Manage link in Server Manager

  4. Nhấp chuột Add Roles and Features.
  5. On the Before You Begin web page, bấm vào Kế tiếp.
  6. On the Select set up sort trưng bày, guarantee Role-based mostly or function-based mostly set up is chosen, after which click on Kế tiếp.
  7. On the Select vacation spot server display, guarantee Select a server from the server pool is chosen, choose the native server within the Server Pool record, after which click on Kế tiếp.
  8. On the Select server roles trưng bày, guarantee DHCP Server is checked. A dialog field referred to as Add Roles and Features Wizard will seem, if dependencies exist. Nhấp chuột Add Feature to make sure all dependent roles or options are put in along with the DHCP server position.
  9. Nhấp chuột Kế tiếp.
  10. On the Select options trưng bày, bấm vào Kế tiếp.
  11. On the DHCP Server trưng bày, bấm vào Kế tiếp.
  12. On the Confirmation display, bấm vào cài đặt, dựng lên.
  13. After the set up course of completes, there ought to be a hyperlink named Complete DHCP Configuration. Click it to start out the DHCP Server Active Directory authorization course of. Một DHCP server have to be approved earlier than it could actually assign DHCP leases.
  14. On the Description display of the DHCP Post-Install Configuration wizard, bấm vào Kế tiếp.
  15. On the Authorization display of the DHCP Post-Install Configuration wizard, choose the suitable choice for choosing a consumer with area admin rights. This is required to authorize the server. When executed, bấm vào Commit.
  16. On the Tóm lược trưng bày, evaluation the output to make sure the authorization was profitable. Click Close.
  17. On the Results display of the Add Roles and Features Wizard, bấm vào Close.
  18. Log onto the second server and repeat steps P by way of 17.

Create a DHCP Scope

The cluster can't be created until a DHCP scope exists. Let’s create a easy scope to start out.

  1. Log onto the primary DHCP server.
  2. Launch the Server Manager console.
  3. On the highest-proper, click on Tools.
  4. Select DHCP from the Tools drop-down menu.
  5. From the DHCP tree on the left of the console, broaden the node named after the server.
  6. Select the IPv4 node by clicking it.
  7. Right-click on the IPv4 node after which choose New Scope.
  8. Go by means of the New Scope Wizard to create the brand new scope.

Create the Load Balance Cluster

  1. From inside the DHCP console, proper-click on the IPv4 node of the DHCP server tree on the left-aspect.

    máy chủ Windows 2012 R2 DHCP Console

  2. Nhấp chuột Configure Failover from the IPv4 context menu.
  3. Khi mà Configure Failover dialog field seems, choose from the obtainable scopes that you want within the cluster. If you need to embrace all of them, verify the Select All field.DHCP Configure Cluster Dialog Box
  4. Nhấp chuột Kế tiếp.
  5. Click Add Server so as to add the DHCP associate server. Ngoài ra, you possibly can enter its IP tackle or absolutely-certified area identify into the textual content subject.
  6. Click Next.
  7. On the Create a brand new failover relationship display, give the cluster relationship a reputation.

    Configure Cluster - DHCP Load Balance

  8. Set the Maximum Client Lead Time worth utilizing hours and minutes.
  9. From the Chế độ drop-down menu, chọn Load stability.
  10. Adjust the Load Balance Percentage values of the 2 DHCP servers. The default creates a 50/50 stability between each nodes.
  11. Ensure Enable Message Authentication is checked.
  12. bên trong Shared Secret textual content subject, enter a posh password that might be utilized by the servers. This ensures that solely servers who know the password can talk within the cluster.
  13. Nhấp chuột Kế tiếp.
  14. Verify your settings, after which click on Finish.
  15. Log onto the second DHCP server.
  16. Launch the DHCP console and confirm that the scope we created on the primary DHCP server has been replicated to the second server.

Creating a DHCP Failover Cluster utilizing PowerShell

We can accomplish the identical process above utilizing PowerShell. This could be very helpful when administering the servers remotely from a shopper pc.

  1. Launch PowerShell.
  2. Use the Add-DhcpServerv4Failover cmdlet. The instance under creates a partnership (cluster) referred to as Toronto-Loadbalance utilizing servers WS12-DHCP01 and WS12-DHCP02.
    Add-DhcpServerv4Failover -ComputerName ws12-dhcp01.serverlab.intra -Name Toronto-Loadbalance -PartnerServer ws12-dhcp02.serverlab.intra -ScopeId 172.30.zero.zero -LoadBalancePercent 50 -MaxClientLeadTime P:00:00
  3. Verify the cluster’s configuration utilizing the Get-DhcpServerv4Failover cmdlet.
    Name                : Toronto-Loadbalance
    PartnerServer       : ws12-dhcp02.corp.serverlab.intra
    Mode                : LoadBalance
    LoadBalancePercent  : 50
    ServerRole          :
    ReservePercent      :
    MaxClientLeadTime   : 02:00:00
    StateSwitchInterval :
    State               : Normal
    ScopeId             :
    AutoStateTransition : False
    EnableAuth          : True

Để lại một trả lời

Trang web này sử dụng Akismet để giảm rác. Tìm hiểu cách dữ liệu bình luận của bạn được xử lý.

Chúng tôi sử dụng cookie để cung cấp cho bạn những trải nghiệm trực tuyến tốt nhất. Bằng cách đồng ý bạn chấp nhận việc sử dụng cookie theo chính sách cookie của chúng tôi.