Why after migrating or cloning a Virtual Machine, the network interface was renamed from ethX to ethY on RHEL Server ?

Solution Verified - Updated -

Issue

  • After migrating or cloning a Virtual Machine, the network was renamed from ethX to ethY
  • The network does not work even if the ifcfg-eth0 file is set up accordingly.
  • Also in some cases where image clone was used to create a new Virtual Machine, changing eth0 to eth1
  • The following resolution is also useful if you are renaming the Network device from eth1 to eth2 for example.

Environment

  • Guest: Red Hat Enterprise Linux 6
  • Host/Hypervisor: VMWare vSphere,Microsoft Hyper-V

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content