Sunteți pe pagina 1din 9

Lab Answer Key: Module 9: Implementing Network Load

Balancing

Lab: Implementing NLB

Exercise 1: Implementing an NLB Cluster

Task 1: Verify website functionality for stand­alone servers

1. On LON­SVR1, on the taskbar, click the File Explorer icon.

2. Navigate to the folder c:\inetpub\wwwroot.

3. Double­click the file iis­85.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 iis­85.png, and then close Microsoft Paint.

7. Close File Explorer.

8. Switch to LON­DC1.

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://LON­SVR1, 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://LON­SVR2, 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 LON­SVR1.

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:

Invoke-Command -Computername LON-SVR1,LON-SVR2 -command


{Install-WindowsFeature
NLB,RSAT-NLB}

Task 3: Create a new Windows Server 2012 NLB cluster

1. On LON­SVR1, in the Windows PowerShell ISE window, type the following command,
and then press Enter:

New-NlbCluster -InterfaceName "Ethernet" -OperationMode


Multicast -ClusterPrimaryIP
172.16.0.42 -ClusterName LON-NLB

2. In the Windows PowerShell ISE window, type the following command, and then press
Enter:

Invoke-Command -Computername LON-DC1 -command {Add-


DNSServerResourceRecordA –
zonename adatum.com –name LON-NLB –Ipv4Address 172.16.0.42}

Task 4: Add a second host to the cluster

1. On LON­SVR1, in the Windows PowerShell ISE window, type the following command,
and then press Enter:

Add-NlbClusterNode -InterfaceName "Ethernet" -NewNodeName


"LON-SVR2" -
NewNodeInterface "Ethernet"

Task 5: Validate the NLB cluster

1. On LON­SVR1, 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 LON­SVR1 and
LON­SVR2 display with the status of Converged for the LON­NLB cluster.

3. Right­click the LON­NLB cluster, and then click Cluster properties.

4. In the LON­NLB(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 LON­NLB(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 LON­SVR2, 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

Xcopy /s c:\inetpub\wwwroot c:\porttest

Exit

New-Website –Name PortTest –PhysicalPath “C:\porttest” –Port


5678

New-NetFirewallRule –DisplayName PortTest –Protocol TCP –


LocalPort 5678

3. On the taskbar, click the File Explorer icon.

4. Click drive C, double­click the porttest folder, and then double­click iis­85.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 iis­85.png, and then close Microsoft Paint.

7. Switch to LON­DC1.

8. Click Start.

9. On the Start screen, click the Internet Explorer icon.

10. In the Internet Explorer address bar, type http://LON­SVR2:5678, and then press Enter.

11. Verify that the IIS Start page with the IIS logo distinctively marked with blue displays.

12. Switch to LON­SVR1.

13. On LON­SVR1, switch to Network Load Balancing Manager.

14. In the Network Load Balancing Manager console, right­click LON­NLB, and then click
Cluster Properties.

15. In the LON­NLB(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 LON­NLB(172.16.0.42).

21. In the Network Load Balancing Manager console, right­click LON­SVR1, 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 LON­DC1.

2. Click Start.

3. On the Start screen, click the Internet Explorer icon.

4. In the Internet Explorer address bar, type http://lon­nlb, 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 LON­DC1, verify that you have Internet Explorer open.

7. In the address bar, enter the address http://LON­NLB: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 LON­SVR1.

2. Select the Network Load Balancing Manager console.

3. Right­click LON­SVR1, click Control Host, and then click Suspend.

4. Click the LON­NLB node. Verify that node LON­SVR1 displays as Suspended, and
that node LON­ SVR2 displays as Converged.

5. Right­click LON­SVR1, click Control Host, and then click Resume.

6. Right­click LON­SVR1, click Control Host, and then click Start.

7. Click the LON­NLB node. Verify that both nodes LON­SVR1 and LON­SVR2 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 LON­SVR1, on the taskbar, click the Windows PowerShell icon.

2. Type the following command, and then press Enter:

restart-computer

3. Switch to LON­DC1.

4. On LON­DC1, on the desktop, click the Internet Explorer icon.

5. In the Internet Explorer address bar, type the address http://LON­NLB, and then press
Enter.
6. Refresh the website 20 times. Verify that the website is available while LON­SVR1
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 LON­SVR1 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, right­click LON­SVR2, click
Control Host, and then click Drainstop.

5. Switch to LON­DC1.

6. In Internet Explorer, in the address bar, type http://lon­nlb, 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 Hyper­V Manager.

2. In the Virtual Machines list, right­click 20412D­LON­DC1, and then click Revert.

3. In the Revert Virtual Machine dialog box, click Revert.

4. Repeat steps two and three for 20412D­LON­SVR1 and 20412D­LON­SVR2.
Results: After completing this exercise, you will have successfully validated high
availability for the NLB cluster.

S-ar putea să vă placă și