Windows Server 2008R2 Configuring Network Load Balancing (NLB)

Source: Internet
Author: User

Directory
    • Configuring the Environment
    • Installation
      • Install Network Load Balancing
      • Install Web server IIS
    • Configuration
    • Test
    • Other
Configuring the Environment

VMware: (Version 10.0.01)

Primary cluster ip:192.168.220.102

vm1:192.168.220.103

vm2:192.168.220.104

  

Description: Environmental reasons, using a two-node configuration logging configuration process

Installation

Open Service Manager in VM1 and VM2

    • Install Network Load Balancing

Features---> Right---> Add features---> Tick Network Load Balancing-all the way to the next step until you finish

    • Install Web server IIS

Role---> Right----> Add roles---> Tick Web server IIS---> The next step until the installation is complete

Note: This article is just for Network Load balancing, and if you need ASP. NET, install the corresponding version of the. NET Framework (in Windows Server 2008, you can add the. NET Framework 3.5) in the feature. Then tick the options you want when you install IIS

Configuration

  On the VM1 machine.

Start Menu---> Administrative Tools---> Open Network Load Balancing Manager---> Network Load Balancing cluster---> right-click New

Enter the IP address of the VM1, click Connect, after successful connection

Click Next

Continue to the next step, click Add

If you enter the primary cluster IP address, click OK

Continue to the next step, cluster operation mode Select multicast

Next, complete, connect after successful display as (103 machine small icon for green)

Continue to add host to cluster on VM1

Enter the IP address of the VM2 and click Connect to complete

All the way to the next until the completion

  On the VM2 machine.

Click Connect to an existing

Enter the primary cluster IP and click Connect
After the connection is complete, such as
To some of the configuration is complete: note: In the configuration of priority, according to the machine's configuration or requirements of self-tuning, cluster operation mode I will give a description in the back of the link, are old concept, do not quote! Test

1. In the VM1 and VM2 C Packing directory Nlb_test (this directory in order to establish Web site testing, directory location is not limited)

2.VM1 and VM2 Create a new index.html in the Nlb_test directory, as follows

<HTML><Head><title>192.168.220.103</title><Head><Body><H1>server:192.168.220.103</H1></Body></HTML>
<HTML><Head><title>192.168.220.104</title><Head><Body><H1>server:192.168.220.104</H1></Body></HTML>
VM2

3. Create a new site Nlb_test in VM1 and VM2, and point to the nlb_test built on the C drive, with the port set to 8000 (IIS how to build the site is not explained in detail)

Access to http://192.168.220.103:8000/ and http://192.168.220.104:8000/respectively, all access to normal

Access 192.168.220.102:8000 with the primary cluster IP to display the website of VM1

Note: This access even if the test can not see the VM1 and VM2 the free switch on the machine, under the pressure of a large case can be seen

4. Stop VM1 node Nlb_test website, Access 192.168.220.102:8000, will automatically go to 104 (103 machine Small icon for the red table stop)

Even the building is complete!

Other

Because just to record the process, little mention of the conceptual things that need to be understood can look at the following links

Network Load Balancing: http://technet.microsoft.com/zh-cn/library/cc770558.aspx (with a more comprehensive concept, rationale, configuration process)

  

About the cluster operation mode, as the official description

The cluster operation mode parameter specifies whether the multicast media access control (MAC) address should be used for cluster operations. If multicast is enabled, NLB translates the cluster MAC address of the cluster adapter into a multicast address. Also ensure that the primary IP address of the cluster resolves to the multicast address as part of the Address Resolution Protocol (ARP). The adapter can now use the initial built-in MAC address that was disabled in unicast mode.

Before you enable Internet Group Management Protocol (IGMP) support, you must first enable multicast support. You can also enable IGMP support on the network adapter.

The IGMP multicast check box is used to enable IGMP support to limit switch broadcasts by restricting traffic to Network Load balancing ports only. That is, enabling IGMP support ensures that traffic to the NLB cluster passes through only those ports that serve the cluster host, not all of the switching ports.

Windows Server 2008R2 Configuring Network Load Balancing (NLB)

Related Article

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.