`
sillycat
  • 浏览: 2492203 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

VirtualBox Network

 
阅读更多
VirtualBox Network

Last one year, I am not setting my VirtualBox in the right way. So I need to switch the IP address between my working environment and home wifi environment.

Actually it is not necessary. I knew this long time ago. VirtualBox support the VM using 2 network Adapters. So the best way to set up the VM is that, one adapter with NAT Network and one with Host-only Adapter. Then we can access the outside network via NAT, and our host machine can access the VM from the Host-only Adapter.

Open the VirtualBox —> References ——> Network —> Add NAT Networks ——> Host-only Networks Tab, add One vboxnet0 —> Edit that —> Setting the DHCP Server with these information
Server Address: 192.168.56.100
Server Mask: 255.255.255.0
Lower Address Bound: 192.168.56.101
Upper Address Bound: 192.168.56.254

Then start the Virtual Machine.
> sudo vi /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet dhcp

It works pretty well.

References:
https://technology.amis.nl/2014/01/27/a-short-guide-to-networking-in-virtual-box-with-oracle-linux-inside/
分享到:
评论

相关推荐

    virtualbox虚拟机NAT模式下不能连接外网的解决方法

    给VirtualBox虚拟机(装载了Ubuntu16.04系统)配置了两张网卡,网络模式分别为“网络地址转换(NAT)”和“仅主机(Host-Only)适配器”,其中,enp0s3网卡(NAT)用于外网访问,而enp0s8网卡(Host-Only)用于主机...

    VirtualBox虚拟机网络设置

    VirtualBox虚拟机网络设置,VirtualBox的提供了四种网络接入模式,它们分别是: 1、NAT 网络地址转换模式(NAT,Network Address Translation) 2、Bridged Adapter 桥接模式 3、Internal 内部网络模式 4、Host-only ...

    SUSE Linux Enterprise Server服务器版SLES12sp1 Vagrant虚拟机virtualbox亲测有效

    The only enterprise Linux recommended by Microsoft and SAP, SUSE Linux Enterprise Server is optimized to deliver high-performance mission-critical services, as well as edge of network, and web ...

    GNS3 Network Simulation Guide

    Expand your existing simulations by including PCs running in Qemu or VirtualBox VMs, Cisco ASAs, Juniper routers, and Vyatta routers Increase your networking knowledge by learning how GNS3 ...

    SUSE Linux Enterprise Server 12 SP2 Vagrant虚拟机virtualbox亲测可用

    The only enterprise Linux recommended by Microsoft and SAP, SUSE Linux Enterprise Server is optimized to deliver high-performance mission-critical services, as well as edge of network, and web ...

    Intel PRO/1000 network driver

    virtualbox Intel PRO/1000 network driver

    VirtualBox 2.2.0使用主机网络上网配置教程

    经过研究发现,2.2.0缺省的不再是Bridge Network方式了,改为NAT,那么我们自己将网络修改回原来2.1.4的桥接方式就可以了。 1 首先,用鼠标右键点击“网上邻居”,选择“属性”; 图1  2 右键选择VirtualBox的host-...

    watch-network, 在通过网络gulpfriendly接收的文件事件上,执行基于.zip

    watch-network, 在通过网络gulpfriendly接收的文件事件上,执行基于 电子邮件信息软件包监视网络描述基于通过网络接收的文件事件执行任务- gulpfriendly场景:在工作流程中使用 /VirtualBox在封装环境中拥有服务和...

    VirtualBox虚拟机网络设置四种模式详细说明

    VirtualBox的提供了四种网络接入模式,它们分别是: 1、NAT 网络地址转换模式(NAT,Network Address Translation) 2、Bridged Adapter 桥接模式 3、Internal 内部网络模式 4、Host-only Adapter 主机模式 第...

    VirtualBox Centos的IP快速配置教程

    如果仅仅是虚拟机需要上网,则很简单。 1.进入Centos系统,查看网络配置。 输入命令: ifconfig -a 2.进入ifcfg-eth0文件。 ...vim /etc/sysconfig/network-scripts/ifcfg-eth0...service network restart #重启网络服务

    华为eNSP.7z包含ensp+wireshark+virtualbox+winpcap

    ensp+wireshark+virtualbox+winpcap eNSP(Enterprise Network Simulation Platform)是一款由华为提供的免费的、可扩展的、图形化的网络设备仿真平台。主要对企业网路由器、交换机、WLAN等设备进行软件仿真,完美呈现...

    VirtualBox配置虚拟网卡(桥接)——实现主机-虚拟机网络互通

    网上搜出来的比较乱,讲的不明不白,因此根据自己弄过一次,确认可行的方式,做个备份,方便日后查阅。...vim /etc/network/interfaces 打开网卡配置文件,添加eth1,保存修改。修改后的文件内容,如下:

    Mac VirtualBox设置虚拟机网络

    修改的是/etc/sysconfig/network-scripts下第二张网卡的ifcfg-enp0s8文件 ONBOOT设置为yes 重启网卡,查看网络 此时可以使用ssh工具连接虚拟机 再编辑一下之前编辑的文件 vi /etc/sysconfig/ne

    VirtualBox6安装CentOS7设置静态IP的方法及注意事项

    安装virtualbox后安装centos7, 这里就不在赘述了, 网上有很多教程 先关闭虚拟机, 按照如下设置配置网络   这里需要使用双网卡, 我们在开启第二个网卡, 如下所示 之后开启虚拟机, 进行如下操作 # 进入网卡所在目录...

    VirtualBox下虚拟机的批量复制搭建集群

    1 复制虚拟机 选中一个已经配置好的虚拟机作为模板 选中虚拟机右键 –> 复制 –> 完全复制 ...service network restart ifconfig [root@zookeeper01 ~]# ifconfig eth0 Link encap:Ethernet HWadd

    OpenStack Networking Essentials

    The OpenStack Networking API offers users the ability to create and manage both basic and complex network architectures that blend the virtual and physical network infrastructure. This book kicks off...

    eNSP Windosw 10 适用

    华为模拟器,eNSP(Enterprise Network Simulation Platform)是一款由华为提供的、可扩展的、图形化操作的网络仿真工具平台,主要对企业网络路由器、交换机进行软件仿真,呈现真实设备实景,支持大型网络模拟,让广大...

    VyOS-IntraCompany-Network:请注意我在公司内部网络中的内部网络构建步骤

    网络和系统配置 (Intra-Company Network : LAN) (Intra [DHCP]) |(Intra [DNS]) | IP:172.19.1.1 |[host pc] | (my internal network) : by virtualbox | IP:172.19.1.53 | | GW:172.19.1.254 | | | [DHCP] : ...

    安装虚拟机和linux操作系统

    安装虚拟机和操作系统,虚拟机为oracle vm virtualbox,操作系统为linux操作系统

Global site tag (gtag.js) - Google Analytics