新足迹

 找回密码
 注册

精华好帖回顾

· 2012复活节新西兰南岛10天家庭游,图全发完了。谢谢斑竹加精。 (2012-11-30) jinluo · 参加活动-马上变大厨之 福州鱼丸 (2014-2-6) daniello
· 赶搭征文末班车-在澳洲的第一辆车 我们新生活的开端 (2008-1-31) villa · 咎由自取 – 活该 - 慢慢讲 (2008-12-10) Ritacow
Advertisement
Advertisement
查看: 1707|回复: 12

问题讨论,如果vpn两端的客户端地址段相同怎么做? [复制链接]

发表于 2012-6-14 17:16 |显示全部楼层
此文章由 商务车 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 商务车 所有!转贴必须注明作者、出处和本声明,并保持内容完整
如果vpn两端的客户端地址段相同怎么做vpn?比如说两个公司的地址段都是192.68.2.x/24,这时候如果做vpn的话,怎么解决这个问题?


btw,游神,我记得Juniper是有这种解决方案的,但是别说要花钱你才肯说啊...

[ 本帖最后由 商务车 于 2012-6-14 16:17 编辑 ]
Advertisement
Advertisement

发表于 2012-6-14 17:18 |显示全部楼层
此文章由 夜游神 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 夜游神 所有!转贴必须注明作者、出处和本声明,并保持内容完整
矮油 两端都做double nat么~~~
这个和哪个厂商的设备灭有任何关系

Over lapping LAN layer3 addressing issue at both end can be fixed by double NAT~~~The best practise此外和两个站点直接的链路模式灭有关系 可以是任何模式的链路
(monkey06)

评分

参与人数 1积分 +3 收起 理由
商务车 + 3 感谢分享

查看全部评分

Do My Best!! 把梦实现 走到海的最遥远!!!!!

发表于 2012-6-14 17:29 |显示全部楼层
此文章由 商务车 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 商务车 所有!转贴必须注明作者、出处和本声明,并保持内容完整
怎么做double nat?google了一下,double NAT指的是在一个网络里有两个设备同时做NAT,这样好像不能解决异地的问题。

发表于 2012-6-14 17:44 |显示全部楼层
此文章由 夜游神 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 夜游神 所有!转贴必须注明作者、出处和本声明,并保持内容完整
Google不是这么Google的
Customer A LAN:192.168.2.0/24
Customer A WAN/Internet Routable:203.202.101.0/24

Customer B LAN:192.168.2.0/24
Customer B WAN/Internet Routable:123.231.101.0/24

如果是Private WAN的话(不是logical secured tunnel over Internet)
Customer Gateway A:
For traffic outbound from A ==> B;   souce nat 必须的 nating pool直接选择WAN/Internet Routable
For traffic incoming from B ==> A;   destination nat 必须的 nating pool可以选择LAN range/你自己定义的private range (Souce NAT可有可无)

Customer Gateway B:
For traffic outbound from B ==> A; souce nat 必须的 nating pool直接选择WAN/Internet Routable
For traffic incoming from A ==> B; destination nat 必须的 nating pool可以选择LAN range/你自己定义的private range (Souce NAT可有可无)

如果是走IPSEC或者是GRE over IPSEC
Customer A:
For traffic outbound from A ==> B; souce nat & destination nat 必须的
For traffic incoming from B ==> A; destination nat 必须的; souce nat可有可无

Customer B:
For traffic outbound from B ==> A; souce nat & destination nat 必须的
For traffic incoming from A ==> B; destination nat 必须的; souce nat可有可无

评分

参与人数 1积分 +5 收起 理由
商务车 + 5 感谢分享

查看全部评分

Do My Best!! 把梦实现 走到海的最遥远!!!!!

发表于 2012-6-14 18:03 |显示全部楼层
此文章由 商务车 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 商务车 所有!转贴必须注明作者、出处和本声明,并保持内容完整
老大你这个水平还去考什么ccie啊,现在已经能拿到至少15w一年了吧

发表于 2012-6-14 18:04 |显示全部楼层
此文章由 夜游神 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 夜游神 所有!转贴必须注明作者、出处和本声明,并保持内容完整
我只会NAT~~别的都不怎么懂么~~~只懂NAT~~一年可以有15万么???
速速雇佣我 速速~~~
Advertisement
Advertisement

发表于 2012-6-14 20:44 |显示全部楼层
此文章由 superblue 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 superblue 所有!转贴必须注明作者、出处和本声明,并保持内容完整
Easy... 把一端先NAT再加密就可以了,你去查一查你用设备的order of operation, NAT后面才是VPN tunnel

我用Cisco IOS-XE, 应该IOS也可以。

[ 本帖最后由 superblue 于 2012-6-14 19:48 编辑 ]
头像被屏蔽

禁止发言

发表于 2012-6-14 23:27 |显示全部楼层
此文章由 richsea 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 richsea 所有!转贴必须注明作者、出处和本声明,并保持内容完整
Because both networks use the same internal IP addressing, it is not possible to simply build a
tunnel between the two sites. However, if the tunnel endpoints on both sides are Juniper services routers, it
is possible to configure a tunnel between these sites with an advanced configuration using NAT. It is
important to understand this basic routing dilemma. If a host is attached to a network, say 10.0.0.0/24, and
the other device on the remote end is attached to a network using the same IP address subnet, it is not
possible to build a tunnel and route the traffic to the other device without some sort of address translation.
This is because all packets are routed based on the destination IP address. Before routing occurs, a
determination must be made as to whether the destination IP is on the same (local) network or not. If the
destination IP is on the same network, say 10.0.0.10, the destination device is found using Address
Resolution Protocol (ARP). However, if the destination IP resides on a different network, the packet is sent
to the next- hop router based on the device's routing table. Because both the local and remote networks
share the same IP addressing scheme, the packets will be handled locally and never route to the VPN
tunnel. To work around this, we can perform static NAT on the source IP and destination IP of all traffic
destined for the remote network at the other end of the tunnel. For this reason, aroute based approach to
IPsec VPNs makes sense, because the creation of a "virtual" network interface on each services router by
way of a "secure tunnel" or "st0" interface is required. It is important to note that in this case the both source
and destination addresses are translated as the packet traverses the VPN tunnel to the end host. Thus the
services routers at each end of the tunnel must contact each other using a newly created IP network.

Juniper的做法:

http://www.juniper.net/techpubs/ ... es-configuring.html

[ 本帖最后由 richsea 于 2012-6-24 17:38 编辑 ]
签名被屏蔽

发表于 2012-6-16 00:48 |显示全部楼层
此文章由 墨市开心 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 墨市开心 所有!转贴必须注明作者、出处和本声明,并保持内容完整
既然一家公司,谁规划的IP地址,这么扯淡,为撒子要地址一样撒?改了地址从新设计

发表于 2012-6-16 00:55 |显示全部楼层
此文章由 bulaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 bulaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
俺这个外行也知道是NAT两次 具体就不会了

楼上的,这种情况多发生于acquisation / merger之后,特别是如果A公司的网管曾经也是B公司的网管的情况

发表于 2012-6-16 14:47 |显示全部楼层
此文章由 商务车 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 商务车 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 bulaohu 于 2012-6-15 23:55 发表
俺这个外行也知道是NAT两次 具体就不会了

楼上的,这种情况多发生于acquisation / merger之后,特别是如果A公司的网管曾经也是B公司的网管的情况



两个公司合并,合并之前的所有内网地址相同
Advertisement
Advertisement
头像被屏蔽

禁止发言

发表于 2012-6-24 18:39 |显示全部楼层
此文章由 richsea 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 richsea 所有!转贴必须注明作者、出处和本声明,并保持内容完整
Because both networks use the same internal IP addressing, it is not possible to simply build a
tunnel between the two sites. However, if the tunnel endpoints on both sides are Juniper services routers, it
is possible to configure a tunnel between these sites with an advanced configuration using NAT. It is
important to understand this basic routing dilemma. If a host is attached to a network, say 10.0.0.0/24, and
the other device on the remote end is attached to a network using the same IP address subnet, it is not
possible to build a tunnel and route the traffic to the other device without some sort of address translation.
This is because all packets are routed based on the destination IP address. Before routing occurs, a
determination must be made as to whether the destination IP is on the same (local) network or not. If the
destination IP is on the same network, say 10.0.0.10, the destination device is found using Address
Resolution Protocol (ARP). However, if the destination IP resides on a different network, the packet is sent
to the next- hop router based on the device's routing table. Because both the local and remote networks
share the same IP addressing scheme, the packets will be handled locally and never route to the VPN
tunnel. To work around this, we can perform static NAT on the source IP and destination IP of all traffic
destined for the remote network at the other end of the tunnel. For this reason, aroute based approach to
IPsec VPNs makes sense, because the creation of a "virtual" network interface on each services router by
way of a "secure tunnel" or "st0" interface is required. It is important to note that in this case the both source
and destination addresses are translated as the packet traverses the VPN tunnel to the end host. Thus the
services routers at each end of the tunnel must contact each other using a newly created IP network.

评分

参与人数 1积分 +5 收起 理由
商务车 + 5 感谢分享

查看全部评分

签名被屏蔽

发表于 2012-6-26 09:34 |显示全部楼层
此文章由 lingyang 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 lingyang 所有!转贴必须注明作者、出处和本声明,并保持内容完整
cisco网站上有样板文档,
IPsec Between Two IOS Routers with Overlapping Private Networks Configuration Example
http://www.cisco.com/en/US/produ ... 86a0080a0ece4.shtml

评分

参与人数 1积分 +3 收起 理由
商务车 + 3 感谢分享

查看全部评分

发表回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Advertisement
Advertisement
返回顶部