CentOs网络重启问题:Bringing up interface eth0: Device eth0 does not seem to be presen

来源:互联网 发布:十年前流行的网络歌曲 编辑:程序博客网 时间:2024/05/17 02:22

造成这一现象的多数是发生在虚拟机拷贝过程中造成的,现象如下:

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]


解决方案如下:

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

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

# This file was automatically generated by the /lib/udev/write_net_rules

# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:50:bd:17", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

记录mac地址:00:0c:29:50:bd:17

第二: 编辑 /etc/sysconfig/network-scripts/ifcfg-ech0

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

将 DEVICE="eth0"  改成  DEVICE="eth1"  ,
将 HWADDR="00:0c:29:8f:89:97" 改成上面的mac地址  HWADDR="00:0c:29:50:bd:17"


第三:重启网络服务

# service network restart
或者

# /etc/init.d/network restart

第四:

ok。



0 0
原创粉丝点击