Step 3 Configure a Load-Balanced Cluster·续
-
On the Private key protection page, in the Password box, type the password, and then click Next.
-
On the Certificate Store page, click Next.
-
On the Completing the Certificate Import Wizard page, click Finish.
-
On the Certificate Import Wizard dialog box, click OK.
-
Repeat steps 13-22 on all servers that you want to be cluster members.
3.4 Install the network location server certificate
Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure.
To install a certificate for network location
-
On the Remote Access server, click Start, type mmc, and then press ENTER. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
-
Click File, and then click Add/Remove Snap-ins.
-
Click Certificates, click Add, click Computer account, click Next, click Local computer, click Finish, and then click OK.
-
In the console tree of the Certificates snap-in, open Certificates (Local Computer)\Personal\Certificates.
-
Right-click Certificates, point to All Tasks, and then click Request New Certificate.
-
Click Next twice.
-
On the Request Certificates page, click the Web Server certificate template, and then click More information is required to enroll for this certificate.
If the Web Server certificate template does not appear, ensure that the Remote Access server computer account has enroll permissions for the Web Server certificate template. For more information, see Configure Permissions on the Web Server Certificate Template.
-
On the Subject tab of the Certificate Properties dialog box, in Subject name, for Type, select Common name.
-
In Value, type the fully qualified domain name (FQDN) for the intranet name of the network location server website (for example, nls.corp.contoso.com), and then click Add.
-
Click OK, click Enroll, and then click Finish.
-
In the details pane of the Certificates snap-in, verify that a new certificate with the FQDN was enrolled with Intended Purposes of Server Authentication.
-
Right-click the certificate, and then click Properties.
-
In Friendly Name, type Network Location Certificate, and then click OK.
Tip
Steps 12 and 13 are optional, but make it easier for you to select the certificate for network location when configuring Remote Access.
- Repeat this procedure on all servers that you want to be cluster members.
3.5 Add servers to the cluster
To add servers to the cluster
-
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.
-
In the Remote Access Management Console, click Configuration. In the Tasks pane, under Load Balanced Cluster, click Add or Remove Servers.
-
On the Add or Remove Servers dialog box, click Add Server.
-
On the Add a Server dialog box, on the Select Server page, enter the name of the additional Remote Access server, and then click Next.
-
On the Network Adapters page, do one the following:
-
If you are deploying a topology with two network adapters, in External adapter, select the adapter that is connected to the external network. In Internal adapter, select the adapter that is connected to the internal network.
-
If you are deploying a topology with one network adapter, in Network adapter, select the adapter that is connected to the internal network.
-
On the Network Adapters page, in Select the certificate used to authenticate IP-HTTPS connections, click Browse to locate and select the IP-HTTPS certificate, and then click Next.
-
On the Network Location Server page, click Browse to select the certificate for the network location server website running on the Remote Access server, and then click Next.
Note
The Network Location Server page appears only when the network location server website is running on the Remote Access server.
Note
If VPN were also configured on the Remote Access server, then you would be asked to add the VPN IP address pool information at this point.
-
On the Summary page, click Add.
-
On the Completion page, click Close.
-
Repeat this procedure for all Remote Access servers to be added to the cluster.
-
On the Add or Remove Servers dialog box, click Commit.
-
On the Adding and Removing Servers dialog box, click Close.
Windows 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.
Add-RemoteAccessLoadBalancerNode -RemoteAccessServer <server name>
Note
If VPN has not been enabled in a load balanced cluster, you should not provide any VPN address ranges when adding a new server to the cluster using Windows PowerShell cmdlets. If you have done so by mistake, remove the server from the cluster, and add it again to the cluster without specifying the VPN address ranges.
3.6 Remove a server from the cluster
To remove a server from the cluster
-
On the configured 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.
-
In the Remote Access Management Console, click Configuration. In the Tasks pane, under Load Balanced Cluster, click Add or Remove Servers.
-
On the Add or Remove Servers dialog box, select the Remote Access server you want to remove, and then click Remove Server.
-
On the Remove Server Warning dialog box, make sure you chose the right server, and then click OK.
-
Repeat this procedure for all Remote Access servers to be removed from the cluster.
-
On the Add or Remove Servers dialog box, click Commit.
-
On the Adding and Removing Servers dialog box, click Close.
Windows 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.
Remove-RemoteAccessLoadBalancerNode -RemoteAccessServer <server name>
3.7 Disable load balancing
Do this step using Windows PowerShell
To disable load balancing
-
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.
-
In the Remote Access Management Console, click Configuration. In the Tasks pane, under Load Balanced Cluster, click Disable Load Balancing.
-
On the Disable Load Balancing dialog box, click Ok.
-
On the Disable Load Balancing dialog box, click Close.
Windows 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.
set-RemoteAccessLoadBalancer -disable
Disabling load balancing will remove Remote Access settings and NLB settings (if configured) from all servers except the server from which it is being executed. On this Remote Access server, NLB settings will be removed (if it was configured) but Remote Access settings will remain.
Clicking Remove configuration settings will remove Remote Access and NLB (if configured) from all servers in the deployment.
Note
-
If Remote Access is uninstalled when load balancing is deployed, all the servers are left with DIPs. The VIPs are removed. This causes all routes in the corporate network that are targeted to the VIPs addresses to fail. This also affects DNS entries which were resolved to the VIPs, such as the network location server certificate subject name. To avoid this issue, disable load balancing, which leaves the VIPs on the last Remote Access server, and then uninstall Remote Access.
-
After using the Set-RemoteAccessLoadBalancer cmdlet to disable load balancing, wait for 2 minutes before running any other cmdlet. This should also be done in any scripts that run another cmdlet after the Set-RemoteAccessLoadBalancer -disable cmdlet.
-
Disabling load balancing changes the virtual IP address of the cluster into a dedicated IP address. As a result, any operation that queries for the name of the server will fail until the cached DNS entry on the server expires. Make sure that you do not run any Remote Access PowerShell cmdlets after disabling load balancing until the cache on the server has expired. This problem is more common if you try to disable load balancing on a machine from another machine that is in another domain. This also occurs if you disable load balancing from the Remote Access Management console and may prevent the configuration from loading. The configuration will load after the cache has expired or has been flushed.
