You can migrate
both physical and virtual network adapters to a vSphere standard switch
simultaneously.
Prerequisites
Verify that you are connected
to a
vCenter
Server
system.
Procedure
-
Get the physical network
adapters that you want to migrate.
$pNics = Get-VMHostNetworkAdapter -VMHost $vmhost -Physical
-
Get the virtual network
adapters that you want to migrate.
$vNicManagement = Get-VMHostNetworkAdapter -VMHost $vmhost -Name vmk0
$vNicvMotion = Get-VMHostNetworkAdapter -VMHost $vmhost -Name vmk1
-
Get the vSphere standard
switch to which you want to migrate the network adapters.
$vSwitch = Get-VirtualSwitch -VMHost $vmhost -Name vSwitch0
-
Migrate all network
adapters to the vSphere standard switch.
Add-VirtualSwitchPhysicalNetworkAdapter -VirtualSwitch $vSwitch -VMHostPhysicalNic $pNics -VMHostVirtualNic $vNicManagement,$vNicvMotion