Configure network load balancing in Win2K

The network load balancing (NLB) feature in Windows 2000 allows you to make your servers work faster and more efficiently.

With NLB, you can balance Web, FTP, and Terminal Server traffic across many servers.

In fact, you can balance the workload from two to 32 machines, depending on the version of Win2K Server you're running. I'm going to show you how to quickly configure and test NLB in Windows 2000.


Author's note
NLB is available only on Windows 2000 Advanced Server and Windows 2000 Datacenter Server and requires Service Pack 2. It also requires 1 MB of disk space for each cluster server.

Configuring network load balancing

When you install Win2K Advanced Server or Win2K Datacenter Server, NLB becomes available by default.

To activate NLB, go to Network And Dial-up Connections, right-click on the interface you want to use for load balancing (usually one of the Local Area Connections), and select Properties.

Highlight the Network Load Balancing selection, as shown in Figure A.

Then, click Properties to access the options for configuring Network Load Balancing, shown in Figure B.

Figure A.

Figure B.

As you can see, this dialog box offers the following three tabs:

  • Cluster Parameters
  • Host Parameters
  • Port Rules

Let's take a detailed look at the configuration options available in each tab.

Cluster Parameters

To properly configure NLB, you must first select the Cluster Parameters tab and enter the following information:

  • Primary IP Addressâ€"The Primary IP Address is the virtual IP address of the NLB configuration itself (as opposed to the interface IP address of one of the servers that makes up the NLB configuration). All machines that are load balanced will use this IP address.
  • Subnet Maskâ€"After entering the IP address, press [Tab]. This will be configured automatically.
  • Full Internet Nameâ€"Enter the NLB's fully qualified domain name (FQDN). Remember to configure your DNS with this name and resolve it to the IP address before going live with your load-balancing machines.
  • Network Addressâ€"This hardware (MAC) address is automatically configured and cannot be changed.
  • Multicast Supportâ€"Check this box if you want to enable multicast support. If you are using a server with only one network card, this option is required.
  • Remote Passwordâ€"If you want to use remote administration, enter and confirm a remote password and select the Remote Control check box. With this feature enabled, you can, for example, start and stop the cluster services or display diagnostics from a remote machine.


Author's note
When you enable the Remote Control check box, you are asked to consult online help because allowing this can be a huge security risk. You should have the proper firewall in place prior to allowing Remote Control.

Host Parameters

After configuring Cluster Parameters, click on the Host Parameters tab to access the options shown in Figure C.

Figure C.

Then, input the following parameters for the server that you are configuring:

  • Priority (Unique Host ID)â€"You need to select a unique number for every server in your cluster. For example, I am using two servers, so I will set my Priority to 1 on the first server and 2 on the second server.
  • Initial Cluster Stateâ€"Select this check box if you want to enable the cluster immediately.
  • Dedicated IP Addressâ€"Enter the static IP address of the server's network interface card prior to enabling NLB. In the Primary IP Address in Cluster Parameters, you entered the virtual IP address for the cluster. Here, you simply enter the server's true IP address. Subnet Maskâ€"Enter the appropriate subnet mask for the server's static IP address.

Port Rules

After configuring your Host Parameters, click on the Port Rules tab, as we've done in Figure D.

Figure D.


This window allows you to configure your TCP/IP traffic by selecting the appropriate protocols and port range. On each server, these port rules must be similar. For example, you might configure TCP to work on only a certain range of ports.

After configuring your rule, you would simply click the Add button. By default, the port range is 0 to 65535 on both TCP and UDP ports.

In addition to selecting port ranges, you can also apply the following Filtering Modes:

  • Multiple Hostsâ€"This mode distributes the load equally throughout the cluster.
  • Single Hostâ€"This mode forces all traffic to one box until that box fails.
  • Disabledâ€"This mode blocks all traffic on a range of ports that you configure.

The last step is to enter the cluster's IP address in the Advanced Settings of your TCP/IP configuration, shown in Figure E.

You can access these options by going into Network And Dial-up Connections, right-clicking on the interface, and choosing Properties. Click on Internet Protocol (TCP/IP), click Properties, and then click Advanced.

Figure E.

You have now successfully created the first server in your cluster. Repeat these steps on additional systems to add additional servers to your NLB cluster.

Validating your NLB configuration

After you have completely configured your servers as a cluster, you can verify that they are working properly by opening up a command prompt and typing wlbs query, as shown in Figure F. You can also ping your virtual IP address to see if it is responding correctly.

Figure F.

For more detailed information on your cluster, type wlbs display, as shown in Figure G.

Figure G.

Summary

This article has provided a short introduction to network load balancing in Windows 2000 and offered a tutorial on configuring and testing NLB. You should now have a basic understanding of how to load balance servers in Windows 2000 quickly and easily. For more information on NLB in Windows 2000, I recommend reading this part of the Windows 2000 Resource Kit.

TechRepublic is the online community and information resource for all IT professionals, from support staff to executives. We offer in-depth technical articles written for IT professionals by IT professionals. In addition to articles on everything from Windows to e-mail to fire walls, we offer IT industry analysis, downloads, management tips, discussion forums, and e-newsletters.

©2001 TechRepublic, Inc.

Advertisement

Talkback 0 comments

Sponsored content

Power Centre - Content from our premier sponsors

Blogs

  • Suzanne Tindal Sick of broken tender sites
    Some of the state governments desperately need to invest in more user-friendly tender sites so that looking for information on government tenders doesn't have to be a game of blind man's bluff.
  • Array Cyberwar: What is it good for?
    In this week's episode, Cyberwar. What is Australia's place in the world of digital warfare? What are the implications for the NBN?
  • Array Is wholesale-only backhaul just a pipedream?
    The potential acquisition of Pipe Networks by SP Telemedia has raised the question about whether vertically integrated backhaul providers will mean higher wholesale prices for ISP customers.
  • More blogs »

Tags

Back to top

Featured