Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

MAC VMWare Fusion network setting method

2025-04-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

2. Modification

/ Library/Preferences/VMware Fusion/vmnet8

Nat.conf file under the directory

The settings of the gateway should be the same as the two profiles, which is generally ip of 28.2. The IP of other configurations needs to be changed.

Generally, after changing the network environment, the virtual machine in the VMware is set to a fixed IP, and the network shared with the host by NAT needs to be re-set.

DNS is set to the gateway of vmnet8, and other settings are in the same network segment as the host, so as not to conflict with the IP in the local area network.

The IP that modifies the vmnet8 in / Library/Preferences/VMware Fusion/networking is on the same network segment as the host.

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

At this point, if you use the ifconfig command to check that the IP of the vmnet8 is the IP address of .1 on the same network segment as the host.

Typical settin

192.168.28.10 "this IP address is within the range of the network segment set by nat.conf 255.255.255.0192.168.28.2 # gateway192.168.28.2 # DNS

Host accesses virtual machine

What needs to be done is to map the port of the host to the port of the virtual machine

You need to add the following mapping 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 may also be set to fail. The specific code is as follows:

Systemctl stop firewalldset 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 contents of the virtual machine

Enter in the browser

Http://127.0.0.1:10080

10080 is the port mapping you configured in nat.conf.

The above MAC VMWare Fusion network setting method is the editor to share with you all the content, I hope to give you a reference, but also hope that you support more.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report