The order of vmnic# may change when running Get-VirtualSwitch command
search cancel

The order of vmnic# may change when running Get-VirtualSwitch command

book

Article ID: 419804

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

When using the Get-VirtualSwitch command to display NICs, they are typically listed in ascending order as follows:

PS C:\Users\Administrator>  Get-VirtualSwitch | Select-Object Name,Nic,Mtu

Name     Nic       Mtu
----     ---               ---
vSwitch0 {vmnic0, vmnic1} 1500



However, in rare cases, the order may differ as follows:

PS C:\Users\Administrator>  Get-VirtualSwitch | Select-Object Name,Nic,Mtu
Name     Nic               Mtu
----     ---               ---
vSwitch0 {vmnic1, vmnic0} 1500

Resolution

This is normal behavior. You can ignore and use "Get-NicTeamingPolicy" command if you need to check the priority of NIC failover.