You are on page 1of 7

Module 13: Network Load Balancing

Fundamentals
Exercise 1: Preparing Web Servers for NLB
Task 1: Start the virtual machines, and then log on
1. On your host machine, click Start, point to All Programs, point to Microsoft
Learning, and then click 6420A. The Lab Launcher starts.
2. In the Lab Launcher, next to 6420A-NYC-DC1, click Launch.
3. In the Lab Launcher, next to 6420A-NYC-SVR1, click Launch.
4. In the Lab Launcher, next to 6420A-NYC-WEB, click Launch.
5. Log on to NYC-DC1 as Administrator with the password Pa$$w0rd.
6. Log on to NYC-SVR1 as LocalAdmin with the password Pa$$w0rd.
7. Log on to NYC-WEB as Administrator with the password Pa$$w0rd.
8. Minimize the Lab Launcher window.

Task 2: Prepare network connections on NYC-WEB for NLB


1. On NYC-WEB, log on as Administrator with the password Pa$$w0rd.
2. Click Start, point to Administrative Tools, and then click Server Manager.
3. In the Computer Information area, click View Network Connections.
4. Right-click Local Area Connection 2 and click Properties.
5. Click Internet Protocol Version 4 (TCP/IPv4) and click Properties.
6. Click Use the following IP address.
7. In the IP address box, type 10.10.0.221.
8. In the Subnet mask box, type 255.255.0.0.
9. If required, clear the default gateway.
10. Click OK to save the changes to Internet Protocol Version 4.
11. Click Close to close the Local Area Connection 2 Properties window.
12. Close the Network Connections window.
13. Close Server Manager.

Task 3: Prepare network connections on NYC-SVR1 for clustering


1. On NYC-SVR1, log on as Administrator with the password Pa$$word.
2. Click Start, point to Administrative Tools, and then click Server Manager.
3. In the Computer Information area, click View Network Connections.
4. Right-click Local Area Connection 2 and click Properties.
5. Click Internet Protocol Version 4 (TCP/IPv4) and click Properties.
6. Click Use the following IP address.
7. In the IP address box, type 10.10.0.224.

8. In the Subnet mask box, type 255.255.0.0.


9. If necessary, clear the default gateway.
10. Click OK to save the changes to Internet Protocol Version 4.
11. Click Close to close the Local Area Connection 2 Properties window.
12. Close the Network Connections window.
13. Close Server Manager.

Task 4: Join NYC-SVR1 to the domain


1. On NYC-SVR1, click Start, point to Administrative Tools, and then click
Server Manager.
2. In the Computer Information area, click Change System Properties.
3. On the Computer Name tab, click Change.
4. In the Member of area, click Domain, type woodgrovebank.com, and then
click OK.
5. When prompted, log on as Administrator with the password Pa$$w0rd.
6. Click OK to clear the welcome message.
7. Click OK to clear the message about rebooting.
8. Click Close to close the System Properties window.
9. Click Restart Now.

Task 5: Create a Web site on NYC-WEB


1. On NYC-WEB, click Start and click Command Prompt.
2. Type md C:\Webapp and press ENTER.
3. Type copy \\NYC-DC1\E$\Mod13\Labfiles\WEB.txt
C:\Webapp\default.htm.
4. Close the command prompt.
5. Click Start, point to Administrative Tools, and then click Internet
Information Services (IIS) Manager.
6. In the left pane, expand NYC-WEB and click Sites.
7. Right-click Sites and click Add Web Site.
8. In the Site name box, type Webapp.
9. In the Physical path box, type C:\Webapp.
10. In the Port box, type 10080 and click OK.
11. Close Internet Information Services (IIS) Manager.

Task 6: Create a Web site on NYC-SVR1


1. On NYC-SVR1, log on as WoodgroveBank\Administrator with the password
Pa$$w0rd.
2. Server Manager starts automatically after login.
3. In the left pane, click Roles and click Add Roles.
4. Click Next, select the Web Server (IIS) checkbox, click Add Required

Features, and then click Next.


5. Click Next, select the ASP.NET checkbox, and then click Add Required Role
Services.
6. Select the ASP checkbox and click Next.
7. Click Install.
8. Click Close and close Server Manager.
9. Click Start and click Command Prompt.
10. Type md C:\Webapp and press ENTER.
11. Type copy \\NYC-DC1\E$\Mod13\Labfiles\SVR1.txt
C:\Webapp\default.htm.
12. Close the command prompt.
13. Click Start, point to Administrative Tools, and then click Internet
Information Services (IIS) Manager.
14. In the left pane, expand NYC-SVR1 and click Sites.
15. Right-click Sites and click Add Web Site.
16. In the Web site name box, type Webapp.
17. In the Physical path box, type C:\Webapp.
18. In the Port box, type 10080 and click OK.
19. Close Internet Information Services (IIS) Manager.

Task 7: Configure Firewall rules for the Web site


1. On NYC-WEB, click Start, point to Administrative Tools, and then click
Windows Firewall with Advanced Security.
2. Click Inbound Rules, wait for the list of rules to populate, right-click Inbound
Rules and click New Rule.
3. Click Port and click Next.
4. Click TCP, click Specific local ports, type 10080, and then click Next.
5. Click Allow the connection and click Next.
6. Verify that the rule applies to all profiles and click Next.
7. In the Name box, type Web Application and click Finish.
8. Close Windows Firewall with Advanced Security.
9. On NYC-SVR1, click Start, point to Administrative Tools, and then click
Windows Firewall with Advanced Security.
10. Click Inbound Rules, wait for the list of rules to populate, right-click Inbound
Rules and click New Rule.
11. Click Port and click Next.
12. Click TCP, click Specific local ports, type 10080, and then click Next.
13. Click Allow the connection and click Next.
14. Verify that the rule applies to all profiles and click Next.
15. In the Name box, type Web Application and click Finish.
16. Close Windows Firewall with Advanced Security.

Task 8: Verify Web site functionality


1. On NYC-DC1, log on as Administrator with the password Pa$$w0rd.
2. Click Start, click All Programs, and then click Internet Explorer.
3. In the Address bar, type http://NYC-WEB:10080 and press ENTER.
4. In the Address bar, type http://NYC-SVR1:10080 and press ENTER.
5. Close Internet Explorer.

Task 9: Install the Network Load Balancing feature


1. On NYC-WEB, click Start, point to Administrative Tools, and then click
Server Manager.
2. In the left pane, click Features and click Add Features.
3. Select the Network Load Balancing checkbox, click Next, and then click
Install.
4. When the installation is complete, click Close.
5. Close Server Manager.
6. On NYC-SVR1, click Start, point to Administrative Tools, and then click
Server Manager.
7. In the left pane, click Features and click Add Features.
8. Select the Network Load Balancing checkbox, click Next, and then click
Install.
9. When the installation is complete, click Close.
10. Close Server Manager.

Exercise 2: Creating an NLB Cluster for Failover.


Task 1: Create a DNS record for the NLB cluster
1. On NYC-DC1, click Start, point to Administrative Tools, and click DNS.
2. Expand NYC-DC1, expand Forward Lookup Zones and click
WoodgroveBank.com.
3. Right-click WoodgroveBank.com and click New Host (A or AAAA).
4. In the Name box, type webapp.
5. In the IP Address box, type 10.10.0.200 and click Add Host.
6. Click OK and click Done.
7. Close DNS Manager.

Task 2: Create an NLB cluster


1. On NYC-WEB, click Start, point to Administrative Tools, and then click
Network Load Balancing Manager.
2. In the left pane, right-click Network Load Balancing Clusters, and click New
Cluster.
3. In the Host box, type NYC-WEB and click Connect.
4. Click Local Area Connection 2 and click Next.
5. Click Next to accept the default values for host parameters.
6. Click Add to add a cluster IP address.
7. In the IPv4 address box, type 10.10.0.200.
8. In the Subnet mask box, type 255.255.0.0 and click OK.
9. Click Next.
10. In the Full Internet name box, type webapp.woodgrovebank.com.
11. Click Unicast and click Next.
12. Click Finish.

Task 3: Add NYC-SVR1 to the NLB cluster


1. On NYC-SVR1, click Start, point to Administrative Tools, and then click
Network Load Balancing Manager.
2. In the left pane, right-click Network Load Balancing Clusters, and click
Connect to Existing.
3. In the Host box, type NYC-WEB and click Connect.
4. Click webapp.woodgrovebank.com and click Finish.
5. Right-click webapp.woodgrovebank.com and click Add Host To Cluster.
6. In the Host box, type NYC-SVR1 and click Connect.
7. Click Local Area Connection 2 and click Next.
8. Click Next to accept the default values for host parameters.
9. Click Finish.

Task 4: Configure port rules for failover


1. In Network Load Balancing Manager on NYC-WEB, refresh the view to
confirm that both nodes are listed.
2. Right-click webapp.woodgrovebank.com and click Cluster Properties.
3. Click the Port Rules tab.
4. Click the existing port rule and click Edit.
5. In the Port range box, type from 10080 to 10080.
6. In the Protocols area, click TCP.
7. In the Filtering mode area, click Single host and then click OK.
8. Click OK to save the changes to the cluster properties.

Task 5: Verify cluster failover


1. On NYC-DC1, click Start, point to All Programs, and then click Internet
Explorer.
2. In the Address bar, type http://webapp.woodgrovebank.com:10080 and
press ENTER.
3. Reload the page several times to confirm it is always loaded from NYC-WEB.
4. In Network Load Balancing Manager on NYC-WEB, right-click NYC-WEB,
point to Control Host, and then click Stop.
5. In Internet Explorer on NYC-DC1, reload the page.
Notice that the page is loaded from NYC-SVR1 now.
6. Close Internet Explorer.
7. In Network Load Balancing Manager on NYC-WEB, right-click NYC-WEB,
point to Control Host, and then click Start.

Exercise 3: Configuring an NLB Cluster for Load Balancing


Task 1: Configure a port rule for load balancing
1. In Network Load Balancing Manager on NYC-WEB, refresh the view to verify
that both nodes are converged.
2. Right-click webapp.woodgrovebank.com and click Cluster Properties.
3. Click the Port Rules tab.
4. Click the existing port rule and click Edit.
5. In the Filtering mode area, click Multiple host.
6. Next to the Affinity label, click None and then click OK.
7. Click OK to save the changes to the cluster properties.
8. If the status of NYC-SVR1 or NYC-WEB changes to misconfigured with the IP
address 10.10.0.200 not bound, perform the following steps:
a. On NYC-SVR1, click Start, point to Administrative Tools, and click
Server Manager.
b. In the Computer Information area, click View Network Connections.
c. Right-click Local Area Connection 2 and click Disable.
d. Right-click Local Area Connection 2 and click Enable.
e. Close Network Connections.
f. Close Server Manager.

Task 2: Verify cluster load balancing


1. On NYC-DC1, click Start, point to All Programs, and then click Internet
Explorer.
2. In the Address bar, type http://webapp.woodgrovebank.com:10080 and
press ENTER.
3. Verify that the page is loaded with the new configuration.

Task 3: Close all virtual machines and discard undo disks


1. For each virtual machine that is running, close the Virtual Machine Remote
Control window.
2. In the Close box, select Turn off machine and discard changes, and then
click OK.
3. Close the 6420A Lab Launcher.

You might also like