在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]
解决办法:
首先,打开/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
正常了。
补充:
问题:利用virtualbox新建了一个VM,然后使用virtualbox提供的复制功能拷贝了一个实例,发现新的VM的网卡eth0的MAC地址和原来的一样,或者eth0不见了
相关推荐
CentOS6.5配置eth0重启报错提示Device eth0 does not seem to be present,delaying initialization的结决方法 在搭建Hadooop 完全分布式的时候,从节点一般是从主节点复制过来的,再给从节点配置网络的时候,会出现...
centos虚拟机复制故障 错误代码 Device eth0 does not seem to be present, delaying initialization
介绍centOS下ifconfig找不到eth0解决方案
CentOS Device does not seem to be present
解决/root/.Xauthority does not exist
VM centOS 网络配置 eth0
CentOS continues to be a popular Linux distribution choice, and setting up your own services is a key skill for anyone maintaining a CentOS network. You will learn how to install CentOS, and manage ...
Realtek Semiconductor Co., Ltd. Device 8125 (rev 05) 网卡驱动安装亲测,此驱动...Centos8.0安装Device 8125 (rev 05) 网卡驱动版本:r8125-9.012.03驱动版本,此款网卡可完美应用!!!内有每步操作详细解释!!
Apress Foundations of CentOS Linux, Enterprise Linux On the Cheap (2009)
As such, CentOS Linux aims to be functionally compatible with RHEL. The CentOS Project mainly changes packages to remove upstream vendor branding and artwork. CentOS Linux is no-cost and free to ...
CentOS 6.0找不到ifcfg-eth0解决方案
我们想宣布CentOS Linux 8和 所有架构上的新CentOS Stream。 ---------- CentOS Linux 8 这是CentOS Linux 8的第一个版本,版本标记为 8.0-1905,来自Red Hat发布的资源,通过 git.centos.org 首先,请仔细阅读发行...
CentOS Linux系统管理与运维-课件.rar
CentOS Linux 8 (Core) C8-3-55 (Linux 4.18.0-147.el8.x86_64 #1 SMP Wed Dec 4 21:51:45 UTC 2019) x86-64 vmware
CIS_CentOS_Linux_7_Benchmark_v3.1.1.pdf
CentOS6.5克隆导致网卡eth0变成eth1、及修改网卡名,很实用
技术分享:基于CentOS的Linux基本网络配置,包括网卡eth0、DNS、Host等
常见的Linux发行版有:Asianux、B2D Linux、CentOS Linux、Debian GNU/Linux、Fedora Core Linux、Gentoo Linux、Knoppix Linux、Redflag Linux、RedHat Linux、Slackware、Linux、SUSE Linux、Turbo Linux、Ubuntu ...
关于centos系统下的网络服务配置,适合网络运维人员学习
CIS_CentOS_Linux_7_Benchmark_v3.0.0.