MAC VMWare Fusion network setup method

  • 2020-11-25 07:40:18
  • OfStack

1. Check the IP network segment of the host (I connected the router under the landlord's network), 192.168.28.117.

2, modify,


/Library/Preferences/VMware Fusion/vmnet8

nat.conf file in the directory

The setup of the gateway should be the same for both configuration files, 1 ip of 28.2 in general, and IP of other configuration needs to be changed.

1 after changing the network environment generally, the virtual machine in VMware is set as fixed IP, and the network Shared with the host in NAT mode needs to be set again.

DNS is set as the gateway of vmnet8. Other Settings are in the same network segment with the host, so it is ok not to conflict with IP in the LAN.

IP modified vmnet8 in /Library/Preferences/VMware Fusion/networking is in the same network segment with the host.28.0.

In the virtual machine, set the gateway and DNS to IP of 28.2.

At this point, the IP of vmnet8 viewed using the ifconfig command is the IP address of.1 on the same network segment as the host.

Typical Settings


192.168.28.102# this IP The address in nat.conf Within the range of the set network segment 
255.255.255.0
192.168.28.2 # gateway
192.168.28.2 #DNS

The host accesses the virtual machine

All you need to do is map the host port to the virtual machine port

The following mapping needs to be added to the nat.conf file

Host port = Virtual machine IP: Virtual machine port

In addition, the firewall may need to be turned off, and selinux also needs to be disabled. The specific code is as follows:


systemctl stop firewalld
set enforce 0

Restart the network


sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --status 
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start

Access the content in the virtual machine

Type in the browser


http://127.0.0.1:10080

10080 is the port map that you configured in ES70en.conf.


Related articles: