How to configure VMware virtual machine NAT mode

How to configure VMware virtual machine NAT mode

This article describes the VMware virtual machine NAT configuration process in detail for your reference. The specific contents are as follows

NAT stands for Network Address Translation. As the name suggests, the focus of configuration is also address translation.

Step 1: Configure LAN segment and gateway

Open VMware's visual network editor and set it to the following style:

Illustration

1) To use NAT, you need to configure VMnet8. This virtual network card is dedicated to NAT connection. Other network cards are not required.

2) The 102 field in 2 can be selected arbitrarily. This is the selected subnet segment. Remember, in the future, the host, virtual machine, and virtual router will all have IP addresses in the 102 subnet.

3) Fill in the subnet mask such as 3

Then click NAT settings to set the gateway. This gateway setting means that the virtual machine establishes a virtual gateway on the host to facilitate the virtual machine to route to the external network. This is different from the hostonly mode.

Fill in 192.168.102.2 for gateway ip. Since the subnet segment is 102, it is also selected here. In addition, the gateway ip is 2. Remember! No other settings are required, click OK to save and exit.

Step 2: Set the host IP

Find the VMnet8 network card on the host side. This is the host's. The one configured in 1 is actually the gateway's IP. Don't confuse them.

Configure VMnet8 as shown in the figure, set the IP to 912.168.102.1 and the mask

Step 3: Configure the virtual machine's IP, gateway, proxy, etc.

As in hostonly mode, the IP address is set to 192.168.102.3, the gateway and DNS are both set to 192.168.102.2, plus the mask. If there is a proxy on the external network to be connected, you need to specify the proxy. If there is no proxy, leave it blank. As shown in the figure:

In addition, ensure that the virtual machine is configured in NAT mode:

Ok, it's done and you can go online. If necessary, you can restart the virtual machine!

Remark:

As an aside, if you still can't access the Internet, you can try the shared configuration of the network card, as shown in the figure

What is this used for? Let me explain. This local connection is your real physical network card. For example, your IP facing the external network is 10.6.100.100 (and the host IP in the virtual machine NAT gateway is 192.168.102.1). If you check Allow other networks to share this link, you can choose other virtual network cards to use this real physical network card. If you do not check it, it means that no matter how you configure the virtual network card, you cannot access the Internet, right? This is the truth, but after my own experiments, I chose VMnet1 for sharing (you can also choose VMnet8) instead of vmnet8. Logically, I should not be able to access the Internet using NAT, but I was able to do so in the experiment. So sometimes just try it more often and it's fine as long as you can access the Internet.

NAT structure overview

Finally, take a look at the full picture to better understand how VM works:

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:
  • How to set static IP in VMware using NAT
  • Solution to VMware virtual machine NAT mode can not connect to the Internet
  • Detailed explanation of VMware virtual machine network connection mode (NAT, Bridged, Host-only)
  • VMware network connection mode (detailed introduction and difference between bridge, NAT and host-only mode)
  • VMware virtual machine NAT configuration static IP tutorial detailed explanation
  • How to set up NAT for virtual machines in VMware

<<:  MySQL startup error 1067 and invalid recovery after changing character set and restarting

>>:  Analysis of the implementation of MySQL statement locking

Recommend

Detailed explanation of jQuery method attributes

Table of contents 1. Introduction to jQuery 2. jQ...

Vue+echarts realizes stacked bar chart

This article shares the specific code of Vue+echa...

JavaScript Timer Details

Table of contents 1. Brief Introduction 2. setInt...

JavaScript implementation of the back to top button example

This article shares the specific code for JavaScr...

How to install Oracle on Windows Server 2016

1. Install Oracle There are too many Oracle insta...

MySQL Optimization: InnoDB Optimization

Study plans are easily interrupted and difficult ...

Database index knowledge points summary

Table of contents First Look Index The concept of...

How to operate the check box in HTML page

Checkboxes are very common on web pages. Whether ...

In-depth understanding of the seven communication methods of Vue components

Table of contents 1. props/$emit Introduction Cod...

7 native JS error types you should know

Table of contents Overview 1. RangeError 2. Refer...

CSS Sticky Footer Several Implementations

What is "Sticky Footer" The so-called &...

Detailed introduction to the MySQL installation tutorial under Windows

Table of contents 1. Some concepts you need to un...

Summary of Linux nc command

NC's full name is Netcat (Network Knife), and...