Windows Server 2016 – Hyper-V Add/Remove virtual network cards

You can have up to 8 v network interface cards (vNIC)

To add a new vNIC open Hyper-V Manager, select a VM, right-click this VM and select Settings

, <span>Windows Server 2016 – Hyper-V Add/Remove virtual network cards</span>, KandZ

Click at the top Add Hardware, select Network Adapter at the right panel and then click Add.

, <span>Windows Server 2016 – Hyper-V Add/Remove virtual network cards</span>, KandZ

The new vNIC will be added, like the picture below. Now edit Virtual Switch and any other option and click OK. That was all., <span>Windows Server 2016 – Hyper-V Add/Remove virtual network cards</span>, KandZ

To remove a vNIC, just select the vNIC and you will find a Remove button, a little bit before the bottom. See the picture above.

To add and remove a vNIC with PowerShell you use the add-vmnetworkadapter and remove-vmnetworkadapter:

add-vmnetworkadapter -vmname vm2 -switchname "Realtek RTL"

, <span>Windows Server 2016 – Hyper-V Add/Remove virtual network cards</span>, KandZ

Use get-vmswitch to find the vSwitch

More information about add-vmnetworkadapter here.

 

remove-vmnetworkadapter -vmname vm2 -vmnetworkadaptername "Network Adapter"

, <span>Windows Server 2016 – Hyper-V Add/Remove virtual network cards</span>, KandZ

3 vNICs with the same name, all 3 have been removed. To list all the vNICs for a VM use the following:

get-networkAdapter -vmname -vm2

More information about remove-vmnetworkadapter here

 

https://kandz.me/windows-server-2016-hyper-v-add-remove-virtual-network-cards

 

 

30620cookie-checkWindows Server 2016 – Hyper-V Add/Remove virtual network cardsWindows Server 2016 – Hyper-V Add/Remove virtual network cards

Related posts