登录站点

用户名

密码

GRE IPsec Vpn (环境PT5.3)

热7已有 281 次阅读  2010-09-27 18:14   标签:  IPsec  Vpn  GRE  环境 
需求分析:公司分布A下,下挂几个网段(比如说做了单臂路由),保证A分布下的各个网段能与分部B能够通信,在这里能够想到的技术:ipsec vpn、mpls vpn、GRE ipsec vpn、FR、ISDN等等,公司为了缩减成本,要求在原有网络架构上实现,这样的话,就只能使用GRE ipsec vpn 在分部A和分部B的路由上跑一个IGP传递路由,从另一方面也优化了IPsec vpn,原因是ipsec vpn需要前几个包促发感兴趣流量从而打通隧道,这里在A分部与B分部跑了EIGRP,用hello包促发打通两地隧道。

技术分析:要区分GRE ipsec vpn与IPsec vpn的不同点,重点在包的封装上

贴出分部A和分部B的关键配置

--------------------------------分部A--------------------------------------------

crypto isakmp policy 10
 encr 3des
 hash md5
 authentication pre-share
 group 2
!
crypto isakmp key cisco address 35.1.1.5
!
!
crypto ipsec transform-set set esp-des esp-md5-hmac
!
crypto map vpn 10 ipsec-isakmp
 set peer 35.1.1.5
 set transform-set set
 match address 100
!
no ip domain-lookup
!
interface Tunnel2
 ip address 172.16.1.1 255.255.255.0
 tunnel source Serial1/0
 tunnel destination 35.1.1.5
!
!
interface FastEthernet0/1
 ip address 192.168.1.1 255.255.255.0
 duplex auto
 speed auto
!
interface Serial1/0
 ip address 24.1.1.4 255.255.255.0
 crypto map vpn
!
router eigrp 90
 network 172.16.1.0 0.0.0.255
 network 192.168.1.0
 no auto-summary
!
ip classless
!
!
access-list 100 permit gre host 24.1.1.4 host 35.1.1.5 

-------------------------------分部B---------------------------------------------

crypto isakmp policy 10
 encr 3des
 hash md5
 authentication pre-share
 group 2
!
crypto isakmp key cisco address 24.1.1.4
!
!
crypto ipsec transform-set set esp-des esp-md5-hmac
!
crypto map vpn 10 ipsec-isakmp
 set peer 24.1.1.4
 set transform-set set
 match address 100
!
no ip domain-lookup
!
interface Tunnel3
 ip address 172.16.1.2 255.255.255.0
 tunnel source Serial1/0
 tunnel destination 24.1.1.4
!
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet0/1
 ip address 192.168.2.1 255.255.255.0
 duplex auto
 speed auto
!
interface Serial1/0
 ip address 35.1.1.5 255.255.255.0
 crypto map vpn
!
router eigrp 90
 network 192.168.2.0
 network 172.16.1.0 0.0.0.255
 no auto-summary
!
ip classless
!
!
access-list 100 permit gre host 35.1.1.5 host 24.1.1.4

上面标红色的要注意区别与IPsec vpn

测试结果:(分部PC1ping分部PC2)

分享 举报

发表评论 评论 (7 个评论)

  • 无野小子 2010-09-27 18:25
  • njesale 2010-09-27 19:16
    无野小子:
    我参加了那个思科在线测试,能不能送我件思科的Tshirt的啊
  • meiwen01 2010-09-28 13:59
    无野小子  我也要CISCO的Tshirt,
  • njesale 2010-09-30 17:17
    meiwen01: 无野小子  我也要CISCO的Tshirt,
    思科发邮件给我了,哈哈 说T恤很快就要发出来
  • aiqingge 2010-09-30 17:45
    楼主,这个软件现在还无法支持MPLS VPN吧!
  • njesale 2010-09-30 18:28
    aiqingge: 楼主,这个软件现在还无法支持MPLS VPN吧!
    不支持啊
  • meiwen01 2010-10-17 20:54
    njesale: 思科发邮件给我了,哈哈 说T恤很快就要发出来
    我还是没有
涂鸦板