RHEL 6.6 eth0 changes to eth2 when cloned VM
Last week we had a servers cloned running
9.0.2.1-347714.rhel6.ga.x86_64
Red Hat Enterprise Linux Server release 6.6 (Santiago)
eth2 Link encap:Ethernet HWaddr 00:50:56:9F:63:EE
inet addr:10.23.122.18 Bcast:10.23.122.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe9f:63ee/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Now setting it as eth2 was not an an issue , it comes up and I can access fro outside etc, but the Application gives a lot of errors, and the vendor
has requested that it be set back to eth0, now I have had a look at the net and tried
1) deleting the /etc/udev/rules.d/70-persistent-net.rules file and rebooting, still comes back as eth2
2) modified /etc/sysconfig/network-scripts/ifcfg-eth2 (change and make it ifcfg-eth2)
3) Modifying /etc/udev/rules.d/70-persistent-net.rules info in the file to look at eth0 like below
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:9f:63:ee", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
4) and then reboot , still comes up as eth2
5) tried renaming the NIC
ip link set eth2 eth0
Error: either "dev" is duplicate, or "eth0" is a garbage
Anybody have any ideas how I can get the server up as the original name of link eth0 ?
Zelko
Responses
That's strange, those are the things RHEL6 uses to persistently name devices. I'd now check the actual devices match the MACs in the config files, check for anything silly in rc.local or /sbin/ifup-local, check for additional udev rules or misnamed network scipts (eg: ifcfg-eth0.dontrun will still be run), and read logs for device renames in dmesg and /var/log/messages after boot.
Hi,
could this discussion help you? It looks it's the same issue as yours...
//Zdenek
Malkeet, make sure the values in /etc/udev/rules.d/70-persistent-net.rules match your actual network interface files. Also see (for reference, your mileage may vary, no warrantee) this link in a Red Hat discussion
Not that this bit will solve the issue, but this link https://access.redhat.com/solutions/58610 may give some background.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
