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

Element UI table realizes drop-down filtering function

This article example shares the specific code for...

Tutorial on installing MySQL on Alibaba Cloud Centos 7.5

It seems that the mysql-sever file for installing...

Summary of MySQL 8.0 memory-related parameters

Theoretically, the memory used by MySQL = global ...

Learn v-model and its modifiers in one article

Table of contents Preface Modifiers of v-model: l...

JavaScript to achieve progress bar effect

This article example shares the specific code of ...

Quickly solve the problem of slow and stuck opening of input[type=file]

Why is it that when the input tag type is file an...

Detailed installation and use of docker-compose

Docker Compose is a Docker tool for defining and ...

How to build nfs service in ubuntu16.04

Introduction to NFS NFS (Network File System) is ...

How to use glog log library in Linux environment

Generate Linux library The Linux version uses cen...

Problems encountered when updating the auto-increment primary key id in Mysql

Table of contents Why update the auto-increment i...

How to install vim editor in Linux (Ubuntu 18.04)

You can go to the Ubuntu official website to down...

MySQL query_cache_type parameter and usage details

The purpose of setting up MySQL query cache is: C...

GET POST Differences

1. Get is used to obtain data from the server, wh...

Summary of the use of html meta tags (recommended)

Meta tag function The META tag is a key tag in th...