ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How-to rename VMNIC in VMware ESXi

By Vladan SEGET | Last Updated: April 16, 2014

Shares

The problem of assigning different name to your VMNIC is not new. Several sources reported  NIC enumeration that occurs after applying a BIOS update, resulting a connectivity loss. But there is a way to fix it even if rename VMNIC in VMware ESXi through the UI isn't possible.

In my case it was simple a cosmetic bug, as I did not have problems with connectivity but only with a name. It was my lab issue only on one of my hosts where after installation, one of my Infiniband ports got assigned to VMNIC0 and I did not liked it.

Can't really remember what exactly I did (I think that I tried different versions of the driver, installed and uninstalled the VIB I think)  but one of my hosts got that IB add on card assigned with not very sexy name. In fact my dual card infiniband adapter looks like this and there is no way to change it through the UI via the vSphere client or through the web client.

How to rename vmnic

Luckily there was quite a few resources pointing directly to the /etc/vmware/esx.conf file, which allows the modification. Note that reboot of the host is necessary.

You might want to backup before you making any changes, no? Let's see how:

Use this command to backup:

cp /etc/vmware/esx.conf /etc/vmware/esx.conf.old

You can look at your nics through the CLI with this command:

esxcfg-nics -l

The step-by step for those struggling with putty:

  1. Open Putty and type “cd /etc/vmware”
  2. Then type “vi esx.conf”
  3. scroll further down and untill you see Dev/ids which follow with a =vmnic#
  4. Type i  (for Insert)
  5. Then you can go the VMnic you wish to modify and use Del or Backspace to modify the name
  6. Hit “ESC” key
  7. Type “:wq”  to quit.
  8. Type “reboot” to reboot the host

Here is a quote from the source on how to do it the supported way as changing the esx.conf is not officially supported.

Note: Changing VMNIC names by editing the esx.conf file is not supported by VMware.

To reorder the numbering on a host which has an undesired VMNIC numbering schema:

  1. Place the ESXi/ESX host into maintenance mode.
  2. Remove all VMNICs from the virtual switches except vmnic0, which is used for management. Make note of which VMNICs are assigned to which vSwitches.
  3. Shut down the ESXi/ESX host.
  4. Remove/disable all NICs except vmnic0. On-board NICs can be disabled in the BIOS. NICs installed in PCI slots should be physically removed. Make note of the slot each one came from.
  5. Boot the server. At boot time, all removed/disabled VMNICs are removed from the esx.conf file.
  6. Shut down the ESXi/ESX host.
  7. Add/enable all required NICs.Enable the on-board NICs in the BIOS, and re-insert the PCI bus NICs into the slots they came from.
  8. Boot the ESXi/ESX host. All VMNICs are assigned per segment, bus, slot, and function ID, and are ordered correctly.
  9. Assign VMNICs back to the virtual switches they were assigned to before.
  10. Exit maintenance mode on the ESXi/ESX host.

There is another way to rename VMNIC – through host profiles (if you're on Enterprise Plus). Basically it would consist of creating a host profile from your host which has the VMNICs naming problem and then changing the VMNIC label through the networking configuration section. But I havent's tested it.

An interesting post from Florian Grehl at virten.net showing that the VMNIC numbering has changed on ESXi 5.5. There is a difference between the ESXi 5.1 and 5.5 where you'll see that the port numbers are now the way ESXi numbers the VMNICs. Check out Florian's post here.

Source: VMware https://kb.vmware.com/kb/2019871 and PCI card installation and removal recommendation for ESX/ESXi

Shares
Vote !

| Filed Under: How To

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Dustin Lema says

    February 16, 2015 at 4:10 pm

    Just a clarification – you must change your vmnic numbers EVERYWHERE in the esx.conf file….not just the alias area which is where I first tried.

    So if you see vmnic3 five separate times, then you must change it in 5 separate places.

    Worked great though, thank you!

  2. Andreas Cederlund says

    April 17, 2020 at 7:21 pm

    Found this older article when I had some issues with this, and VMware actually has some new ways to do this depending on ESXi version.

    Check here: https://kb.vmware.com/s/article/2091560

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam confirming vSphere 9.0 and ESXi 9 upcoming support
  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in