Resolved the physical address error of the cloned CentOS Nic!

Source: Internet
Author: User

Resolved the physical address error of the cloned CentOS Nic!

The physical address of the cloned CentOS Nic is incorrect!


To change the IP address at startup, restart the service: service network restart displays the following prompt:


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]


Why is there no eth0?
Ifconfig does not exist. It is eth1 and the hardware address has changed. Therefore:
Vim/etc/udev/rules. d/70-persistent-net.rules
Change eth1 to eth0. The error is still prompted after restart.
If ifconfig is already eth0, the fault should be in the configuration file:
Check it out:
[Linux @ centos ~] $ Cat/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE = eth0
HWADDR = 08: 00: 27: 4f: 47: 15
TYPE = Ethernet
UUID = 122331fc-6c4a-4fe1-9fab-b11f46156b59
ONBOOT = yes
NM_CONTROLLED = yes
# BOOTPROTO = dhcp
BOOTPROTO = static
IPADDR = 192.168.1.3
NETMASK = 255.255.255.0
NETWORK = 192.168.1.1
BROADCAST = 192.168.1.255
The physical address of the nic and the new physical address of the VM Nic do not match. Change it to the mac address obtained by using ifocnfig-a. After the restart, everything will be OK.

Related Article

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.