




已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 序数课件教学课件
- 《线条的艺术表现力》课件-2025-2026学年人美版初中美术九年级上册
- 巡察课件教学课件
- 输煤运行安全培训管理课件
- 输液泵的课件
- 创新型离婚财产分割与子女监护权协议范本
- 农业生产抵账协议范本
- 城市更新改造项目合同策划与社区和谐
- 旅游度假区承包经营合作协议范本
- 城市轨道交通工程:墙体拆除与地下空间开发合同
- 新闻编辑(修改版)马工程课件 第六章
- GB/T 2930.8-2017草种子检验规程水分测定
- 勘察设计工作大纲
- GB/T 17188-1997农业灌溉设备滴灌管技术规范和试验方法
- 关于国有集团公司采购管理办法【五篇】
- 2022年资阳市雁江区社区工作者招聘考试笔试试题及答案解析
- 2.2 第2课时 基本不等式的综合应用(课件)高一数学(人教A版2019必修第一册)
- 帮助卧床老年人使用便器排便课件
- 【高考英语精品专题】必修1 Unit 1 Life Choices-高考英语-一轮总复习备考方略课件PPT(新教材北师大版)
- 中国传媒大学-新媒体概论(刘行芳)-课件
- 医学放射卫生相关法律法规ppt培训课件
评论
0/150
提交评论