运维开发网
广告位招商联系QQ:123077622
 
广告位招商联系QQ:123077622

虚拟机linux Device eth0 does not seem to be present

运维开发网 https://www.qedev.com 2021-05-18 14:08 出处:51CTO 作者:alibaby_007
虚拟机linux Device eth0 does not seem to be present,VM中的linux虚拟机重启后网卡起不来[[email protected] ~]# service network restartShutting down loopback insterface: [ OK ]Bringing up loopback insterface: [ OK ]Bringing up interface eth0: Device eth0 does not seem to

VM中的Linux虚拟机重启后网卡起不来

[[email protected] ~]# 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]

[[email protected] ~]# cat /etc/udev/rules.d/70-persistent-net.rules

[[email protected] ~]# ll /etc/sysconfig/network-scripts

发现70-persistent-net.rules网卡名字是eth1,mac地址是00:0c:29:c9:61:ec

而网卡的配置文件只有ifcfg-eth0的,

解决办法:

把网卡配置文件ifcfg-eth0改为ifcfg-eth1,mv ifcfg-eth0 ifcfg-eth1

把ifcfg-eth1中的网卡名eth0替换为eth1,mac地址替换为00:0c:29:c9:61:ec

重启网络服务service network restart

另外虚拟克隆后需要删除克隆后网卡配置文件中的UUID和文件/etc/udev/rules.d/70-persistent-net.rules

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号