Bringing up interface eth0: Device eth0 does not seem to be presen

上一篇 / 下一篇  2013-05-17 21:34:25 / 个人分类:虚拟机

在VMware里克隆出来的CentOSLinux。。

:hL jcd(kd0d0ifconfig...没有看到eth0.。然后重启网卡又报下面错误。51Testing软件测试网`,t'B%{c:b dr,UB

51Testing软件测试网t[#CaP

故障现象:51Testing软件测试网$ZFQ}+m%w%~8h!?

NL8\7U+T1]0service network restart
_#D2[R_`&bC_&u#g0Shutting down loopback insterface:                                                                                                     [  OK  ]51Testing软件测试网@j;qRXj0G_!j
Bringing up loopback insterface:                                                                                                          [  OK  ]51Testing软件测试网3G'm%h\~T3_Ym
Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                    [FAILED]51Testing软件测试网L5sq'W'a1_au}#r

#w!j8e9_S1bV0
0qiz1P fKA z8x051Testing软件测试网/o g$O ?Ma)O@ m

51Testing软件测试网X'{@jk3bQV ob

解决办法:51Testing软件测试网EQ Z$u)DC ~P

uE&kQs5Z^0Q@0首先,打开/etc/udev/rules.d/70-persistent-net.rules内容如下面例子所示:

)@ha7O^ hiB(UZ0

-i3cZ}8Lc W0# vi /etc/udev/rules.d/70-persistent-net.rules51Testing软件测试网UZQ1E{b%B"{
# This file was automatically generated by the /lib/udev/write_net_rules51Testing软件测试网 Wa Ct5^8a
# program, run by the persistent-net-generator.rules rules file.51Testing软件测试网p'nM j Q2rO
#
(i"z.\Q~!Y/R0# You can modify it, as long as you keep each rule on a single
9D0g6nCr F gF0# line, and change only the value of the NAME= key.
aC~8{3e _0# PCI device 0x1022:0x2000 (pcnet32)
9N"?"Yv5_1j0SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8f:89:951Testing软件测试网_TxKO_v
7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
}2u(f2A ^*K2v&Ot0# PCI device 0x1022:0x2000 (pcnet32)
/~-K%Dv8~'F0SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:50:bd:151Testing软件测试网&q%f;]~~lS
7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

W%K;\4X5pg;OnK0

3kVlYT_6X2?$E8T0记录下,eth1网卡的mac地址00:0c:29:50:bd:17

w.m:A%KnS051Testing软件测试网X3[aK:A P

接下来,打开/etc/sysconfig/network-scripts/ifcfg-eth051Testing软件测试网T&VxAY2n:mS

!EM5[4PrV l^#Z0# vi /etc/sysconfig/network-scripts/ifcfg-eth0

D W2xS??6t051Testing软件测试网 H6W G'|3f

将 DEVICE="eth0"  改成  DEVICE="eth1"  ,51Testing软件测试网/^v@d d m:H[
将 HWADDR="00:0c:29:8f:89:97" 改成上面的mac地址  HWADDR="00:0c:29:50:bd:17"51Testing软件测试网e z2Re ],~)MIp;A

51Testing软件测试网zf"g$xU }9j/U c A

最后,重启网络

:s(m$E-is0

[ G\p2^%\0# service network restart
%M Y%i X-Id0或者

uO zZG.R{051Testing软件测试网Na.P(?0E,_q

# /etc/init.d/network restart51Testing软件测试网3i O0A g#ofG+o4_x


TAG: CentOS centos 虚拟机 网卡

 

评分:0

我来说两句

luoriver

luoriver

北漂一族,80后,计算机专业,从事SIP相关软件测试3年,热爱生活,崇尚运动。 爱看WWE、公开课。爱钻“牛角尖”,这就是我:luorivr!!!!!

日历

« 2024-04-28  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 345860
  • 日志数: 96
  • 图片数: 1
  • 建立时间: 2012-12-27
  • 更新时间: 2014-05-03

RSS订阅

Open Toolbar