mac 版 的VMWare Station 设置网络

After selected “Nat” in “Network Adapter” settings on VMWare Fusion 4, follow this steps:

1. cd /Library/Preferences/VMware\ Fusion/vmnet8

2. sudo vi 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>

8080 = 172.16.169.30:80

3. Save and exit

4. sudo /Applications/VMware\ Fusion.app/Contents/Library/services.sh —stop

5. sudo /Applications/VMware\ Fusion.app/Contents/Library/services.sh —start

This means that all tcp traffic incoming to port 80 of host machine will be forwarded to port 80 of your virtual machine.

 

你可能感兴趣的:(vmware,macox,NAT settings)