Step 3 Configure a Load-Balanced Cluster | Microsoft Learn

After preparing servers for the cluster, configure load-balancing on the single server, configure the required certificates, and deploy the cluster.

| Task | Description |

| --- | --- |

| 3.1 Configure the IPv6 prefix | If the corporate environment is IPv4+IPv6, or IPv6-only, then on the single Remote Access server, ensure that the IPv6 prefix assigned to DirectAccess client computers is large enough to cover all of the servers in your cluster. |

| 3.2 Enable load balancing | Enable load balancing on the single Remote Access server. |

| 3.3 Install the IP-HTTPS certificate | Each server in the cluster requires a server certificate to authenticate IP-HTTPS connection. Export the IP-HTTPS certificate from the single Remote Access server and deploy it on each server you will add to the cluster. This is required only if using non-self-signed certificates. |

| 3.4 Install the network location server certificate | If the single server has the network location server deployed locally, then you will need to deploy the network location server certificate on each server in the cluster. If the network location server is hosted on an external server, a certificate on each server is not required. This is required only if using non-self-signed certificates. |

| 3.5 Add servers to the cluster | Add all servers to the cluster. Remote Access must not be configured on the servers to be added. |

| 3.6 Remove a server from the cluster | Instructions for removing a server from the cluster. |

| 3.7 Disable load balancing | Instructions for disabling load balancing. |

Note

The IP address that is selected for the DIP must not be in use on the network adapters of the first Remote Access server in the cluster. Beginning the DirectAccess deployment with both VIP and DIP added to the network adapter will result in failure.

Note

Make sure not to use a DIP that is already present on another machine on the network.

3.1 Configure the IPv6 prefix

To configure the prefix

  1. On the Remote Access server, click Start, and then click Remote Access Management. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.

  2. In the Remote Access Management Console, click Configuration.

  3. In the middle pane of the console, in the Step 2 DirectAccess Server area, click Edit.

  4. Click Prefix Configuration. On the Prefix Configuration page, in IPv6 prefix assigned to DirectAccess client computers, enter the IPv6 prefix used for DirectAccess client computers with a subnet length of 59, for example, 2001:db8:1:1000::/59. If VPN were also enabled with IPv6, then an IPv6 prefix would be displayed, and the subnet length would need to be changed to 59. Click Next.

  5. In the middle pane of the console, click Finish.

  6. On the Remote Access Review dialog box, review the configuration settings, and then click Apply. On the Applying Remote Access Setup Wizard Settings dialog box, click Close.

3.2 Enable load balancing

To enable load balancing

  1. On the configured DirectAccess server, click Start, and then click Remote Access Management. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.

  2. In the Remote Access Management console, in the left pane, click Configuration, and then in the Tasks pane, click Enable Load Balancing.

  3. In the Enable Load Balancing Wizard, click Next.

  4. Depending on what you chose in planning steps:

  5. Windows NLB: On the Load Balancing Method page, click Use Windows Network Load Balancing (NLB), and then click Next.

  6. External load balancer: On the Load Balancing Method page, click Use an external load balancer, and then click Next.

  7. In a single network adapter deployment, on the Dedicated IP Addresses page, do the following, and then click Next:

  8. In the IPv4 address box, enter the new IPv4 address for this Remote Access server; the current IPv4 address will be the virtual IP address (VIP) of the load-balanced cluster. In the Subnet mask box, enter the subnet mask.

  9. If the corporate environment is native IPv6, then in the IPv6 address box, enter the new IPv6 address for this Remote Access server; the current IPv6 address will be the VIP of the load-balanced cluster. In the Subnet prefix length box, enter the subnet prefix length.

  10. In a two network adapter deployment, on the External Dedicated IP Addresses page, do the following, and then click Next:

  11. In the IPv4 address box, enter the new external IPv4 address for this Remote Access server; the current IPv4 address will be the virtual IP address (VIP) of the load balancing cluster. In the Subnet mask box, enter the subnet mask.

  12. If there are currently native IPv6 addresses configured on the internet-facing network adapter of the Remote Access server, in the IPv6 address box, enter the new external IPv6 address for this Remote Access server; the current IPv6 address will be the VIP of the load balancing cluster. In the Subnet prefix length box, enter the subnet prefix length.

  13. In a two network adapter deployment, on the Internal Dedicated IP Addresses page, do the following, and then click Next:

  14. In the IPv4 address box, enter the new internal IPv4 address for this Remote Access server; the current IPv4 address will be the VIP of the load balancing cluster. In the Subnet mask box, enter the subnet mask.

  15. If the corporate environment is native IPv6, then in the IPv6 address box, enter the new internal IPv6 address for this Remote Access server; the current IPv6 address will be the VIP of the load balancing cluster. In the Subnet prefix length box, enter the subnet prefix length.

  16. On the Summary page, click Commit.

  17. On the Enable Load Balancing dialog box, click Close.

  18. In the Enable Load Balancing Wizard, click Close.

Note

If external load balancing is being used, note the Virtual IPs and provide them as on the external load balancers.

Windows PowerShellWindows PowerShell equivalent commands

The following Windows PowerShell cmdlet or cmdlets perform the same function as the preceding procedure. Enter each cmdlet on a single line, even though they may appear word-wrapped across several lines here because of formatting constraints.

If you chose to use Windows NLB in the planning steps, then execute the following:


Set-RemoteAccessLoadBalancer -InternetDedicatedIPAddress "2.1.1.20/255.255.255.0" -InternalDedicatedIPAddress @("10.1.1.30/255.255.255.0","3ffe::20/64") -InternetVirtualIPAddress @("2.1.1.1/255.255.255.0","2.1.1.2/255.255.255.0") -InternalVirtualIPAddress @("10.1.1.2/255.255.255.0","3ffe::2/64")

If you chose to use an external load balancer in the planning steps: then execute the following:


Set-RemoteAccessLoadBalancer -InternetDedicatedIPAddress "2.1.1.20/255.255.255.0" -InternalDedicatedIPAddress @("10.1.1.30/255.255.255.0","3ffe::20/64") -UseThirdPrtyLoadBalancer

Note

It is recommended to not include changes to load-balancer settings with changes to any other settings, if you are using staging GPOs. Any changes to load-balancer settings must be applied first and then other configuration changes should be made. Also, after configuring load-balancer on a new DirectAccess server, please allow some time for the IP changes to be applied and replicated across the DNS servers in the enterprise, before you change other DirectAccess settings related to the new cluster.

3.3 Install the IP-HTTPS certificate

Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure.

To install the IP-HTTPS certificate

  1. On the configured Remote Access server, click Start, type mmc and press ENTER. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.

  2. In the MMC console, on the File menu, click Add/Remove Snap-in.

  3. On the Add or Remove Snap-ins dialog box, click Certificates, click Add, click Computer account, click Next, click Finish, and then click OK.

  4. In the left pane of the console, navigate to Certificates (Local Computer)\Personal\Certificates. Right-click the IP-HTTPS certificate, point to All Tasks and click Export.

  5. On the Welcome to the Certificate Export Wizard page, click Next.

  6. On the Export Private Key page, click Yes, export the private key, and then click Next.

  7. On the Export File Format page, click Personal Information Exchange - PKCS #12 (.PFX), and then click Next.

  8. On the Security page, select the Password check box, enter a password in the Password box and confirm the password, and then click Next.

  9. On the File to Export page, enter a name for the certificate file and save it to the desktop, and then click Next.

  10. On the Completing the Certificate Export Wizard page, click Finish.

  11. On the Certificate Export Wizard dialog box, click OK.

  12. Copy the certificate to all servers that you want to be cluster members.

  13. On the new DirectAccess server, click Start, type mmc and press ENTER. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.

  14. In the MMC console, on the File menu, click Add/Remove Snap-in.

  15. On the Add or Remove Snap-ins dialog box, click Certificates, click Add, click Computer account, click Next, click Finish, and then click OK.

  16. In the left pane of the console, navigate to Certificates (Local Computer)\Personal\Certificates. Right click the Certificates node, point to All Tasks, and then click Import.

  17. On the Welcome to the Certificate Import Wizard page, click Next.

  18. On the File to Import page, click Browse to locate the certificate. Select the certificate and then click Next.