问题描述:
在VMware里克隆出来的CentOS Linux,开机执行命令:ifconfig...没有看到eth0网卡。然后重启网卡又报以下错误:
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"

最后,重启网络

# /etc/init.d/network restart

正常了。

本文出自:http://sunxy.blog.51cto.com/9357725/1723480/

最新文章

  1. 页面上常用的一些小功能--QQ、回到顶部
  2. 【TypeScript】如何在TypeScript中使用async/await,让你的代码更像C#。
  3. Sharepoint学习笔记—习题系列--70-576习题解析 -(Q6-Q8)
  4. SpringMVC总结帖
  5. WordPress Duplicator 0.4.4 Cross Site Scripting
  6. IC封装图片认识(一):BGA
  7. 解决未能启动服务“VMware Authorization Service”
  8. 本地yum库的搭建
  9. shortcut to open a linux terminal
  10. (java web后端方向)如何让你的简历为你争取到更多的面试机会,内容来自java web轻量级开发面试教程
  11. 第七周博客作业<西北师范大学|李晓婷>
  12. 第一章 Java语言概述1
  13. 洛谷P1809 过河问题_NOI导刊2011提高(01)
  14. Kubernetes持久化存储1——示例
  15. 关于eclipse项目创建maven项目目录不正常的解决方案
  16. PKUWC 2019&WC 2019爆零记
  17. 用js来实现那些数据结构03(数组篇03-排序及多维数组)
  18. MAC OS中Eclipse无法导入(import)工程怎么办?
  19. Eclipse中安装JBoss Tools插件
  20. Entity Freamwork CodeFirst 连接PostgreSql数据库

热门文章

  1. nginx的301与302如何配置
  2. Makefile之字符串函数
  3. 文件流:"fopen","fclose",“ftell”"fseek","fgets","fprintf" ,“feof”,"fwrite","fread"
  4. 以lstm+ctc对汉字识别为例对tensorflow 中的lstm,ctc loss的调试
  5. [转]js模块化编程之彻底弄懂CommonJS和AMD/CMD!
  6. Java模式的秘密--java常用的几种模式
  7. Node.js 使用http客户端向网站请求数据并保存
  8. google兴趣点下载工具
  9. iOS 通用button 上图下字
  10. Ubuntu下安装配置和卸载Tomcat