ubuntu修复eth0_在Ubuntu虚拟机中修复“无法启动eth0”

当Ubuntu虚拟机的网络出现故障时,可以尝试执行特定命令以重启网络。完整错误消息表明网络启动失败,但运行'ifdown eth0 && ifup eth0'后,网络应恢复正常。使用ping命令或ifconfig -a可检查网络是否已恢复。
摘要由CSDN通过智能技术生成
ubuntu修复eth0

ubuntu修复eth0

If you’ve moved an Ubuntu virtual machine or modified it and then suddenly had a problem getting networking to work, you might want to read through this page, because I’ve figured out a workaround to get it working again.

如果您已经移动了Ubuntu虚拟机或对其进行了修改,然后突然使网络无法正常工作,则您可能需要通读本页面,因为我已经找到了使其重新运行的解决方法。

The full error message is this:

完整的错误消息是这样的:

eth0: ERROR while getting interface flags: No such device 
There is already a pid file /var/run/dhclient.eth0.pid with pid 6847440 
Internet Systems Consortium DHCP Client V3.0.4 
Copyright 2004-2006 Internet Systems Consortium. 
All rights reserved. 
For info, please visit http://www.isc.org/sw/dhcp/ 

SIOCSIFADDR: No such device 
eth0: ERROR while getting interface flags: No such device 
eth0: ERROR while getting interface flags: No such device 
Bind socket to interface: No such device 
Failed to bring up eth0.
eth0: ERROR while getting interface flags: No such device 
There is already a pid file /var/run/dhclient.eth0.pid with pid 6847440 
Internet Systems Consortium DHCP Client V3.0.4 
Copyright 2004-2006 Internet Systems Consortium. 
All rights reserved. 
For info, please visit http://www.isc.org/sw/dhcp/ 

SIOCSIFADDR: No such device 
eth0: ERROR while getting interface flags: No such device 
eth0: ERROR while getting interface flags: No such device 
Bind socket to interface: No such device 
Failed to bring up eth0.
在UbuntuVirtualMachine1.png中修复“ Fingedtobringupeth0”
sudo vi /etc/network/interfaces
Fixing"Failedtobringupeth0"inUbuntuVirtualMachine2.png

After you run this command to restart networking, everything should likely start working again:

在您运行以下命令以重新启动网络之后,所有内容都可能会再次开始工作:

sudo /etc/init.d/networking restart
sudo /etc/init.d/networking restart

You should be able to run a ping command, or use ifconfig -a and everything will be working.

您应该能够运行ping命令,或使用ifconfig -a,一切都会正常进行。

翻译自: https://www.howtogeek.com/168143/fixing-failed-to-bring-up-eth0-in-ubuntu-virtual-machine/

ubuntu修复eth0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值