linux 复制虚拟机时重启网卡出现错误:device eth0 does not seem to be present,delaying initialization
来源:互联网 发布:linux怎么退出编辑模式 编辑:程序博客网 时间:2024/04/30 01:24
原因:因为虚拟系统只直接复制,所以复制了mac地址,DHCP会检测到相同的mac地址,从而无法分配IP地址
解决办法:
第一种办法:
1)打开/etc/udev/rules.d/70-persistent-net.rules内容如下面例子所示:
# vi /etc/udev/rules.d/70-persistent-net.rules
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"
可以看到上面有eth0和eth1两块网卡,其中eth0是直接复制的mac地址,eth1是另一个mac地址,在此我们必须使用eth1的mac地址,才能分配IP地址
2)打开/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"
3)重启reboot
第二种办法:
1)直接删除/etc/udev/rules.d/70-persistent-net.rules这个文档,让系统自动生成一个新的70-persistent-net.rules
#rm -f /etc/udev/rules.d/70-persistent-net.rules
2) 打开/etc/sysconfig/network-scripts/ifcfg-eth0,删除HWADDR="00:0c:29:8f:89:97"这一行
3)重启reboot
- linux 复制虚拟机时重启网卡出现错误:device eth0 does not seem to be present,delaying initialization
- virualbox 复制linux,启用网卡报错:device "eth0" does not seem to be present, delaying initialization
- Linux下网卡报Device eth0 does not seem to be present, delaying initialization.错误的解决方案
- Linux解决Device eth0 does not seem to be present,delaying initialization错误
- device eth0 does not seem to be present, delaying initialization
- Device eth0 does not seem to be present, delaying initialization
- Device eth0 does not seem to be present, delaying initialization
- Device eth0 does not seem to be present, delaying initialization
- device eth0 does not seem to be present, delaying initialization
- Device eth0 does not seem to be present delaying initialization
- device eth0 does not seem to be present, delaying initialization
- Device eth0 does not seem to be present, delaying initialization.
- device eth0 does not seem to be present,delaying initialization
- device eth0 does not seem to be present, delaying initialization
- device eth0 does not seem to be present, delaying initialization
- device eth0 does not seem to be present, delaying initialization
- device eth0 does not seem to be present, delaying initialization
- device eth0 does not seem to be present, delaying initialization
- 企业大数据战略的6大应用
- [LeetCode 206] Reverse Linked List
- poj2513
- C语言:链表的反向输出(反转链表+栈结构)
- 早已无谓的泪滴
- linux 复制虚拟机时重启网卡出现错误:device eth0 does not seem to be present,delaying initialization
- 24张神GIF动图:数学概念这么酷!
- 剖析prim最小生成树算法
- C# 创建Excel并写入内容
- 2D与2.5D坐标转换公式推导
- 如何进行网络数据挖掘
- 国家自然科学基金重点项目启动暨软件定义网络 技术前瞻研讨会
- iOS应用架构谈 网络层设计方案
- java:链表操作