在使用vmware遷移linux系統(tǒng)過程中,發(fā)現(xiàn)部署后的linux系統(tǒng)無法啟動網(wǎng)卡
報錯為
Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization
錯誤原因,是因為linux網(wǎng)卡綁定了原mac地址導(dǎo)致
解決方法為
1.使用ifcnfig -a 查看當(dāng)前主機mac地址
2.修改eth0網(wǎng)卡硬件地址為當(dāng)前地址
vi /etc/sysconfig/network-scripts/ifcfg-eth0
其實在network-scripts下查看是沒有eth1網(wǎng)卡的
rm -rf /etc/udev/rules.d/70-persistent-net.rules
4.重啟系統(tǒng)
reboot -h(huán) now
一切OK