CentOS Linux解决网卡报错Bringing up interface eth0.....
2024-09-02 22:52:43
问题描述:
在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/
最新文章
- 页面上常用的一些小功能--QQ、回到顶部
- 【TypeScript】如何在TypeScript中使用async/await,让你的代码更像C#。
- Sharepoint学习笔记—习题系列--70-576习题解析 -(Q6-Q8)
- SpringMVC总结帖
- WordPress Duplicator 0.4.4 Cross Site Scripting
- IC封装图片认识(一):BGA
- 解决未能启动服务“VMware Authorization Service”
- 本地yum库的搭建
- shortcut to open a linux terminal
- (java web后端方向)如何让你的简历为你争取到更多的面试机会,内容来自java web轻量级开发面试教程
- 第七周博客作业<;西北师范大学|李晓婷>;
- 第一章 Java语言概述1
- 洛谷P1809 过河问题_NOI导刊2011提高(01)
- Kubernetes持久化存储1——示例
- 关于eclipse项目创建maven项目目录不正常的解决方案
- PKUWC 2019&;WC 2019爆零记
- 用js来实现那些数据结构03(数组篇03-排序及多维数组)
- MAC OS中Eclipse无法导入(import)工程怎么办?
- Eclipse中安装JBoss Tools插件
- Entity Freamwork CodeFirst 连接PostgreSql数据库
热门文章
- nginx的301与302如何配置
- Makefile之字符串函数
- 文件流:";fopen";,";fclose";,“ftell”";fseek";,";fgets";,";fprintf"; ,“feof”,";fwrite";,";fread";
- 以lstm+ctc对汉字识别为例对tensorflow 中的lstm,ctc loss的调试
- [转]js模块化编程之彻底弄懂CommonJS和AMD/CMD!
- Java模式的秘密--java常用的几种模式
- Node.js 使用http客户端向网站请求数据并保存
- google兴趣点下载工具
- iOS 通用button 上图下字
- Ubuntu下安装配置和卸载Tomcat