1. 程式人生 > >Device eth0 does not seem————解決方法

Device eth0 does not seem————解決方法

連接失敗 rip del work 虛擬機 原來 delay 就會 udev

重啟網絡服務器的時候會提示如下錯誤:

Device eth0 does not seem to be present,delaying initialization.
網上搜索後才發現原因所在:原來vmware在復制了虛擬機後會自動生成一個新的網卡設備供該虛擬機使用,比如原先的網卡是eth0,復制虛擬機後後就會增加eth1。但是由於沒有生成相應的/etc/sysconfig/network-scripts/ifcfg-eth1文件,導致網絡連接失敗,這個應該是vmware的一個bug。

查看網卡配置文件/etc/udev/rules.d/70-persistent-net.rules,可以看到多出了一個eth1的配置。

刪除eth0 將eth1改為0 然後去網卡文件裏面刪除MAC地址

reboot

完成

Device eth0 does not seem————解決方法