Lab Answer Key - Module 9 - Implementing Network Load Balancing
Lab Answer Key - Module 9 - Implementing Network Load Balancing
Balancing
Lab: Implementing NLB
Exercise 1: Implementing an NLB Cluster
Task 1: Verify website functionality for standalone servers
1. On LONSVR1, on the taskbar, click the File Explorer icon.
2. Navigate to the folder c:\inetpub\wwwroot.
3. Doubleclick the file iis85.png. This will open the file in Microsoft Paint.
4. Ensure that the Paintbrush tool is selected, and then in the palette, click the color Red.
5. Use the mouse to mark the IIS logo distinctively, using the color red.
6. Save the changes that you made to iis85.png, and then close Microsoft Paint.
7. Close File Explorer.
8. Switch to LONDC1.
9. Click Start.
10. On the Start screen click the Windows Internet Explorer icon.
11. In the Internet Explorer address bar, type the address http://LONSVR1, and then press
Enter. Verify that the webpage displays the IIS logo with the distinctive color red mark
that you added.
12. In the Internet Explorer address bar, enter the address http://LONSVR2, and then press
Enter. Verify that the webpage does not display the marked IIS logo.
13. Close Internet Explorer.
Task 2: Install NLB
1. Switch to LONSVR1.
2. On the desktop, click the Server Manager icon.
3. In the Server Manager console, click the Tools menu, and then click Windows
PowerShell ISE.
4. In the Windows PowerShell ISE window, enter the following command, and then press
Enter:
Task 3: Create a new Windows Server 2012 NLB cluster
1. On LONSVR1, in the Windows PowerShell ISE window, type the following command,
and then press Enter:
2. In the Windows PowerShell ISE window, type the following command, and then press
Enter:
Task 4: Add a second host to the cluster
1. On LONSVR1, in the Windows PowerShell ISE window, type the following command,
and then press Enter:
Task 5: Validate the NLB cluster
1. On LONSVR1, in the Server Manager console, click the Tools menu, and then click
Network Load Balancing Manager.
2. In the Network Load Balancing Manager console, verify that nodes LONSVR1 and
LONSVR2 display with the status of Converged for the LONNLB cluster.
3. Rightclick the LONNLB cluster, and then click Cluster properties.
4. In the LONNLB(172.16.0.42), on the Cluster Parameters tab, verify that the cluster is
set to use the Multicast operations mode.
5. On the Port Rules tab, verify that there is a single port rule named All that starts at port
0 and ends at port 65535 for both TCP and UDP protocols, and that it uses Single
affinity.
6. Click OK to close the LONNLB(172.16.0.42).
Results: After completing this exercise, you will have successfully implemented an NLB
cluster.
Exercise 2: Configuring and Managing the NLB Cluster
Task 1: Configure port rules and affinity
1. On LONSVR2, on the taskbar, click the Windows PowerShell icon.
2. At the Windows PowerShell prompt, type each of the following commands, and then
press Enter after each command:
Cmd.exe
Mkdir c:\porttest
Exit
3. On the taskbar, click the File Explorer icon.
4. Click drive C, doubleclick the porttest folder, and then doubleclick iis85.png. This
will open the file in Microsoft Paint.
5. Select the color blue from the palette, and use the Blue paintbrush to mark the IIS logo
in a distinctive manner.
6. Save the changes to iis85.png, and then close Microsoft Paint.
7. Switch to LONDC1.
8. Click Start.
9. On the Start screen, click the Internet Explorer icon.
10. In the Internet Explorer address bar, type http://LONSVR2:5678, and then press Enter.
11. Verify that the IIS Start page with the IIS logo distinctively marked with blue displays.
12. Switch to LONSVR1.
13. On LONSVR1, switch to Network Load Balancing Manager.
14. In the Network Load Balancing Manager console, rightclick LONNLB, and then click
Cluster Properties.
15. In the LONNLB(172.16.0.42), on the Port Rules tab, select the All port rule, and then
click Remove.
16. On the Port Rules tab, click Add.
17. In the Add/Edit Port Rule dialog box, enter the following information, and then click
OK:
• Port range: 80 to 80
• Protocols: Both
• Filtering mode: Multiple Host
• Affinity: None
18. On the Port Rules tab, click Add.
19. In the Add/Edit Port Rule dialog box, enter the following information, and then click
OK:
• Port range: 5678 to 5678
• Protocols: Both
• Filtering mode: Single Host
20. Click OK to close the LONNLB(172.16.0.42).
21. In the Network Load Balancing Manager console, rightclick LONSVR1, and then
click Host Properties.
22. On the Port Rules tab, click the port rule that has 5678 as the Start and End value, and
then click Edit.
23. Click the Handling priority value, and change it to 10.
24. Click OK twice to close both the Add/Edit Port Rule dialog box and the Host
Properties dialog box.
Task 2: Validate port rules
1. Switch to LONDC1.
2. Click Start.
3. On the Start screen, click the Internet Explorer icon.
4. In the Internet Explorer address bar, type http://lonnlb, and then press Enter.
5. Click the Refresh icon 20 times. Verify that you see web pages with and without the
distinctive red marking.
6. On LONDC1, verify that you have Internet Explorer open.
7. In the address bar, enter the address http://LONNLB:5678, and then press Enter.
8. In the address bar, click the Refresh icon 20 times. Verify that you are able to view only
the web page with the distinctive blue marking.
Task 3: Manage host availability in the NLB cluster
1. Switch to LONSVR1.
2. Select the Network Load Balancing Manager console.
3. Rightclick LONSVR1, click Control Host, and then click Suspend.
4. Click the LONNLB node. Verify that node LONSVR1 displays as Suspended, and
that node LON SVR2 displays as Converged.
5. Rightclick LONSVR1, click Control Host, and then click Resume.
6. Rightclick LONSVR1, click Control Host, and then click Start.
7. Click the LONNLB node. Verify that both nodes LONSVR1 and LONSVR2 now
display as Converged. You might have to refresh the view.
Results: After completing this exercise, you will have successfully configured and
managed an NLB cluster.
Exercise 3: Validating High Availability for the NLB Cluster
Task 1: Validate website availability when the host is unavailable
1. On LONSVR1, on the taskbar, click the Windows PowerShell icon.
2. Type the following command, and then press Enter:
restart-computer
3. Switch to LONDC1.
4. On LONDC1, on the desktop, click the Internet Explorer icon.
5. In the Internet Explorer address bar, type the address http://LONNLB, and then press
Enter.
6. Refresh the website 20 times. Verify that the website is available while LONSVR1
reboots, but that it does not display the distinctive red mark on the IIS logo until LON
SVR1 has restarted.
Task 2: Configure and validate Drainstop
1. Sign in to LONSVR1 with the username Adatum\Administrator and the password
Pa$$word.
2. On the desktop, click the Server Manager icon.
3. In Server Manager, click the Tools menu, and then click Network Load Balancing
Manager.
4. In the Network Load Balancing Manager console, rightclick LONSVR2, click
Control Host, and then click Drainstop.
5. Switch to LONDC1.
6. In Internet Explorer, in the address bar, type http://lonnlb, and then press Enter.
7. Refresh the site 20 times, and verify that only the welcome page with the red IIS logo
displays.
Task 3: Prepare for the next module
When you finish the lab, revert the virtual machines to their initial state.
1. On the host computer, start the HyperV Manager.
2. In the Virtual Machines list, rightclick 20412DLONDC1, and then click Revert.
3. In the Revert Virtual Machine dialog box, click Revert.
4. Repeat steps two and three for 20412DLONSVR1 and 20412DLONSVR2.
Results: After completing this exercise, you will have successfully validated high
availability for the NLB cluster.