我不知道如何修复故障,但是我可以向您展示一种临时解决此问题的快捷方式...
1-使用此命令查找系统中可用的接口。
# ip link
例如: lo, enp0s8
2-在 /etc/network/interfaces 中添加以下行:
auto enp0s8
iface enp0s8 inet dhcp
3-重新启动您的虚拟机。
这样就完成了。
which tries to find fixed slot topology information in certain firmware interfaces and uses them to assign fixed names to interfaces which incorporate their physical location on the mainboard.
(参见:freedesktop.org)。因此,在配置/etc/network/interfaces
之前,您必须使用命令ip a
找到正确的接口名称,该命令会打印类似于以下内容:
1: lo: ...
2: ensXX: ...
n: ...
另请参阅:askubuntu.com
我认为你应该更改网络高级选项。 如果将modo promisco选项设置为Permitir todo(允许所有),它将正常工作。
我曾经有同样的问题,最后发现是我关闭了Windows服务
VMware NAT Service 和 VMnetDHCP
只需要运行它们即可。