VMware Fusion 端口映射
警告
本文最后更新于 2020-05-30 17:09,文中内容可能已过时。
打开配置文件 sudo vi /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf
找到如下配置 [incomingtcp]
Use these with care - anyone can enter into your VM through these…
The format and example are as follows:
#<external port number> = <VM’s IP address>:<VM’s port number> 23 = 172.16.161.129:22 #将IP172.16.161.129虚拟机的22 端口映射到主机23端口
重启VM的网络服务 sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli –stop sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli –start
请我喝杯水
微信号
微信打赏