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

来源:互联网 发布:小米手环抢购软件 编辑:程序博客网 时间:2024/05/21 22:21

克隆出来的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=eth1HWADDR=08:00:27:5A:7D:0BTYPE=EthernetUUID=05657a14-adee-4dbb-93b0-2caf19833b15ONBOOT=yesNM_CONTROLLED=yesBOOTPROTO=staticIPADDR=192.168.0.109NETMASK=255.255.255.0GATEWAY=192.168.0.1DNS1=192.168.0.1


0 0
原创粉丝点击