Skip to main content

Network Teaming for Hyper-V

To properly create a virtual switch with multiple uplinks, you'll need to get a list of the adapters on the system with:

Get-NetAdapter

Note the name(s) of the adapters you want to use for your network team and create your switch using the following command:

New-VMSwitch -Name "SwitchTeam" -NetAdapterName "Ethernet NIC 1","Ethernet NIC 2" -AllowManagementOS

Be sure to substitute the name you want in place of SwitchTeam.

You're also able to specify more than two NetAdapterNames, just follow the example to add additional adapters.

If you need to also create VLans

Add-VMNetworkAdapter -ManagementOS -Name "PCSIO" -SwitchName "SwitchTeam"

PCSIO will be your Name of the VLan, and make sure you use the same switchName from above.

After you create the VLan adapter you must assign the VLanID

Set-VMNetworkAdapterVlan -VMNetworkAdapterName "PCSIO" -VLanID 2 -Access -ManagementOS

Use the same adapter name from above, and set the VLanID to the Tagged VLan from the switch.

Each VLan must be added using both commands.