Network configuration of Host Only+NAT mode under VirtualBox

Network configuration of Host Only+NAT mode under VirtualBox

The network configuration of Host Only+NAT mode under VirtualBox is for your reference. The specific contents are as follows

environment

Host Win8 virtual machine Ubuntu wired connection (wireless can choose bridge mode)

need

The host and virtual machine can ping each other and the virtual machine can access the external network

step

1. Open Vbox, select the "Manage" menu -> "Global Settings" -> Network, and set the parameters of the two network cards;



Note: The NAT network is used for the "virtual machine" to access the Internet by borrowing the network where the "host machine" is located, but the host machine and the virtual machine cannot ping each other; therefore, it is necessary to pull a "virtual twisted pair" (i.e. host-only mode) between the two to enable the two machines to communicate with each other. In addition, the host-only ipv4 address here is the ip address of the host in the LAN built between the two machines (usually set to 192.168.56.XX)

1. Select the specified virtual machine, right click -> Settings -> Network;


2. Start the virtual machine and set the static IP address of the second network card of the host-only network;

This way the network settings can successfully meet the above needs! OK
By the way, the virtual machine must be restarted for the network configuration to take effect! reboot!

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • CentOS7 network configuration tutorial under VirtualBox (can connect to the external network)
  • Solution to VirtualBox not specifying the network interface to be bridged
  • Detailed explanation of how to configure the network connection between the guest and host in VirtualBox
  • VirtualBox configures virtual network card (bridging) to achieve host-virtual machine network interconnection
  • A tutorial on how to use VirtualBox to connect a virtual machine to the network
  • VirtualBox 2.2.0 uses the host network to configure Internet access
  • Detailed explanation of VirtualBox virtual machine network environment analysis and construction - NAT, bridging, Host-Only, Internal, port mapping
  • VirtualBox configures virtual network card (bridge) to achieve host-virtual machine network interconnection (graphic tutorial)
  • Analysis of the principle of virtualbox virtual machine network settings
  • Detailed explanation of network configuration for installing centOS on virtualbox virtual machine

<<:  Detailed explanation of the role of explain in MySQL

>>:  React non-parent-child component parameter passing example code

Recommend

Docker connects to a container through a port

Docker container connection 1. Network port mappi...

Example code for implementing hollowing effect with CSS

Effect principle Mainly use CSS gradient to achie...

Talking about the practical application of html mailto (email)

As we all know, mailto is a very practical HTML ta...

MySQL Database Basics SQL Window Function Example Analysis Tutorial

Table of contents Introduction Introduction Aggre...

Tkinter uses js canvas to achieve gradient color

Table of contents 1. Use RGB to represent color 2...

Getting Started with Nginx Reverse Proxy

Table of contents Overview The role of reverse pr...

Vue uses v-model to encapsulate the entire process of el-pagination components

Use v-model to bind the paging information object...

One-click installation of MySQL 5.7 and password policy modification method

1. One-click installation of Mysql script [root@u...

Native JS to implement image carousel JS to implement small advertising plug-in

Recently I want to use native JS to implement som...

GDB debugging MySQL actual combat source code compilation and installation

Download source code git clone https://github.com...

Three ways to communicate between React components (simple and easy to use)

Table of contents 1. Parent-child component commu...

Implementing shopping cart function based on vuex

This article example shares the specific code of ...