路由×××的配置 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

一、 目的:两局域网之间互相访问。

二、 说明:VS1、VS2是一个局域网,VS3、VS4是另一个局域网,在VS2和VS3上做RAS服务,其配置如下:VS1的IP地址为192.168.1.1,子网掩码255.255.255.0,默认网关192.168.1.2网卡类型为Bridget,VS2网卡1的IP地址192.168.1.2,子网掩码255.255.255.0,网卡类型Bridget,网卡2的IP地址172.16.1.1,子网掩码255.255.0.0,网卡类型NAT,VS3网卡1的IP地址172.16.1.2,子网掩码255.255.0.0,网卡类型NAT,网卡2的IP地址10.1.1.1,子网掩码255.0.0.0,网卡类型Host-only,VS4的IP地址10.1.1.2,子网掩码255.0.0.0,默认网关10.1.1.1,网卡类型Host-only。

三、步骤:
1、 在VS2上建立拔入×××的用户***one,步骤如下:右击“我的电脑”-管理-本地用户和组-点击用户-新建用户***one-右击***on-属性-拔入-允许访问-确定。

四、 在VS3上建立拔入×××的用户***two,步骤如下:右击“我的电脑”-管理-本地用户和组-点击用户-新建用户***two-右击***two-属性-拔入-允许访问-确定。

五、 在VS2-开始-程序-管理工具-VS2(本地)-右击VS2(本地)-配置并启用路由和远程访问-下一步-两个专用网络之间的安全连接-下一步-下一步-IP地址指定-来自一个指定IP地址范围-地址范围指定-新建-新建地址范围(起始IP:192.168.2.1,结束IP:192.168.2.10)-确定-下一步-完成-下一步-接口名称(***one)-下一步-下一步-点到点隧道协议-下一步-目标地址(172.16.1.2)-下一步-远程网络的静态路由-添加(目标:10.1.1.0,255.255.255.0)-下一步-拔出赁据(用户名:***two密码:123,确定密码:123)-下一步-完成。

2、 在VS3-开始-程序-管理工具-VS3(本地)-右击VS3(本地)-配置并启用路由和远程访问-下一步-两个专用网络之间的安全连接-下一步-下一步-IP地址指定-来自一个指定IP地址范围-地址范围指定-新建-新建地址范围(起始IP:10.1.2.1,结束IP:10.1.2.10)-确定-下一步-完成-下一步-接口名称(***two)-下一步-下一步-点到点隧道协议-下一步-目标地址(172.16.1.1)-下一步-远程网络的静态路由-添加(目标:192.168.1.0,255.255.255.0)-下一步-拔出赁据(用户名:***one密码:123,确定密码:123)-下一步-完成,点击(VS3本地)- 网络接口-***two-右击***two-连接

3、 基本配置已完成,查看效果。

在VS2和VS3上ipconfig查看IP地址如下:

VS2上的IP:

   PPP adapter RAS Server (Dial In) Interface:

   Connection-specific DNS Suffix  . :

   IP Address. . . . . . . . . . . . : 192.168.2.1

   Subnet Mask . . . . . . . . . . . : 255.255.255.255

   Default Gateway . . . . . . . . . :

   Ethernet adapter 网卡1:

   Connection-specific DNS Suffix  . :

   IP Address. . . . . . . . . . . . : 192.168.1.2

   Subnet Mask . . . . . . . . . . . : 255.255.255.0

   Default Gateway . . . . . . . . . :

Ethernet adapter 网卡2:

Connection-specific DNS Suffix  . :

IP Address. . . . . . . . . . . . : 172.16.1.1

Subnet Mask . . . . . . . . . . . : 255.255.0.0

Default Gateway . . . . . . . . . :

PPP adapter ***one:

Connection-specific DNS Suffix  . :

IP Address. . . . . . . . . . . . : 10.1.2.2

Subnet Mask . . . . . . . . . . . : 255.255.255.255

Default Gateway . . . . . . . . . :

VS3上的IP:

PPP adapter RAS Server (Dial In) Interface:

Connection-specific DNS Suffix  . :

IP Address. . . . . . . . . . . . : 10.1.2.1

Subnet Mask . . . . . . . . . . . : 255.255.255.255

Default Gateway . . . . . . . . . :

Ethernet adapter 网卡1:

Connection-specific DNS Suffix  . :

IP Address. . . . . . . . . . . . : 172.16.1.2

Subnet Mask . . . . . . . . . . . : 255.255.0.0

Default Gateway . . . . . . . . . :

Ethernet adapter 网卡2:

Connection-specific DNS Suffix  . :

IP Address. . . . . . . . . . . . : 10.1.1.1

Subnet Mask . . . . . . . . . . . : 255.0.0.0

Default Gateway . . . . . . . . . :

PPP adapter {16882817-7AD2-40BD-BD3A-703B6AE346B5}:

Connection-specific DNS Suffix  . :

IP Address. . . . . . . . . . . . : 192.168.2.2

Subnet Mask . . . . . . . . . . . : 255.255.255.255

Default Gateway . . . . . . . . . :

在VS1和VS4上互相用ping命令验证如下:

在VS1上pingVS4的IP:10.1.1.2

C:\Documents and Settings\Administrator>ping 10.1.1.2

Pinging 10.1.1.2 with 32 bytes of data:

Reply from 10.1.1.2: bytes=32 time=7ms TTL=126

Reply from 10.1.1.2: bytes=32 time=3ms TTL=126

Reply from 10.1.1.2: bytes=32 time=5ms TTL=126

Reply from 10.1.1.2: bytes=32 time=4ms TTL=126

Ping statistics for 10.1.1.2:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 3ms, Maximum = 7ms, Average = 4ms

C:\Documents and Settings\Administrator>

在VS4上pingVS的IP:192.168.1.1

C:\Documents and Settings\Administrator>ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=15ms TTL=126

Reply from 192.168.1.1: bytes=32 time=4ms TTL=126

Reply from 192.168.1.1: bytes=32 time=5ms TTL=126

Reply from 192.168.1.1: bytes=32 time=4ms TTL=126

Ping statistics for 192.168.1.1:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 4ms, Maximum = 15ms, Average = 7ms

C:\Documents and Settings\Administrator>

使用UNC路径也能够互相访问

在VS1上\\10.1.1.2

在VS4上\\192.168.1.1

到此路由×××实验基本上完成。