在虚拟机中安装cent os系统,然后配置网络

执行命令ifconfig

没有看到eth0的信息;

重启网卡报错:

service network restart

Shutting down loopback insterface:                                                                                                     [  OK  ]

Bringing up loopback insterface:                                                                                                          [  OK  ]

Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                    [FAILED]

linux 解决 Device eth0 does not seem to be present_mac地址

解决办法:

首先,打开/etc/udev/rules.d/70-persistent-net.rules内容如下面例子所示:

vi /etc/udev/rules.d/70-persistent-net.rules 

linux 解决 Device eth0 does not seem to be present_mac地址_02

记录下,eth1网卡的mac地址00:1c:42:d3:94:20


打开/etc/sysconfig/network-scripts/ifcfg-eth0

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

将 DEVICE="eth0"  改成  DEVICE="eth1"  ,

将 HWADDR=*** 改成上面的mac地址  HWADDR=00:1c:42:d3:94:20

 linux 解决 Device eth0 does not seem to be present_重启_03

重启网络

service network restart

linux 解决 Device eth0 does not seem to be present_重启_04

 linux 解决 Device eth0 does not seem to be present_d3_05


解决