• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

IPsec的VPN考配置

发布: 2007-6-23 18:14 | 作者:   | 来源:   | 查看: 49次 | 进入软件测试论坛讨论

领测软件测试网

   
  IP sec的VPN考配置
  
  左边的router:
  crypto isakmp policy 1
  hash md5
  authentication pre-share
  crypto isakmp key cisco123 address 202.96.15.88
  !

  crypto ipsec transform-set rtpset esp-des esp-md5-hmac
  !
  crypto map rtp 1 ipsec-isakmp
  set peer 202.96.15.88
  set transform-set rtpset
  match address 102
  !
  interface Ethe.net0/0
  ip address 192.168.1.1 255.255.255.0
  no ip directed-broadcast
  ip nat inside
  !
  interface Ethernet0/1
  ip address 61.153.158.44 255.255.255.0
  no ip directed-broadcast
  ip nat outside
  no ip route-cache
  no ip mroute-cache
  crypto map rtp
  
  ip nat inside source route-map nonat interface Ethernet0/1 overload
  
  ip classless
  ip route 0.0.0.0 0.0.0.0 61.153.158.4x(网关)
  no ip http server
  access-list 101deny ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
  access-list 101 permit ip 192.168.1.0 0.0.0.255 any
  access-list 102 permit ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
  route-map nonat permit 10
  match ip address 102
  
  右边的router:
  
  crypto isakmp policy 1
  hash md5
  authentication pre-share
  crypto isakmp key cisco123 address 61.153.158.44
  !
  crypto ipsec transform-set rtpset esp-des esp-md5-hmac
  !
  crypto map rtp 1 ipsec-isakmp
  set peer 61.153.158.44
  set transform-set rtpset
  match address 102
  !
  interface Ethernet0/0
  ip address 192.168.2.1 255.255.255.0
  no ip directed-broadcast
  ip nat inside
  !
  interface Ethernet0/1
  ip address 202.96.15.88 255.255.255.0
  no ip directed-broadcast
  ip nat outside
  no ip route-cache
  no ip mroute-cache
  crypto map rtp
  
  ip nat inside source route-map nonat interface Ethernet0/1 overload
  
  ip classless
  ip route 0.0.0.0 0.0.0.0 202.96.15.8x(网关)
  no ip http server
  access-list 101deny ip 192.168.2.0 0.0.0.255 192.168.1.0 0.0.0.255
  access-list 101 permit ip 192.168.2.0 0.0.0.255 any
  access-list 102 permit ip 192.168.2.0 0.0.0.255 192.168.1.0 0.0.0.255
  route-map nonat permit 10
  match ip address 102

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网