1.打开virtualbox,选择【设置】-【网络】将连接方式改为【Bridged Adapter】

2.在Ubuntu中,

运行sudo gedit /etc/network/interfaces

修改如下:

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet static

address 172.17.1.178

netmask 255.255.0.0  #此处改成您的掩码

gateway 172.17.1.111 #此处改成您的网关

运行sudo gedit /etc/resolv.conf

修改如下:

nameserver 172.17.11.31 #域名服务器

3.运行/etc/init.d/networking restart 重启

相关文章:

  • 2021-08-04
  • 2021-04-17
  • 2021-10-30
  • 2021-05-17
  • 2021-12-02
  • 2021-09-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2021-07-25
  • 2021-05-07
相关资源
相似解决方案