您的位置:首页 > 其它

Device eth0 does not seem to be present,delaying initialization.

2015-09-04 22:54 495 查看
克隆出来的CentOS

配置好IP后出现

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

1.查看MAC地址
[jifeng@feng02 ~]$ cat /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}=="08:00:27:54:7d:be", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:5a:7d:0b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
[jifeng@feng02 ~]$


2.修改MAC地址
HWADDR修改为08:00:27:5A:7D:0B
DEVICE修改为eth1

[jifeng@feng02 ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth1
HWADDR=08:00:27:5A:7D:0B
TYPE=Ethernet
UUID=05657a14-adee-4dbb-93b0-2caf19833b15
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.0.109
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
DNS1=192.168.0.1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: