ESXi users frequently seek to rename or modify the default vmnic# aliases that correlate with physical Network Interface Card (NIC) MAC addresses on their hosts. The default enumeration can sometimes be non-intuitive, leading to a desire for custom naming.
VMware ESXi 6.x
VMware ESXi 7.x
VMware ESXi 8.x
VMware ESXi determines vmnic# aliases based on hardware addressing information provided by the host's firmware. There are currently no direct, supported workflows within the vSphere environment to manually change these assigned VMNIC aliases. The numbering is primarily hardware-driven and largely static once assigned under normal operating conditions.
There aren't any current workflows to change the VMNIC# alias assignment directly from your vSphere environment. ESXi enumerates VMNIC aliases based on hardware addressing information that is fed to the hypervisor from the host's firmware.
Below are details on how VMNIC# aliasing is determined, but for more information please see How VMware ESXi determines the order in which names are assigned to devices
New installation/autodeploy
In the case of a new installation or autodeploy with no host profile, the device manager will query the machine's firmware to get location information for each port, generally including which ports are onboard, which are in pluggable slots, and how those ports and slots are numbered on the system's case. ESXi then assigns aliases to the ports from 0 upwards in order of onboard ports first, then ports not described by the firmware, then ports in pluggable slots.
If a system has:
| Physical Port | Device Alias |
| Onboard port 1 | vmnic0 |
| Onboard port 2 | vmnic1 |
| Slot #3 port 1 | vmnic2 |
| Slot #5 port 1 | vmnic3 |
| Slot #5 port 2 | vmnic4 |
Hardware changes and device aliases
Changes to the hardware configuration are subject to these rules:
ESXi Upgrades
Upgrades from one release of ESXi to the next, including autodeploy configurations, do not change the aliases previously assigned to the system's ports. This includes upgrading from prior releases to ESXi 5.5 and later.
Note: In rare cases, aliases can change across an ESXi upgrade or patch installation, due to ESXi parsing the firmware device location information. For example, in ESXi, NICs are named in vmnicN format, where N is a number ranging from 0 upward, where other vendors may name them different: ESXi vmnic order changed after adding more vNICs in UCS Service Profile.
If you need to update/change the device alias mapping for vmnicN, please follow the procedure under "Changing the names assigned by the ESXi host" in knowledge article: How VMware ESXi determines the order in which names are assigned to the devices.
New Installation / Autodeploy (without Host Profile)
Upon a fresh installation or Autodeploy without a host profile, ESXi assigns aliases from vmnic0 upwards based on the following hierarchy:
Example Scenario:
If a system has:
The device aliases would typically be assigned as follows:
| Physical Port Location | Device Alias |
|---|---|
| Onboard port 1 | vmnic0 |
| Onboard port 2 | vmnic1 |
| Slot #3 port 1 | vmnic2 |
| Slot #5 port 1 | vmnic3 |
| Slot #5 port 2 | vmnic4 |
B. Hardware Changes and Device Aliases
When network cards are added or removed after the initial ESXi installation, the following rules apply:
vmnic# aliases.C. ESXi Upgrades
Upgrades from one ESXi release to another, including Autodeploy configurations, generally do not change the aliases previously assigned to the system's ports. This includes upgrades from prior releases to ESXi 5.5 and later.
Important Note: In rare instances, aliases can change across an ESXi upgrade or patch installation. This can occur due to ESXi parsing firmware device location information differently, or changes in how vendors present hardware to the hypervisor (e.g., changes in UCS Service Profiles). If you encounter a situation where vmnic aliases have unexpectedly changed, further investigation into the specific firmware and ESXi version changes is recommended.
5. Additional Information