Specific configuration of VMware virtual machine NAT mode

NAT method:

The virtual machine can access the external network and access other computers on the network where the host computer is located (not vice versa).

View the network parameters of the virtual machine

1) Open the virtual machine and select the menu "Edit" > "Edit Virtual Network", as shown below:


First restore the default parameters, and then set NAT. Set the subnet IP, gateway, etc. of the virtual network 
 

Set virtual network parameters for physical hosts

1) Open the network connection of the physical host, find "VMware Network Adapter VMnet8", right-click to set properties:

2) Set the virtual network IP address of the physical host: 192.168.230.X, X is between 0 and 255, but it cannot be the same as the subnet IP of the virtual network above. The subnet mask and default gateway should be consistent with the subnet mask and gateway of the virtual network obtained above. DNS can be set or ignored, if set, you can use google's free DNS: 8.8.8.8 and 8.8.4.4.

Set the network parameters of the specific virtual machine

1) Set ip, gateway, etc.
vim /etc/sysconfig/network-scripts/ifcfg-eth0 DNS settings: vim /etc/resolv.conf






2) Set the network IP address of the virtual machine: 192.168.230.X, X is between 0 and 255, but it cannot be duplicated with the subnet IP of the virtual network and the physical machine instant network IP above. The subnet mask and default gateway should be consistent with the subnet mask and gateway of the virtual network obtained above. DNS can be set or ignored, if set, you can use google's free DNS: 8.8.8.8 and 8.8.4.4. If you have a virtual machine, you can do the same.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326654621&siteId=291194637
Recommended