Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1908583
  • 博文数量: 346
  • 博客积分: 10221
  • 博客等级: 上将
  • 技术积分: 4079
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-01 19:43
文章分类

全部博文(346)

文章存档

2012年(1)

2011年(102)

2010年(116)

2009年(127)

我的朋友

分类: LINUX

2011-01-09 01:18:53



启动的时候,提示:

Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization. [FAILED]
service network start的时候也是一样的提示...

lspci的时候可以看到

02:00.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE](rev 10)
lsmod 的时候可以看到

pcnet32 31476 0
这样看来的话,驱动程序应该没有什么问题

查了很多的资料,没有找到解决办法
后来找到这个帖子

删除 /etc/udev/rules.d/70-persistent-net.rules 后,重启机器后就ok了!

这个问题应该多见于 Vmware中,猜想造成这个问题的原因应该是虚拟机是从另一个机器拷过来的,一个网卡被认作2个网卡了,70-persistent-net.rules中出现 了2个mac地址的情况

至于/etc/udev/rules.d/ 这个配置文件目录下的文件的功能还不了解,希望大家不吝指教~

原 文内容如下:

Cloning Ubuntu Server 7.10 on VMware ESX
February 18, 2008, 2:49 pm

After cloning a virtual machine running Ubuntu Server 7.10 I found that it didn’t have any network available. Restarting networking gave:

sudo /etc/init.d/networking restart

* Reconfiguring network interfaces...
eth0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.

The problem lies in the fact that ethernet MAC addresses are cached. You need to remove a file to clear the cached value:

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

After a restart of your server you should have networking back again.

I also had to edit the following files to change the static ip addresses and hostname:

* /etc/hosts – change ip address and hostnames
* /etc/hostname – change hostname
* /etc/network/interfaces – change ip address
阅读(1150) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-03-08 20:32:53

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com