Configuring networking in Hyper-V is not that smooth as we would like it. You have al the possibilities you need but you need to know where you can configure what option and how you need to configure it. In this blog I will describe some tips and tricks and will show you how you can configure the several network components. This blog is based on a HP Hyper-V server (blade server) which is member of a Hyper-V cluster. The NIC’s (8 pieces) are presented through HP Virtual Connect. The total bandwith I received was 20 GB and I need to share that between the 8 NIC’s.
Virtual Connect
Let we first take a quick look at Virtual Connect. HP Virtual Connect FlexFabric simplifies the server edge by replacing traditional switches and modules with a converged and virtualized way to connect servers to different networks with one device, over one wire, utilizing industry standards. HP Virtual Connect FlexFabric allows you to eliminate separate interconnect modules and mezzanine cards for disparate protocols like Ethernet and FC. This allows you to consolidate all of the traffic onto a single interconnect architecture, simplifying the design and cabling complexity of your environment.
Flex-10 LOMs (Lan On Motherboard) have the ability to “subdivide” themselves into four logical instances, each of them a valid PCIe function, which are called FlexNICs. These FlexNICs appear as real, actual, physical NICs to the operating system installed on the blades.
I’ve wrote a design in which I define the networks, VLAN’s and so on. The most important notes from this design for this blog are:
- We’ve eight NIC’s available for the Hyper-V host
- Two adapters are reserved for iSCSI (MPIO teaming)
- We configure two adapters in a team for the Management network
- We configure two adapters in a team for the Virtual Machine network
- We configure two adapters in a team for CSV + Live Migration network
- iSCSI = VLAN 100/ Management = VLAN 150/ CSV + Live Migration = VLAN 160
- Virtual Machine network = VLAN 170/ 180/ 190 and 200
So in Virtual Connect my colleague created eight NIC ports (port 1 – 8). Two ports at the speed of 4 GB (for iSCSI) the rest at the speed of 2 GB. On these ports he configured the right VLANs. The network administrator already has configured the physical NIC ports with the right VLAN’s.
Unfortunately port 1 in Virtual Connect will not automatically appear as NIC 1 in Windows. You certainly need to know the matches between the port in Virtual Connect and the NIC in Windows because of the several VLAN configurations. You can do two things to make sure that you’ve the good match:
- Note down the MAC addresses from the Virtual Connect management interface for the configured ports (host server profile details) and compare these MAC addresses with the cards in Windows
- Set each port in Virtual Connect at a different speed, so port 1 = 100 Mbps, port 2 = 200 Mbps, port 3 = 300 Mbps and so on. Now you can take a look in Windows which NIC operates on which speed.
After you’ve done this you know the match between the Virtual Connect port and the Windows NIC. My advise is to write these things down in a table for future use:
| Windows Adapter |
Device Name | Speed | VLAN | VC port | Mapping | Interconnect |
| 1 | Dual port flex fabric 10 GB | 2 GB | CSV/LM | 3 | LOM:1-B | Bay 1 |
| 2 | Dual port flex fabric 10 GB | 2 GB | CSV/LM | 4 | LOM:2-B | Bay 2 |
| 3 | Dual port flex fabric 10 GB | 4 GB | iSCSI | 5 | LOM:1-C | Bay 1 |
| 4 | Dual port flex fabric 10 GB | 4 GB | iSCSI | 6 | LOM:2-C | Bay 2 |
| 5 | Dual port flex fabric 10 GB | 2 GB | VM | 7 | LOM:1-D | Bay 1 |
| 6 | Dual port flex fabric 10 GB | 2 GB | VM | 8 | LOM:2-D | Bay 2 |
| 7 | Dual port flex fabric 10 GB | 2 GB | MGMT | 1 | LOM:1-A | Bay 1 |
| 8 | Dual port flex fabric 10 GB | 2 GB | MGMT | 2 | LOM:2-A | Bay 2 |
LOM stays for LAN On Motherboard.
My next advice is to rename the default NIC names in Windows to names from which you can see what kind of adapter it is and where you will use it for:
[image not preserved in the archive]
These names are also useful when you are configuring the network teams.
NIC Teaming
Because of the importance of a Hyper-V host the components in the Hyper-V host must be high available if this is possible. This also applies to the NIC’s of a Hyper-V server. NIC teaming is not an build in feature of Hyper-V and we depend on the support of the hardware vendor. Let’s have a look at some teaming stuf and as i said earlier, this blog is based on HP hardware so I will describe the HP possibilties for teaming only…
First of all: you never may install the HP Network Configuration Utility (NCU), which is HP’s NIC teaming software, before enabling the Hyper-V role. If you install the teaming software before installing HyperV, the network adapters may stop passing traffic. To resolve this issue, you need to uninstall both the HP teaming software and Hyper-V role and then reboot the server. Next you need to reinstall the Hyper-V role and then the teaming software.
So install NCU after the Hyper-V role is enabled. Configuring a team is very straight forward. You can start the NCU, select two adapters e.g. PNIC-VMnetwerk_01 and PNIC-VMnetwerk_02 and click the ‘Team’ button. The team will be created and the NIC team will appear as a network connection. On this network connection (the NIC team) you will configure the IP address settings when needed. Again I will advise to rename the default name of the team adapter:
[image not preserved in the archive]
The NIC TEAM-VMnetwerk is a team that consist of the adapters PNIC-VMnetwerk_01 and PNIC-VMnetwerk_02 and can now be used to create a new virtual machine network. Because of the logical names it is easy te select the right adapter (from a list of eleven adapters) when you create the virtual machine network:
[image not preserved in the archive]
Setting VLAN configurations
So far so good. We’ve configured the NIC port in VC and configured the teams in Windows. After configuring the teams you can apply the IP address configuration (not needed for the TEAM-VMnetwerk NIC). But we still need to configure the VLAN’s for the different networks.
Let’s start with the virtual machine network. The network administrator already configured the VLAN’s on the physical switches and within virtual connect. We need to configure the VLAN’s for Windows and Hyper-V. There are several VLAN’s (170, 180, 190 and 200) which must be available for virtual machines.
These VLAN’s must past through till the vSwitch. So we need to enable VLAN promisuous on the Team properties of the NIC ‘TEAM-VMnetwerk’:
[image not preserved in the archive]
As we can read: VLAN Promisuous enables teaming devices pass tagged packets between network and virtual machine when VLAN created in VM and not created on teaming device in Host Machine. Now the last thing we need to do, is configuring a VLAN ID on the properties of the Virtual Machine NIC:
![]()
When you add a network adapter and connect it to a virtual switch you also ad a switchport to the virtual switch. When you also enable VLAN identification and specify e.g. VLAN ID 2 the switchport will be an so called access port (in VLAN 2) on the virtual switch. On these access port the VLAN tag will be stripped off. It is possible to add a second network adapter and specify another VLAN ID. The port on the virtual switch than will ben an access port in the other VLAN.
If the network administrator has done his job then additional configuration for the other networks is not necessary. The so called P-NIC’s are configured as access ports in a particular VLAN and they had to deal with just one VLAN ID. When you need more than one VLAN on a team other than the virtual machine network team, then you need to configure VLAN 802.1Q setting on the team!
As we read configuring your network for Hyper-V is not just one click but consist of several steps. However if you think logical then it’s not really hard to configure it. I’ll hope this blog make things clear and help you to understand the network configuration in Hyper-V.