首先虚拟机要有单独的IP地址,而不是10.0.2.15的做法是在VirtualBox设置-->网络-->连接方式-->桥接网卡

VirtualBox Ubuntu虚拟机下ifconfig没有inet addr

在设置了桥接网卡之后,根据是网线连接还是wlan连接选择对应的网卡(界面名称)

否则的话,虚拟机会连不上网,就没有ip

此时在终端输入ifconfig就可以看到ip了

VirtualBox Ubuntu虚拟机下ifconfig没有inet addr

相关文章:

  • 2022-01-28
  • 2021-12-09
  • 2021-10-08
  • 2021-11-16
  • 2022-12-23
  • 2021-09-20
  • 2021-07-05
  • 2021-10-12
猜你喜欢
  • 2022-01-07
  • 2021-10-28
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
相关资源
相似解决方案