Configuring Advanced Networking Features Hyper-V
Configuring Advanced Networking Features Hyper-V
Scenario
Hyper V provides several options for allowing network communication among virtual
machines. You can use Hyper V to configure virtual machines that communicate with an
external network similar to the physical hosts that you deploy traditionally. You also can use
Hyper V to configure virtual machines that can communicate only with a limited number of
other virtual machines that are hosted on the same Hyper-V host. Windows Server provides
several advanced networking features for Hyper V and virtual machines. This lesson
describes the various advanced features that are available for Hyper V virtual networks,
which you can use to best meet your organization's needs.
Exercise 1: Creating and using Hyper-V virtual switches
Scenario
A. Datum Corporation has the Hyper V virtualization platform already installed. Before
deploying Hyper V and virtual machines in the production environment, you need to ensure
that you understand the different networking options that you can configure in Hyper V. First,
you will review the current networking configuration of the Hyper V host. Then, you will
create new virtual network adapters in the parent partition. You will also create different
types of Hyper V virtual switches and explore the connectivity options that exist when using
each of the switches.
Result After completing this exercise, you should have successfully configured the Hyper V
virtual switch.
Task 1: Verify the current Hyper-V network configuration
4. The Virtual Switch Manager window closes. Open it again, and then note
the External Switch that you just created.
5. Repeat steps 1-4 to create an internal switch named Internal Switch.
6. Open the Virtual Switch Manager again, and then note the Internal Switch that you
just created.
7. Send the CTRL+ALT+DEL command by using the shortcut key on the menu.
8. Click the View menu then select Full screen mode.
11. In the Server Manager console tree, select the Local Server node.
12. Click the hyperlink entitled IPv4 address assigned by DHCP, IPv6 enabled on
the Ethernet line.
13. In the Network Connections window, right-click Ethernet , and then click Status.
14. In the Ethernet Status window, click Details.
15. Note the IP address and other settings assigned to the network adapter. They should
be on the 10.0.0.39 network which is external to your virtual machine environment
which is on the 172.16.0.0/16 network.
16. Close all open windows and leave the Server Manager open.
1. On LON-SVR1 in the Server Manager console tree, select the Local Server node.
2. In the Properties details pane, next to NIC Teaming, click the Disabled hyperlink.
In
the NIC Teaming dialog box, in the Adapters and Interfaces pane, select Ethernet ,
click Tasks and then click Add to New Team.
3. In the New team dialog box, in the Team name box, type LON-SVR1 NIC Team,
select Ethernet, and then click OK.
4. In the NIC Teaming dialog box, in the Teams pane, note the following:
Scenario
One of your managers wants to see how the Hyper V virtual switch can help to protect the
network clients from unauthorized DHCP servers. You plan to demonstrate how to configure
DHCP guarding and, at the same time, show the manager how simple it is to configure
VLANs and bandwidth management.
Result After completing this exercise, you should have successfully configured the advanced
features of the Hyper V virtual switch.
Task 1: Configure the network adapters to use DHCP guarding
4. In the Settings for LON-SVR1 on LON-HOST1 window, in the console tree, select
and then expand Network Adapter.
5. Under Network Adapter, click Advanced Features.
6. In the details pane, in the DHCP guard area, click Enable DHCP guard, and then
click OK.
7. Repeat steps 2-5 for LON-CL1.
2. Send the CTRL+ALT+DEL command by using the shortcut key on the menu.
3. Click the View menu then select Full screen mode.
5. On LON-CL1, in the notification area of the taskbar, right-click the Network icon,
and then click Network and Internet Settings.
6. In the Windows Settings App on the Network & internet option scroll down and
select Advanced network settings.
7. On the Advanced network settings menu select More network adapter options.
14. Note the IP address shown on the IPv4 DHCP Server line of the Network
Connections Details window. It should be 172.16.0.10.
15. Click Close twice, and then close the Network and Sharing Center.
16. Minimize the virtual machine connection to LON-CL1.
17. Switch to the LON-SVR1 virtual machine connection window, and if Server Manager
is not already open, click Start, and then click Server Manager.
18. In Server Manager, click Dashboard and then click Add Roles and Features.
19. In the Add Roles and Features Wizard, click Next three times.
20. On the Select Server Roles page, click DHCP Server.
21. In the Add Roles and Features that are required dialog box that opens, click Add
Features, and then click Next.
29. On the Add Roles and Featurs wizard on the Install progress screen select Close.
30. In Server Manager, click Tools, and then click DHCP.
31. In the console tree, expand DHCP and lon-svr1.adatum.com.
32. In the console tree, select and then right-click IPv4, and then click New Scope.
33. In the New Scope Wizard, on the Welcome page, click Next.
34. On the Scope Name page, in the Name box, type Lab 10 Scope, and then click Next.
35. On the IP Address Range page, in the Start IP address box, type 172.16.0.200, in
the End IP address box, type 172.16.0.210, in the Subnet Mask box, type 255.255.0.0,
and then click Next.
38. On the Configure DHCP Options page, ensure that Yes, I want to configure these
options now is selected, and then click Next.
39. On the Router (Default Gateway) page, in the IP Address box, type 172.16.0.1,
click Add, and then click Next.
40. On the Domain Name and DNS Servers page, select 10.0.0.1 and select Remove,
and then click Next.
41. On the WINS servers page, click Next.
42. On the Activate Scope page, ensure that Yes, I want to activate this scope now is
selected, and then click Next.
43. On the Completing the New Scope Wizard page, click Finish.
44. Minimize the virtual machine connection window for LON-SVR1.
IPConfig /renew
53. Note that the IP address received by LON-CL1 is from the LON-SVR1 DHCP scope
that you created.
54. In the Windows Admin terminal window enter the following command:
55. ipconfig /all
56.
57. Note the DHCP server is 172.16.0.11 which is LON-SVR1.
Task 3: Configure and use VLANs
4. In the Properties details pane, next to the NIC Teaming item, click
the Enabled hyperlink.
5. In the NIC Teaming dialog box, in the Teams pane, select LON-SVR1 NIC Team,
and then on the Tasks menu, click Delete.
11. In the details pane for External Switch, in the VLAN ID area, select Enable virtual
LAN identification for management operating system, and then click OK.
12. While still on LON-HOST1, in Hyper-V Manager, in the Virtual Machines pane,
right-click LON-SVR1, and then click Settings.
13. In the Settings for LON-SVR1 on LON-HOST1 window, in the console tree,
select New Network Adapter.
14. In the details pane, in the VLAN ID section, select Enable virtual LAN
identification, and then click OK.
15. Carry out the above steps again but REMOVE the check box for the Enable virtual
LAN identification for both the External Network in Virtual Switch Manager and
on the New Network Adapter of LON-SVR1.
Note: If these settings are left enabled the next task will fail.
Task 4: Configure and use bandwidth management
4. In the Maximum bandwidth box, type 100, and then click OK.
5. Return to the LON-SVR1 virtual machine connection window.
6. On the LON-SVR1 in Server Manager. select Local Server, then select the Ethernet
IP address hyperlink.
7. In the Network Connections window, right click the Ethernet network adapter and
click Properties.
Manager.
12. In the Task Manager window, click the More details arrow.
13. In Task Manager, click the Performance tab, and then select the second Ethernet
item. The Adapter name should be Ethernet.
Results: After completing this exercise, you should have successfully configured the
advanced features of the Hyper-V virtual switch.
Congratulations! You have now completed this lab. To continue to the next lab click End
Lab in the Tools Menu . If you wish to contiue with this lab at a later date ensure you save the
lab environment rather than ending it.