RHEL6.3 resolution of NIC startup failure after cloning Virtual Machine

Source: Internet
Author: User
RHEL6.3 is installed in the testing environment of the company. After cloning the virtual machine, the cloned Virtual Machine Nic cannot start. The following error is reported: [root @ localhostDesktop] # servicenetworkrestartShuttingdownloopbackinterface: & n

RHEL6.3 is installed in the testing environment of the company. After cloning the virtual machine, the cloned Virtual Machine Nic cannot start. The following error is reported:
[Root @ localhost Desktop] # service network restart
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth0: Error: No suitable device found: no device found for connection 'System eth0 '.
[FAILED]
 
When you execute the ifconfig command, you will find that the configuration file of the eth1 Nic is/etc/sysconfig/network-scripts/ifcfg-eth0.
 
[Root @ localhost network-scripts] # ifconfig | grep addr
Eth1 Link encap: Ethernet HWaddr 00: 0c: 29: f4: 95: e3
Inet6 addr: fe80: 20c: 29ff: fe5c: 65b7/64 Scope: Link
Interrupt: 19 Base address: 0x2024
Inet addr: 127.0.0.1 Mask: 255.0.0.0
Inet6 addr: 1/128 Scope: Host
[Root @ localhost network-scripts] # ls
Ifcfg-eth0 ifdown-isdn ifup-aliases ifup-plusb init. ipv6-global
Ifcfg-lo ifdown-post ifup-bnep ifup-post net. hotplug
Ifdown-ppp ifup-eth ifup-ppp network-functions
Ifdown-bnep ifdown-routes ifup-ippp ifup-to-date-routes network-functions-ipv6
Ifdown-eth ifdown-sit ifup-ipv6 ifup-sit
Ifdown-ippp ifdown-tunnel ifup-isdn ifup-tunnel
Ifdown-ipv6 ifup-plip ifup-wireless
[Root @ localhost network-scripts] #

This problem occurs because the MAC address of the virtual network card allocated to the operating system by the virtual machine is different. The MAC address of the network adapter of the first system is recorded in/etc/udev/rules. d/70-persistent-net.rules and named eth0. The MAC address of the NIC of the newly cloned system is also recorded in this file, which is the same as that of the previous system, so there is a conflict.
 
You can check the content of the 70-persistent-net.rules file of the two hosts.
 
First system:
[Root @ localhost rules. d] # cat 70-persistent-net.rules
# This file was automatically generated by the/lib/udev/write_net_rules
# Program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# Line, and change only the value of the NAME = key.
 
# PCI device 0x1022: 0x2000 (pcnet32)
SUBSYSTEM = "net", ACTION = "add", DRIVERS = "? * ", ATTR {address} =" 00: 0c: 29: f4: 95: e3 ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth0"

 
Cloned system:
 
[Root @ localhost rules. d] # cat 70-persistent-net.rules
# This file was automatically generated by the/lib/udev/write_net_rules
# Program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# Line, and change only the value of the NAME = key.
 
# PCI device 0x1022: 0x2000 (pcnet32)
SUBSYSTEM = "net", ACTION = "add", DRIVERS = "? * ", ATTR {address} =" 00: 0c: 29: f4: 95: e3 ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth1"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.