dedecms织梦内容管理系统      
首页 | Xen | Qemu | 下载 | 专题 | 会员中心 | 支持论坛
  当前位置:主页>Vmware>文章内容
Linux下VMware的端口映射的方法
来源: 作者: 发布时间:2007-11-05  
主机环境是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........

(阅读次数:
上一篇:xen同其他模拟器/虚拟机软件的比较   下一篇:如何诊断 VMware系统问题
[收藏] [推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
用户名: 新注册) 密码: 匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论
  热点文章
·解决Vmware虚拟机系统的时间太慢
·VMware虚拟磁盘管理工具实例
·Intel解读硬件辅助虚拟化技术
·Vmware 发布vmware workstation
·VMWare tools的安装过程及文件共
·如何诊断 VMware系统问题
·在Ubuntu7.10上安装Vmware Serve
·VMwareTools宣布开源Linux厂商可
·VMware与Symantec联手"灾备"
·VMware ESX Server 常用命令行
  相关文章
·如何诊断 VMware系统问题
·VMware虚拟磁盘管理工具实例
·VMWare tools的安装过程及文件共
·在Ubuntu7.10上安装Vmware Serve
·VMware ESX Server 常用命令行
·解决Vmware虚拟机系统的时间太慢
·VMwareTools宣布开源Linux厂商可
·VMware与Symantec联手"灾备"
·Vmware 发布vmware workstation
·Intel解读硬件辅助虚拟化技术