主机环境是UBUNTU 7.4
VMware Workstation 6.0.0 build-45731vmware使用NAT是通过vmnet8来是实现,找到这个文件打开/etc/vmware/vmnet8/nat/nat.conf
# be up to 100% longer
timeout = 60
[incomingtcp]
# Use these with care - anyone can enter into your VM through these...
# FTP (both active and passive FTP is always enabled)
# ftp localhost 8887
#8887 = 192.168.0.128:21
4660 = 192.168.0.128:4660
# WEB (make sure that if you are using named webhosting, names point to
# your host, not to guest... And if you are forwarding port other
# than 80 make sure that your server copes with mismatched port
# number in Host: header)
# lynx http://localhost:8888
#8888 = 192.168.0.128:80
# SSH
# ssh -p 8889 root@localhost
#8889 = 192.168.0.128:22
[incomingudp]
# UDP port forwarding example
#6000 = 192.168.0.128:6001
[incomingtcp]
TCP映射
[incomingudp]
UDP映射
举例
8889 = 192.168.0.128:22
保存退出,重启服务
/usr/lib/vmware/net-services.sh restart
测试
ssh -p 8022 myhost.comornetstat -anpt ........tcp 0 0 0.0.0.0:4660 0.0.0.0:* LISTEN 2500........
推荐阅读
- 网管实战:RHEL 5在虚拟机下共享互联网
- 爱奇艺花钱购买的电影可以下载吗 爱奇艺付费电影可以下载吗
- 爱奇艺会员下载的视频怎么播放 爱奇艺会员可以下载视频吗
- 爱奇艺为什么下载不了 爱奇艺为什么下载不了电视剧
- 采摘下来的大量桔子怎样保鲜,怎样保鲜桔子保存更久能过冬呢
- 让VMware Workstation实现服务自启动
- 魅蓝6怎么截图 2种魅蓝6截屏方法
- 保险能查到体检中心吗
- ISA结合VMware虚拟机搭建企业服务器
- VMware Workstation 6.5新功能展示