Resolution of the network card cannot be started after VMware cloning CentOS

Source: Internet
Author: User

Comment out the original eth0 line, and then change the generated eth1 to eth0 (you can add this file if you don't have the file)

[Email protected] ~]# Cat/etc/udev/rules.d/70-persistent-net.rules
# This file is automatically generated by the/lib/udev/write_net_rules
# program, run by the Persistent-net-generator.rules rules file.
#
# can modify it, as long as you keep each rule to a single
# line, and change is only the value of the Name= key.

# PCI Device 0x8086:0x100f (e1000)
#SUBSYSTEM = = "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:8c:61:3e", attr{type}== "1", kernel== "eth* ", name=" eth0 "

# PCI Device 0x8086:0x100f (e1000)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:3c:e6:09", attr{type}== "1", kernel== "eth*" , name= "Eth0"
[Email protected] ~]#

Finally modify the network card configuration file

[Email protected] ~]# Cat/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0
Type=ethernet
uuid=fb802c67-087a-4f50-812b-f3d20053aa4b
Onboot=yes
Nm_controlled=yes
Bootproto=none
hwaddr=00:0c:29:3c:e6:09
ipaddr=192.168.100.212

Prefix=24
gateway=192.168.100.1
dns1=192.168.100.1
Defroute=yes
Ipv4_failure_fatal=yes
Ipv6init=no
Name= "System eth0"
[Email protected] ~]#

Finally reboot the system


This article is from the "Sim blog," Please make sure to keep this source http://mitac.blog.51cto.com/1081911/1629060

Resolution of the network card cannot be started after VMware cloning CentOS

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.