问题:Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]—— 找不到网卡。
2015-06-20 16:55
344 查看
克隆虚拟机的时候或其他情况出现以下问题(命令service network restart):
Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]
1、造成的原因:
第一次创建的时候,在文件:
/etc/sysconfig/network-scripts/ifcfg-eth0
里面设定了网卡0绑定了MAC地址,所以在文件:
/etc/udev/rules.d/70-persistent-net.rules
里面还有该绑定的规则。
2、解决方法:
(1)如果文件:
/etc/sysconfig/network-scripts/ifcfg-eth0
里面有写定的MAC地址,先把改行删掉
(2)使用命令
# rm -rf /etc/udev/rules.d/70-persistent-net.rules
把绑定的文件70-persistent-net.rules删掉
(3)重启虚拟机
#reboot
重启后:
如果没有在ifcfg-eth0文件里面写了ONBOOT=yes要使用命令:
# service network restart
启动后,使用命令ifconfig即可看到ip
3、预防措施:
(1)练习或者安全要求不高的操作,建议在ifcfg-eth0文件里面去掉MAC地址一行
(2)要求安全的情况下,要修改ifcfg-eth0和70-persistent-net.rules下的绑定MAC
Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]
1、造成的原因:
第一次创建的时候,在文件:
/etc/sysconfig/network-scripts/ifcfg-eth0
里面设定了网卡0绑定了MAC地址,所以在文件:
/etc/udev/rules.d/70-persistent-net.rules
里面还有该绑定的规则。
2、解决方法:
(1)如果文件:
/etc/sysconfig/network-scripts/ifcfg-eth0
里面有写定的MAC地址,先把改行删掉
(2)使用命令
# rm -rf /etc/udev/rules.d/70-persistent-net.rules
把绑定的文件70-persistent-net.rules删掉
(3)重启虚拟机
#reboot
重启后:
如果没有在ifcfg-eth0文件里面写了ONBOOT=yes要使用命令:
# service network restart
启动后,使用命令ifconfig即可看到ip
3、预防措施:
(1)练习或者安全要求不高的操作,建议在ifcfg-eth0文件里面去掉MAC地址一行
(2)要求安全的情况下,要修改ifcfg-eth0和70-persistent-net.rules下的绑定MAC
相关文章推荐
- 10 responsibility chain
- 杭电1302 The Snail
- 杭电 ACM HDU Train Problem I
- LeetCode:Container With Most Water 算法题详解
- 1.MyBaits 3.2 简介
- 十大经典数据挖掘算法(9) 朴素贝叶斯分类器 Naive Bayes
- RAID0 RAID1 RAID3 RAID5 RAID6 RAID10 RAID50概念详解
- Exchange发送邮件后卡在草稿箱
- error: server certificate verification failed 解决方案
- Algorithms—42.Trapping Rain Water
- AlphaMobileControls 控件的使用 AlphaImageButton
- 偶尔转帖:AI会议的总结(by南大周志华)
- MonkyTalk学习-6-Verify-WaitFor & WaitForNot
- pthread_cond_wait
- grails domain里面beforeinsert无效
- MacBook Air 安装 Ubuntu 双系统
- A Painless Q-learning Tutorial (一个 Q-learning 算法的简明教程)
- 【Training versus Testing】林轩田机器学习基石
- 短信接收Main函数
- 朴素贝叶斯分类法 Naive Bayes ---R