码迷,mamicode.com
首页 > Web开发 > 详细

Virtual Box VM network configuration - Virtual Box VM 配置上网

时间:2016-10-29 12:21:39      阅读:339      评论:0      收藏:0      [点我收藏+]

标签:vbo   sam   possible   this   ati   color   网络   using   not   

Limitations:

Network: company

Host: DHCP

Host NIC bridge: disabled

Network access: limited

========================

Based on that, it might not be possible to set the VM to access Internet, & visible to host at the same time.

========================

1. Set the VM IP to "DHCP"

vi /etc/network/interfaces

Set the VM‘s NIC in Virtual Box as 网络地址转换(NAT)

Reboot VM.

Now VM can access public Internet via host‘s NIC. But host cannot access VM. You can use apt-get now.

--------------------------------

2. Set the VM IP to "static", make it in the same domain as VBox‘s NIC in host

Set the VM‘s NIC in Virtual Box as 仅主机(Host-Only)网络

Reboot VM.

Now VM cannot access Internet, but host can ping this VM‘s IP. You can do your dev work using this VM now.

Virtual Box VM network configuration - Virtual Box VM 配置上网

标签:vbo   sam   possible   this   ati   color   网络   using   not   

原文地址:http://www.cnblogs.com/anbosun/p/6010163.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!