NIC ordering starts from eth1 in Linux Guest OS
search cancel

NIC ordering starts from eth1 in Linux Guest OS

book

Article ID: 337237

calendar_today

Updated On:

Products

VMware

Issue/Introduction

In RHEL 6, SUSE Linux 11, and Ubuntu, you might experience these symptoms:

  • NIC ordering starts from eth1.
  • After deleting and adding NICs from Lab Manager, when you deploy the virtual machine, the NIC numbering does not rotate back to take the deleted slots.


Environment

VMware vCenter Lab Manager 4.0.x

Resolution

The latest Linux distributions contain persistent rules for NICs. The 70-persistent-net.rules file contains the NIC and MAC address bindings.
On deleting a NIC from Lab Manager, the corresponding NIC and MAC address entry is not deleted from the 70-persistent-net.rules file.
However, these rules are meant for the MAC and Ethernet name bindings for the physical NICs and are not relevant in the case of virtual NICs.

To address these issues:

  1. Back-up and Delete the /etc/udev/rules.d/70-persistent-net.rules and /lib/udev/rules.d/75-persistent-net-generator.rules files.
  2. Restart the guest operating system.

If you remove a NIC from an Ubuntu guest operating system, see NIC-MAC binding is not retained when a NIC is re-added to an Ubuntu 10.10 or later virtual machine (2003882).