免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: szppp
打印 上一主题 下一主题

[VMware] 请教XP的动态IP环境vmware下SCO5.0.6如何设置网络? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2005-01-13 21:25 |只看该作者

请教XP的动态IP环境vmware下SCO5.0.6如何设置网络?

我把VM的NIC改为host_only方式,SCO的虚拟网卡地址改为和VMnet1一个网段的地址,结果在XP中能TCP/IP访问SCO(即ping、ftp、telnet等均可以),但反向访问均不可以(对XP的地址以及VMnet1和VMnet8的地址),请问为什么?
NIC:host_only;
VMnet1:192.168.217.1;
VMnet8:192.168.229.1;
SCO虚拟网卡地址:192.168.217.2;
XP--->;SCO:ping、ftp、telnet可以访问;
SCO--->;XP、VMnet1、VMnet8:ping、ftp、telnet均不可以访问。

论坛徽章:
0
12 [报告]
发表于 2005-01-16 14:03 |只看该作者

请教XP的动态IP环境vmware下SCO5.0.6如何设置网络?

自顶

论坛徽章:
0
13 [报告]
发表于 2005-01-17 17:04 |只看该作者

请教XP的动态IP环境vmware下SCO5.0.6如何设置网络?

再顶

论坛徽章:
0
14 [报告]
发表于 2005-01-17 17:18 |只看该作者

请教XP的动态IP环境vmware下SCO5.0.6如何设置网络?

http://www.zdnet.com.cn/common/printfriendly/printfriendly.htm?AT=39273825-1000001288t-20000034c
看了这篇文章后估计楼主就会死心了

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
15 [报告]
发表于 2005-01-17 17:29 |只看该作者

请教XP的动态IP环境vmware下SCO5.0.6如何设置网络?

楼主先看lw371推荐的文章
但我认为还有希望,vmnet8提供了NAT模式
自5.0.6开始SCO已经有NAT装换内部ip的功能,
即使在以前的版本上SCO也提供有免费IP filter包下载
如果设置为VMnet8,那么在SCO里面使用NAT转换IP到VMnet8上的IP有可能成功
参考SCO文档:
The IP Filter software was included in SCO OpenServer 5.0.6 which includes the ability to translate (NAT) IP address(es) from one address range to another IP address or range of IP addresses. For earlier releases of SCO OpenServer, you will need to install IP Filter which can be obtained from:

             ftp://ftp.sco.com/TLS/tls709.ltr
             ftp://ftp.sco.com/TLS/tls709.tar.Z


A detailed guide on using IP Filter and NAT can be obtained from:

             http://www.obfuscation.org/ipf/


The basic syntax of the ipnat command for clearing out current map rules and loading a new map file is:

             /etc/ipnat -CF -f <map file>;


To view the currently loaded maps/filters and monitor active mappings, use:

             /etc/ipnat -l


The following are some map file examples that can be used to provide certain common NAT functionality:
Note: You can have multiple rules set up and NAT will select the first one that applies.

Note: The second map field refers to the interface that we are translating the IP address(es) through (usually the public interface with the valid IP address).

1. Map any traffic coming from the 192.168.1 subnet to 20.20.20.1:


               map ppp0 192.168.1.0/24 ->; 20.20.20.1/32


2. Map any traffic coming from the 192.168.1 subnet to the dynamic IP assigned to your ppp0 interface:

               map ppp0 192.168.1.0/24 ->; 0/32


3. Map any traffic coming from 192.168.1 to the dynamic IP assigned to your ppp0 interface and change the source port numbers to something between 10000 and 60000:

               map ppp0 192.168.1.0/24 ->; 0/32 portmap tcp/udp 10000:60000


4. Map the single IP address 192.168.1.1 to 20.20.20.1:

               bimap net0 192.168.1.1/32 ->; 20.20.20.1/32


5. Map any traffic coming from the 192.168 subnet to the pool of IP address in the 20.20.20 subnet and change the source port numbers into something between 20000-60000:

      map net0 192.168.0.0/16 ->; 20.20.20.0/24 portmap tcp/udp 20000:60000


6. Map any tcp traffic from the 192.168 subnet to 20.20.20.1 and change the source port number to something between 10000 and 20000. For all other IP packets, allocate an IP address between 20.20.20.0 and 20.20.20.255:

       map net0 192.168.0.0/16 ->; 20.20.20.1/32 portmap tcp 10000:20000
       map net0 192.168.0.0/16 ->; 20.20.20.0/24


Notes
Your system must be set up to route packets between its interfaces. To verify that this has been done, run the following command:

             # inconfig ipforwarding


which should return:

    inconfig: symbol ipforwarding has current value 1, minimum 0, maximum 1


If the current value is 0, run the following to enable ipforwarding:

             # inconfig ipforwarding 1


Note: Depending on your network configuration, you may also want to enable ICMP redirects (inconfig ipsendredirects 1).
If you configured the system to be a router (Gateway) through the SCOadmin Network Configuration Manager (netconfig), both ipforwarding and ipsendredirects will be enabled.

论坛徽章:
0
16 [报告]
发表于 2005-01-17 19:35 |只看该作者

请教XP的动态IP环境vmware下SCO5.0.6如何设置网络?

选Nat方式。XP下选本地连接和vmnet8共享internet 连接,本地连接记着勾选上bridge protocol。设置vmnet8的IP为192.168.0.1,DNS为hostos的DNS.sco设置IP为192.168.0.x,网关和dns均为192.168.0.1。
xp 访问sco,添加sco的ip到xp的hosts文件,然后打开相应的服务。
sco访问xp,类似也可用samba.
窗口不能自动关闭是正常的,sco的关机命令不能切断电源,因此无法自动关闭虚拟机窗口。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
17 [报告]
发表于 2005-01-18 14:53 |只看该作者

请教XP的动态IP环境vmware下SCO5.0.6如何设置网络?

今天又看了看lw371推荐的那篇文章
其中Host_only方式下有这么一段话
host only模式下会由VMnet  1的DHCP server来提供IP,gateway,DNS。

楼主的系统如果是5.0.6+rs506a的,那么就可以用啊
rs506a提供了DHCP client模式, 即网卡可以不设置固定IP, 而由由DHCP Server负责分配
这样你的问题不就解决了?
注意有了rs506a之后使用netconfig选择tcp/ip协议时刻把check box
Use DHCP-Assigned Address

选择Yes, 下次启动后虚拟机的网卡即可从vmnet1获得动态IP,
在host only模式下接入internet你只能使用ICS和代理,
因为只有这两种方式可以在使用DHCP的情况下上网。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP