从一台电脑virtual box克隆出来的centos.vdi复制到另外一台电脑,找不到网卡,提示
Device eth0 does not seem to be present
故障现象:
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]
CentOS Linux解决Device eth0 does not seem to be present
解决办法:
首先,打开/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
正常了。
- 浏览: 248653 次
- 性别:
- 来自: 合肥
最新评论
-
玲cc:
语言这东西不用就容易忘。。以前学了现在又差不多忘光了。。
python满足你需要的50个模块 -
huazhiyu1981:
了解python库函数必须要有的资料!
python满足你需要的50个模块 -
faroasis:
toLocale之类的方法在ie下取决于本地设置,不建议用来做 ...
js时间戳转为日期格式 -
hyl1234:
pydev不错,不过还没入门。谢lz
python满足你需要的50个模块 -
mirguest:
因此,我就写了下面这个代码:
#!/usr/bin/env ...
python类学习
相关推荐
ntp-4.2.6p5-29.el7.centos.2.x86_64 适用于Linux centos7.9
解决This system is not registered with RHN. 包含三个文件: yum-3.2.22-26.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
ntpdate-4.2.6p5-29.el7.centos.2.x86_64
docker-engine-1.12.1-1.el7.centos.x86_64.rpm docker-engine-1.12.1-1.el7.centos.x86_64.rpm docker-engine-1.12.1-1.el7.centos.x86_64.rpm
centos 6.x,各位根据版本下载。 适用于yum无法使用情况,具体文件如下: ntpdate-4.2.6p5-5.el6.centos.x86_64.rpm ntp-4.2.6p5-5.el6.centos.x86_64.rpm
ntp-4.2.6p5-29.el7.centos.2.x86_64
centos-release-7-6.1810.2.el7.centos.x86_64.rpm包 命令主要是针对将 centos7.9版本降级到centos7.6,其他版本也可以参考降底版本到7.6,包含操作命令
ntp-4.2.6p5-25.el7.centos.2.x86_64.rpm,ntp-4.2.6p5-25.el7.centos.2.x86_64.rpm
centos 7 离线安装docker-engine-1.12.6 yum localinstall *.rpm Installing : docker-engine-1.12.6-1.el7.centos.x86_64 8/8 Verifying : libsemanage-python-2.5-11.el7.x86_64 1/8 Verifying : setools...
docker-ce-17.03.2.ce-1.el7.centos.x86_64 Centos7 离线安装包和依赖包、 audit-libs-python-2.7.6-3.el7.x86_64.rpm checkpolicy-2.5-4.el7.x86_64.rpm docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm docker-ce-...
yum安装所需的部分软件:yum-3.2.29-40.el6.centos.noarch.rpm和yum-3.2.29-30.el6.noarch.rpm
该RPM为Centos6.x或者RedHat6.x(x86_64)安装包,请根据需要进行下载
ntp-4.2.6p5-29.el7.centos.2.aarch64.rpm ntp-doc-4.2.6p5-29.el7.centos.2.noarch.rpm ntp-perl-4.2.6p5-29.el7.centos.2.noarch.rpm ntpdate-4.2.6p5-29.el7.centos.2.aarch64.rpm
mod_ssl-2.2.15-60.el6.centos.6.x86_64.rpm mod_ssl-2.2.15-60.el6.centos.6.x86_64.rpm
pigz-2.3.3-1.el7.centos.x86_64.rpm
httpd-2.2.15-60.el6.centos.6.x86_64.rpm httpd-2.2.15-60.el6.centos.6.x86_64.rpm
基于CentOS7编译的,修复ntp-4.2.6漏洞。 ntp-4.2.8p15-1.el7.centos.x86_64.rpm ntp-debuginfo-4.2.8p15-1.el7.centos.x86_64.rpm ntp-perl-4.2.8p15-1.el7.centos.x86_64.rpm ntpstat-4.2.8p15-1.el7.centos....
openscap-devel-1.0.8-1.0.1.el6.centos.x86_64.rpm
openssh-8.4p1-1.el7.centos.x86_64.rpm以来的openssh包,源生的版本不支持hosts.allow,hosts.deny.