Gre over ipsec与ipsec over gre.doc_第1页
Gre over ipsec与ipsec over gre.doc_第2页
Gre over ipsec与ipsec over gre.doc_第3页
Gre over ipsec与ipsec over gre.doc_第4页
Gre over ipsec与ipsec over gre.doc_第5页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Gre over ipsec(很实用) Gre 实现私网连通性 ipsec实现数据安全性R1 R1#sh runBuilding configuration.Current configuration : 1474 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R1!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5ip cef!no ip domain lookup!multilink bundle-name authenticated!archive log config hidekeys! !crypto isakmp policy 10 encr 3des authentication pre-share group 2crypto isakmp key sunan address 13 (对端公网ip)!crypto ipsec transform-set t10 esp-3des esp-sha-hmac (传输模式)!crypto map p1 10 ipsec-isakmp set peer 13 set transform-set t10 match address 111! interface Tunnel0 ip address tunnel source FastEthernet0/0 tunnel destination 13!interface FastEthernet0/0 ip address 12 duplex auto speed auto crypto map p1!interface FastEthernet0/1 ip address duplex auto speed auto!router ospf 1 (使用T0口建立ospf邻居) log-adjacency-changes passive-interface default no passive-interface Tunnel0 network 55 area 0 network 55 area 0! ip forward-protocol nd!no ip http serverno ip http secure-server!access-list 111 permit ip host 12 host 13no cdp run!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0 exec-timeout 0 0 logging synchronousline vty 0 4 loginendR2R2 show run R1#sh runBuilding configuration.Current configuration : 1474 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R1!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5ip cef!no ip domain lookup!multilink bundle-name authenticated!archive log config hidekeys! !crypto isakmp policy 10 encr 3des authentication pre-share group 2crypto isakmp key sunan address 13!crypto ipsec transform-set t10 esp-3des esp-sha-hmac !crypto map p1 10 ipsec-isakmp set peer 13 set transform-set t10 match address 111! interface Tunnel0 ip address tunnel source FastEthernet0/0 tunnel destination 13!interface FastEthernet0/0 ip address 12 duplex auto speed auto crypto map p1!interface FastEthernet0/1 ip address duplex auto speed auto!router ospf 1 log-adjacency-changes passive-interface default no passive-interface Tunnel0 network 55 area 0 network 55 area 0! ip forward-protocol nd!no ip http serverno ip http secure-server!access-list 111 permit ip host 12 host 13no cdp run!control-plane! line con 0 exec-timeout 0 0 logging synchronousline aux 0 exec-timeout 0 0 logging synchronousline vty 0 4 loginendipsec配置1. sa一致2. set peer 点是公网ip3. acl 感兴趣流量写 公网主机 到对端公网主机 4. 模式 最好用 隧道模式 传输模式也行 5. 加密图绑在 公网出口上Ipec over gre(没意义)还是上面的拓扑R1 R1 show run R1#sh runBuilding configuration.Current configuration : 1535 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R1!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5ip cef!no ip domain lookup!multilink bundle-name authenticated!archive log config hidekeys! !crypto isakmp policy 10 encr 3des authentication pre-share group 2crypto isakmp key sunan address !crypto ipsec transform-set t10 esp-3des esp-sha-hmac !crypto map p1 local-address Loopback0crypto map p1 10 ipsec-isakmp set peer set transform-set t10 match address 111!interface Loopback0 ip address 55!interface Tunnel0 ip address tunnel source FastEthernet0/0 tunnel destination 13 crypto map p1!interface FastEthernet0/0 ip address 12 duplex auto speed auto!interface FastEthernet0/1 ip address duplex auto speed auto!router ospf 1 log-adjacency-changes network area 0 network 55 area 0 network 55 area 0!ip forward-protocol nd!no ip http serverno ip http secure-server!access-list 111 permit ip 55 55no cdp run!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0 exec-timeout 0 0 logging synchronousline vty 0 4 login!EndR2 R2 show run Building configuration.Current configuration : 1535 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R2!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5ip cef!no ip domain lookup! *Mar 1 00:13:36.259: %SYS-5-CONFIG_I: Configured from console by consolemultilink bundle-name authenticated!archive log config hidekeys! !crypto isakmp policy 10 encr 3des authentication pre-share group 2crypto isakmp key sunan address !crypto ipsec transform-set t10 esp-3des esp-sha-hmac (2种模式都可以)!crypto map p1 local-address Loopback0 (使用loopback 地址建立peer为了引流量)crypto map p1 10 ipsec-isakmp set peer set transform-set t10 match address 111! interface Loopback0 ip address 55!interface Tunnel0 ip address tunnel source FastEthernet0/0 tunnel destination 12 crypto map p1!interface FastEthernet0/0 ip address 13 duplex auto speed auto!interface FastEthernet0/1 ip address duplex auto speed auto!router ospf 1 (T0口建立ospf

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论