VMware CentOS Device eth0 does not seem to be present
2015-09-04 16:42
591 查看
在VMware里克隆出来的CentOS Linux。。
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]
![](http://images2015.cnblogs.com/blog/614692/201509/614692-20150904164123403-225302944.jpg)
解决办法:
首先,打开/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:8f:89:9
7",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x1022:0x2000
(pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:0c:29:50:bd:1
7", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"
记录下,eth1网卡的mac地址00:0c:29:50:bd:17
接下来,打开/etc/sysconfig/network-scripts/ifcfg-eth0
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
将 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
正常了。
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]
![](http://images2015.cnblogs.com/blog/614692/201509/614692-20150904164123403-225302944.jpg)
解决办法:
首先,打开/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:8f:89:9
7",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x1022:0x2000
(pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:0c:29:50:bd:1
7", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"
记录下,eth1网卡的mac地址00:0c:29:50:bd:17
接下来,打开/etc/sysconfig/network-scripts/ifcfg-eth0
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
将 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
正常了。
相关文章推荐
- Linux root 用户使用 chrome
- linux服务器操作系统的选择
- Linux Makefile学习(二)
- 用CentOS 6.7 构建FTP服务器实例
- 最小化安装Centos7后的部署(个人)
- Linux程序编译速度提高方法
- linux sleep用法
- [转载] Linux 文件系统结构介绍
- CentOS 安装 ffmpeg
- 嵌入式Linux驱动开发日记
- Linux学习:Linux基础命令集(4)
- linux下sed和awk命令使用入门
- Linux 磁盘管理
- linux service命令
- Linux下的Java卸载与安装
- 【linux主机管理面板AMH4.2】安装使用教程,集成PHP建站环境
- Linux用户和用户组管理
- Linux下MySQL数据库常用基本操作
- 常见linux命令释义(第三天)
- 离线安装CDH5.4.5 on CentOS6.5