[Graphic] how to configure network load balancing (NLB) for Windows Server 2008R2)

Source: Internet
Author: User
Tags create index

Configure the environment

VMware: (version 10.0.01)
Master Cluster IP address: 192.168.220.102
VM1: 192.168.220.103
VM2: 192.168.220.104

Note: For environmental reasons, use dual-node configuration to record the configuration process

Install

Open the service manager in VM1 and VM2

Install network load balancing

Function ---> right-click ---> Add function ---> check network load balancing --> all the way to the next step until it is completed

 


Install Web server IIS

Role ---> right-click ---> Add role ---> Check Web server IIS ---> all the way to the next step until the installation is complete


Note: This article only aims to set up network load balancing. If you need ASP.. NET. Install the required version first. NET Framework (in Windows Server 2008, you can add. NET Framework 3.5), and then select the required options when installing IIS

Configuration

On VM1

Start menu ---> Administrative tools ---> Open Network Load Balancing manager ---> Network Load Balancing cluster ---> right-click to create



Enter the VM1 IP address and click Connect.



Click Next

 


Continue to the next step and click add



Enter the master Cluster IP address, and click OK.



Continue to the next step. Select multicast in cluster operation mode.



Next, complete. After the connection is successful, the following figure is displayed (the ICON of the 103 machine is green)



Continue adding hosts to the cluster on VM1



Enter the IP address of VM2 and Click Connect to complete.



All the way to the next step until the completion



On a VM2 machine

Click to connect to existing


Enter the master Cluster IP address and click Connect.



After the connection is complete



Now the configuration is complete:
 
Note: the priority during configuration is adjusted based on the configuration or requirements of the machine. I will give a link to the cluster operation mode later. This is an old concept and will not be quoted!

Test

1. NLB_TEST under the C root directory of VM1 and VM2)

2.vm1and vm2respectively create index.html in the nlb_testdirectory. The content is as follows:

The code is as follows: Copy code
<Html>
<Head>
<Title> 192.168.220.103 </title>
<Head>
<Body>
<H1> Server: 192.168.220.103 </Body>
</Html>

 

The code is as follows: Copy code
<Html>
<Head>
<Title> 192.168.220.104 </title>
<Head>
<Body>
<H1> Server: 192.168.220.104 </Body>
</Html>



3. Create the website NLB_TEST in VM1 and VM2 respectively, and point to the NLB_TEST created on drive C, and set the port to 8000 (how to create a website in IIS is not described in detail)

Access http: // 192.168.220.103: 8000/and http: // 192.168.220.104: 8000/respectively. All accesses are normal.

 

Access 192.168.220.102: 8000 with the master Cluster IP address. The website deployed in VM1 is displayed.


Note: Even if there are multiple refresh tests for this access, we cannot see the free switch between VM1 and VM2 Machines. This can be seen only when the stress is high.

 


4. Stop the website NLB_TEST on the VM1 node and access 192.168.220.102: 8000. It will be automatically forwarded to 104 (the ICON on the 103 machine is marked as the red table to stop)

Now, the building is complete!


Others

Since conceptual things are rarely mentioned just to record the process, you can refer to the following link for more information.

Network Load Balancing: http://technet.microsoft.com/zh-cn/library/cc770558.aspx (more comprehensive concepts, principles, configuration process)

This is the official description of the cluster operation mode.
The cluster operation mode parameter specifies whether to use the Multicast Media Access Control (MAC) address for cluster operations. If multicasting is enabled, NLB converts the cluster MAC address of the cluster adapter to the multicast address. Make sure that the main IP address of the cluster is resolved to the multicast address as part of the Address Resolution Protocol (ARP. The adapter can now use an initial built-in MAC address that is disabled in unicast mode.
Before enabling Internet Group Management Protocol (IGMP) support, you must first enable multicast support. You can also enable IGMP on the network adapter.
The "IGMP multicast" check box is used to enable IGMP support to restrict switch broadcast by limiting only communication with the "network load balancing Port. That is to say, enabling the IGMP support ensures that the communication for the NLB cluster only goes through the ports that provide services for the cluster host, instead of all the switch ports.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.