CentOS Linux解决网卡启动时候报Device eth0 does not seem to be present错误
我要评论2014/05/19 13:02:05 来源:绿色资源网编辑:www.downcc.com 评论:0点击:1048次
在VMware里克隆出来的CentOSLinux。。
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]
解决办法:
首先,打开/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
正常了。
关键词:CentOS,Linux,网卡
相关阅读
- 11-24CentOS-6.4无线上网命令行配置
- 10-22CentOS+nginx+uwsgi+Python 多站点环境搭建
- 09-02CentOS服务器中安装MySQL数据库
- 08-29CentOS安装中文支持(linux中文文件名乱码)
- 07-27linux/centos rsync安装配置教程(实测通过)
- 07-07Centos6.0 x64下搭建LAMP环境
- 01-09CentOS 6.4 最新安装教程(附下载地址)
- 06-23CentOS 6.2 安装教程(附下载地址)
- 03-15U盘装CentOS 6.4失败经验分享
- 04-17Linux VPS CentOS 5 实例图解搭建网站(新手必看)