需要有关RAS DUN设置的网络配置的帮助 [英] Need help with network configuration of RAS DUN setup

查看:101
本文介绍了需要有关RAS DUN设置的网络配置的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行Windows 7的实验室中进行了一个小设置,该设备连接到通过拨号RAS连接到另一台设备的调制解调器路由器.这是我所拥有的图表:

I have a small setup in my lab running Windows 7 connecting to a modem router which connects to another device via dialup RAS. Here is a diagram of what I have:

My PC   192.168.1.6   (this PC tries to open a socket to 192.168.0.4)
  ||                  (using RAS DUN)
  ||
Modem router  192.168.0.30 (address given to connecting PC)
  ||          192.168.0.1  (gateway of modem)(subnet mask 255.255.254.0)
  ||
Remote Dev.   192.168.0.4


问题是我的PC无法打开192.168.0.4的套接字.


The problem is that my PC can''t open a socket to 192.168.0.4. It times out.

推荐答案

几年前,我写了一些类似的代码,并在建立拨号连接后始终打开192.168.1.1的套接字.因此,也许您应该尝试以下操作:

I wrote some similar code several years ago and always opened a socket to 192.168.1.1 once the dialup connection was made. So perhaps you should try this:

Socket.Connect("192.168.1.1", Port)


解决方案是调制解调器中有关外部IP地址和子网掩码的设置.我将远程LAN IP地址设置为192.168.0.33,并将子网掩码设置为255.255.255.240.连接到另一台设备的调制解调器的另一侧设置为192.168.0.1,子网掩码为255.255.255.224.完成之后,它运行完美.
The solution was the setting in the modem concerning the outside IP address and subnet mask. I set the Remote LAN IP address to 192.168.0.33 and the subnet mask to 255.255.255.240. The other side of the modem which attached to another device was set to 192.168.0.1 with a subnet mask of 255.255.255.224. After doing that, it worked perfectly.


这篇关于需要有关RAS DUN设置的网络配置的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆