Unable to resolve network after porting CentOS virtual machine
1, after migration, there will be one of the network card can not start (eth0 or eth1)
[[email protected] ~]# ifup eth0
warning:deprecated config file/etc/modprobe.conf, all config files belong into/etc/modprobe.d/.
warning:deprecated config file/etc/modprobe.conf, all config files belong into/etc/modprobe.d/.
Device eth0 does not seem to be present, delaying initialization.
2, delete file
[[email protected] ~]# mv/etc/udev/rules.d/70-persistent-net.rules/etc/udev/rules.d/ 70-persistent-net.rules.bak
3, comment out the file Ifcfg-eth0 and Ifcfg-eth01 mac address (HWADDR)
[[email protected] ~ ]# cat/etc/sysconfig/network-scripts/ifcfg-eth0
device=eth0
bootproto=static
#HWADDR = "XX: XX:XX:XX:XX:XX "
Onboot=yes
type=ethernet
4, restart the server (restart Nic bad)
Extension Description:
Caused by the problem is mainly because we unplug the hard drive from one server to another server, the MAC address of the two server network card is inconsistent, so we need to clear the original server configuration file specified MAC address, restart the new server after restarting the MAC address, the network card boot is also successful.
Of course the inconsistency between the MAC address information of the NIC and the configuration file caused by a similar situation causes the NIC to start prompting a similar error.
The network configuration is not valid after a CentOS virtual machine copy move