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

克隆出来的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


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值