centos 网卡错误 Device eth0 does not seem to

来源:互联网 发布:用python写网络爬虫 编辑:程序博客网 时间:2024/06/05 02:22

在使用vmware迁移linux系统过程中,发现部署后的linux系统无法启动网卡

报错为

Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization

linux <wbr>centos <wbr>网卡错误 <wbr> <wbr>Device <wbr>eth0 <wbr>does <wbr>not <wbr>seem <wbr>to

错误原因,是因为linux网卡绑定了原mac地址导致

解决方法为

1.使用ifcnfig -a 查看当前主机mac地址

linux <wbr>centos <wbr>网卡错误 <wbr> <wbr>Device <wbr>eth0 <wbr>does <wbr>not <wbr>seem <wbr>to

2.修改eth0网卡硬件地址为当前地址

vi /etc/sysconfig/network-scripts/ifcfg-eth0

linux <wbr>centos <wbr>网卡错误 <wbr> <wbr>Device <wbr>eth0 <wbr>does <wbr>not <wbr>seem <wbr>to

保存退出

其实在network-scripts下查看是没有eth1网卡的

linux <wbr>centos <wbr>网卡错误 <wbr> <wbr>Device <wbr>eth0 <wbr>does <wbr>not <wbr>seem <wbr>to

3.删除70-persistent-net.rules文件

rm -rf /etc/udev/rules.d/70-persistent-net.rules

4.重启系统

reboot -h now

 

一切OK

转自:http://blog.sina.com.cn/s/blog_44f9e27501017hku.html

0 0
原创粉丝点击