加入收藏 | 设为首页 | 会员中心 | 我要投稿 莱芜站长网 (https://www.0634zz.com/)- 云连接、建站、智能边缘云、设备管理、大数据!
当前位置: 首页 > 综合聚焦 > Ubuntu > 正文

ubuntu 网卡突然无法连接

发布时间:2020-07-16 02:25:08 所属栏目:Ubuntu 来源:互联网
导读:今天要用到VM BT的Namp扫描服务器端口,发现桥接后无法使用。 ifconfig 只看到 lo地址,看不到以太网网卡地址 使用lspci 查看是否安装了以太网网卡驱动 lscpi | grep Ethernet 02:01.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LA

今天要用到VM BT的Namp扫描服务器端口,发现桥接后无法使用。

ifconfig 只看到 lo地址,看不到以太网网卡地址

使用lspci 查看是否安装了以太网网卡驱动

lscpi | grep Ethernet

02:01.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)

看到文章中是克隆或者复制其他虚拟机开机出现此类问题,操作以下步骤就解决了。

sudo rm /etc/udev/rules.d/70-persistent-net.rules 删除相关文件

reboot 重启

问题的原因是MAC地址被缓存出了问题导致的。

但是我的虚拟机开机用了一段时间是可以的,是过了好长时间才出现了这个问题,这究竟是为什么?

我多次添加删除虚拟网卡并执行重启都没有反应。

猜测是不是支持的缓存网卡数量达到了三个,而且目前使用的网卡有没有办法顶上去,没有办法继续缓存导致无法跟新网卡设备。从而导致无法识别网络设备。

After cloning a virtual machine running Ubuntu Server 10.04 found that it didn
’t have any network available.

Restarting networking gave:
sudo /etc/init.d/networking restart * Reconfiguring network interfaces... eth0
: ERROR
while getting interface flags:
No such device SIOCSIFADDR: No such device eth0: ERROR

while getting interface flags:
No such device SIOCSIFNETMASK: No such device SIOCSIFBRDADDR: No such device
eth0: ERROR

while getting interface flags:
No such device eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.

The problem lies in the fact that ethernet MAC addresses are cached. You need to remove a file to clear the cached value: sudo rm /etc/udev/rules.d/70-persistent-net.rules After a restart of your server you should have networking back again.

(编辑:莱芜站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读