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