The following three steps can be quickly resolved
First step: Modify or delete a file/etc/udev/rules.d/7 0-persistent-net.rules
[Email protected] ~]# Mv/etc/udev/rules.d/70-persistent-net.rules/etc/udev/rules.d/70-persistent-net.rules.bak
Step Two: Modify the NIC configuration file/etc/sysconfig/network-scripts/ifcfg-eth0
Comment out the network card or Mac information.
Device=eth0
#HWADDR =00:50:56:aa:31:ec
Type=ethernet
#UUID =8e8f1d18-f7fa-47a0-9430-07bfa8705120
Onboot=yes
Nm_controlled=yes
Bootproto=static
ipaddr=192.168.1.30
netmask=255.255.255.0
gateway=192.168.1.254
In the third step, restarting the server reboot or start_ude command regenerates the 70-persistent-net.rule file
can be both.
This article is from the "Breght Moon" blog, make sure to keep this source http://liqingbiao.blog.51cto.com/3044896/1683712
Use VMware to clone virtual machine, error when configuring NIC