1、遷移以後,會存在其中一個網卡無法啓動(eth0 or eth1)
[root@ ~]# 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、刪除文件
[root@ ~]# mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.bak
3、註釋掉文件ifcfg-eth0及ifcfg-eth01中MAC地址(HWADDR)
[root@ ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static #HWADDR=“XX:XX:XX:XX:XX:XX” ONBOOT=yes TYPE=Ethernet
4、重啓服務器(重啓網卡不好使)
延展說明:
引起這樣的問題主要是因爲我們拔硬盤將硬盤從一臺服務器搬到另一臺服務器以後,兩臺服務器網卡的MAC地址不一致,所以我們需要清除原來服務器配置文件指定的MAC地址,重啓以後重新加載新服務器的MAC地址,網卡啓動也就成功了。
當然由類似情況導致的網卡MAC地址信息與配置文件中的不一致都會導致網卡啓動提示類似的錯誤。