`
aiquantong
  • 浏览: 111324 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

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.

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics