3.1 IKEv2 最基本IOS vs IOS SVTI

思科cisoc 路由器IKEv2配置ipsec tunnel口隧道 环境拓扑图 R1配置 接口配置 R1#configure terminal R1(config)#interface ethernet 1/0 R1(config-if)#no shutdown R1(config-if)#ip address 30.1.1.2 255.255.255.0 R1(config-if)#exit R1(config)#interface ethernet 1/1 R1(config-if)#no shutdown R1(config-if)#ip address 阅读详情

3.1 IKEv2 最基本IOS vs IOS SVTI  

-------------------------------------------------
         tun0----192.168.1.0----tun0
          | .1                   .2 |
--------Site1------Internet------Site2--------
      .1   .1    .10    .10     .1    .1
172.16.1.1   202.100.1.0   61.128.1.0   10.1.1.1


----------------------------------------------------
alias exec i show ip inter brief 
alias exec e show crypto engine connections active 


---------------------------------------------


hostname Site1 


interface loopback 0 
 ip address 172.16.1.1 255.255.255.0 
 
interface FastEthernet 0/0 
 ip address 202.100.1.1 255.255.255.0 
 no shutdown 
 duplex full 


ip route 0.0.0.0 0.0.0.0 202.100.1.10 


hostname Internet 


interface FastEthernet 0/0 
 ip address 202.100.1.10 255.255.255.0 
 no shutdown 


interface FastEthernet 1/0 
 ip address 61.128.1.10 255.255.255.0 
 no shutdown 


hostname Site2 
 
interface loopback 0 
 ip address 10.1.1.1 255.255.255.0 
 
interface FastEthernet 1/0 
 ip address 61.128.1.1 255.255.255.0 
 no shutdown 
 duplex full 


ip route 0.0.0.0 0.0.0.0 61.128.1.10 


-----------------------------------------------
Site1: 


crypto ikev2 keyring CCIE-Keyring 
 peer Site2 
  address 61.128.1.1 
  pre-shared-key CCIE-Pre-Key 


crypto ikev2 profile CCIE-IKEv2-Profile 
 match identity remote address 61.128.1.1  
 identity local address 202.100.1.1 
 authentication remote pre-share 
 authentication local pre-share 
 keyring local CCIE-Keyring 


crypto ipsec profile CCIE-IPSec-Profile 
 set ikev2-profile CCIE-IKEv2-Profile 


interface tunnel 0 
 ip address 192.168.1.1 255.255.255.0 
 tunnel source FastEthernet 0/0 
 tunnel mode ipsec ipv4 
 tunnel destination 61.128.1.1 
 tunnel protection ipsec profile CCIE-IPSec-Profile 


---------------------------------------------------
Site2:


crypto ikev2 keyring CCIE-Keyring 
 peer Site1 
  address 202.100.1.1 
  pre-shared-key CCIE-Pre-Key 


crypto ikev2 profile CCIE-IKEv2-Profile 
 match identity remote addrss 202.100.1.1 
 identity local address 61.128.1.1 
 authentication remote pre-share 
 authentication local pre-share 
 keyring local CCIE-Keyring 


crypto ipsec profile CCIE-IPSec-Profile 
 set ikev2-profile CCIE-IKEv2-Profile 


interface tunnel 0 
 ip address 192.168.1.2 255.255.255.0 
 tunnel source FastEthernet 1/0 
 tunnel mode ipsec ipv4 
 tunnel destination 202.100.1.1 
 tunnel protection ipsec profile CCIE-IPSec-Profile 


---------------------------------------------------


alias exec i show ip inter brief 
alias exec e show crypto engine connections active 


show crypto engine connection active 


-----------------------------------------------------
Site1: 配置动态路由协议


router ospf 1
 exit
interface tunnel 0 
 ip ospf 1 area 0 
interface lo 0 
 ip ospf 1 area 0 


Site2: 配置动态路由协议


router ospf 1 
 exit
interface tunnel 0 
 ip ospf 1 area 0 
interface lo 0 
 ip ospf 1 area 0 


ping 172.16.1.1 so lo 0 re 10 


--------------------------------------------------
3.2 异步密钥


Site1 Keyring config:


crypto ikev2 keyring CCIE-Keyring 
 peer Site2 
  address 61.128.1.1 
  pre-shared-key local CCIE-Site1-Key 
  pre-shared-Key remote CCIE-Site2-Key 




Site2 Keyring config: 


crypto ikev2 keyring CCIE-Keyring 
 peer Site1 
  address 202.100.1.1 
  pre-shared-key local CCIE-Site2-Key 
  pre-shared-key remote CCIE-Site1-Key 


------------------------------------------------


clear crypto sa 


ping 10.1.1.1 so lo 0 


---------------------------------------------------


3.3 双向证书认证 


配置NTP (时间同步非常重要)


Internet config: 


clock timezone GMT +8 
clock set 13:20:00 4 oct 2012 
ntp master 


Site1 config: 


clock timezone GMT +8 
ntp server 202.100.1.10 


Site2 config: 


clock timezone GMT +8 
ntp server 61.128.1.10 


-------------


Internet config :


ip http server 


ip domain name mingjiao.org 


crypto pki server CA 
 issuer-name cn=Internet.mingjao.org,ou=mingjaosec
 database level complete 
 grant auto 
 no shutdown 


password:*********
repassword:*********


Router#show crypto pki server 
Certificate Server CA:
    Status: enabled
    State: enabled
    Server's configuration is locked  (enter "shut" to unlock it)
    Issuer name: cn=Inernet.mingjiao.org,ou=mingjiaosec
    CA cert fingerprint: 9CE09B70 1ED69F33 CB0F5473 89BA18D4 
    Granting mode is: auto
    Last certificate issued serial number (hex): 1
    CA certificate expiration timer: 02:26:13 UTC May 12 2019
    CRL NextUpdate timer: 08:26:19 UTC May 12 2016
    Current primary storage dir: nvram:
    Database Level: Complete - all issued certs written as <serialnum>.cer
Router#


----------------------------
Site1: 


1.config Trustpoint 


ip domain name mingjiao.org 


crypto pki trustpoint CA
 enrollment url http://202.100.1.10:80 
 subject-name cn=Site1.mingjiao.org,ou=mingjiaosec
 revocation-check crl (此命令为自动产生)


2.获取根证书


crypto pki authenticat CA 


yes 
show crypto pki certificates 


3.申请个人证书


crypto pki enroll CA 


no
no
yes


show crypto pki certificates 


----------------------------------------------


Site2: 


1.config Trustpoint 


ip domain name mingjao.org 


crypto pki trustpoint CA 
 enrollment url http://202.100.1.10:80 
 subject-name cn=Site2.mingjiao.org,ou=mingjiaosec
 revocation-check crl (此命令为自动产生)


2. 获取根证书


crypto pki authenticate CA 
yes


3.申请个人证书


crypto pki enroll CA 
no
no
yes


show cryp pki certificates 
------------------------------------------------


Site1: 


crypto pki certificate map CCIE-Cert-Map 10 
 sudject-name co ou=mingjiaosec




crypto ikev2 profile CCIE-IKEv2-Profile 
 match certificate CCIE-Cert-Map
 authentication remote rsa-sig 
 authentication local rsa-sig 
 pki trustpoint CA 


crypto ipsec profile CCIE-IPSec-Profile 
 set ikev2-profile CCIE-IKEv2-Profile 


interface tunnel 0 
 ip address 192.168.1.1 255.255.255.0 
 tunnel source FastEthernet 0/0 
 tunnel mode ipsec ipv4 
 tunnel destination 61.128.1.1 
 tunnel protection ipsec profile CCIE-IPSec-Profile 


---------------------------------------------------
Site2:


crypto pki certificate map CCIE-Cert-Map 10 
 subject-name co ou=mingjiaosec


crypto ikev2 profile CCIE-IKEv2-Profile 
 match certificate CCIE-Cert-Map 
 authentication remote rsa-sig 
 authentication local rsa-sig
 pki trustpoint CA 


crypto ipsec profile CCIE-IPSec-Profile 
 set ikev2-profile CCIE-IKEv2-Profile 


interface tunnel 0 
 ip address 192.168.1.2 255.255.255.0 
 tunnel source FastEthernet 1/0 
 tunnel mode ipsec ipv4 
 tunnel destination 202.100.1.1 
 tunnel protection ipsec profile CCIE-IPSec-Profile 


---------------------------------------------------


alias exec i show ip inter brief 
alias exec e show crypto engine connections active 


show crypto engine connection active 


clear crypto ikev2 sa
clear crypto sa 




shwo cryp ipsec sa 


e 


ping 192.168.1.2 so 192.168.1.1 


ping 10.1.1.1 so lo 0 re 10 




-----------------------------------------------------


3.4 证书+预共享密钥认证


Site1: 


1.config Keyring 


crypto ikev2 keyring CCIE-Keyring 
 peer Site2 
  address 61.128.1.1 
  pre-shared-key local CCIE-Site1-Key 


2. config Cert Map 


crypto pki certificate map CCIE-Cert-Map 10 
 subject-name co ou=mingjiaosec 




3.config ikev2 profile 


crypto ikev2 profile CCIE-IKEv2-Profile 
 match certificate CCIE-Cert-Map 
 identity local address 202.100.1.1 
 authentication remote rsa-sig 
 authentication local pre-share 
 keyring local CCIE-Keyring 
 pki trustpoint CA 


4. config ipsec profile 




crypto ipsec profile CCIE-IPSec-Profile 
 set ikev2-profile CCIE-IKEv2-Profile 


5. config tunnel 


interface tunnel 0 
 ip address 192.168.1.1 255.255.255.0 
 tunnel source FastEthernet 0/0 
 tunnel mode ipsec ipv4 
 tunnel destination 61.128.1.1 
 tunnel protection ipsec profile CCIE-IPSec-Profile 




------------------------------


Site2: 


1.config Keyring 


crypto ikev2 keyring CCIE-Keyring 
 peer Site1 
  address 202.100.1.1 
  pre-shared-key remote CCIE-Site1-Key 


2. config Cert Map 


crypto pki certificate map CCIE-Cert-Map 10 
 subject-name co ou=mingjiaosec 




3.config ikev2 profile 


crypto ikev2 profile CCIE-IKEv2-Profile 
 match identity remote address 202.100.1.1 
 identity local fqdn Site2.mingjiao.org (option)
 authentication remote pre-share
 authentication local rsa-sig 
 keyring local CCIE-Keyring 
 pki trustpoint CA 


4. config ipsec profile 


crypto ipsec profile CCIE-IPSec-Profile 
 set ikev2-profile CCIE-IKEv2-Profile 


5. config tunnel 


interface tunnel 0 
 ip address 192.168.1.2 255.255.255.0 
 tunnel source FastEthernet 1/0 
 tunnel mode ipsec ipv4 
 tunnel destination 202.100.1.1 
 tunnel protection ipsec profile CCIE-IPSec-Profile 


-----------------------------------------------


clear cryp sa 
clear cryp ikev2 sa 
clear cryp session 


interface tunnel 0 
 shutdown 
 no shutdown 




alias exec i show ip inter brief 
alias exec e show crypto engine connections active 


show crypto engine connection active 


clear crypto ikev2 sa
clear crypto sa 




show crypto engine connection active 


---------------------------------------------------


show ip route


ping ip ospf route 


----------------------------------------------------













































































































思科路由器IKEv2与IPSec隧道配置实战:从基础到高可用部署 本文详细介绍了思科路由器IKEv2与IPSec隧道的配置实战,从基础概念到高可用部署方案。通过分步指南和实际案例,帮助网络工程师掌握安全隧道搭建技巧,实现分支机构间安全互联和远程办公接入,提升网络通信的安全性和稳定性。 阅读详情

相关推荐

H3C 830ipsec配置实例无固定IP

acl advanced 3600 rule 0 permit ip source 10.2.2.0 0.0.0.3 destination 192.168.20.0 0.0.0.255 rule 5 permit ip source 10.2.2.0 0.0.0.3 destination 192.168.10.0 0.0.0.255 rule 10 permit ip source 172.2.2.0 0.0.0.255 destination 192.168.20.0 0.0.0.255 rule 1

江湖小飞将的博客 5641

SVTI的一些理解

很多地方看见对SVTI的说明是greoveripsec,因为这个东西都加密了,看不见内容,也说不了什么。偶然看见思科社区http://www.cisco-club.com.cn/space-113351-do-blog-id-8866.html关于juniperSRX和思科对联SVTI,具体看了一下juniper配置,完全是ipsec的接口模式,没有gre参与,想来是一...

weixin_34209851的博客 682

Linux下IKEv1和IKEv2协议的仿真分析.pdf

Linux下IKEv1和IKEv2协议的仿真分析.pdf

IOS IKEv2 IPSec配置(SVTI)

1、拓扑 2、目标 通过在R1和R3建立IPSEC,让R1的Lo0和R3的Lo0互通 3、配置步骤 IP地址配置忽略。 3.1、打通路由器连通性 为了实现R1和R3物理接口网段互通,通过R1和R3的静态路由配置。 R1(config)#ip route 23.1.1.0 255.255.255.0 12.1.1.2 R1(config)# R3(config)#ip route 12.1...

剪刀石头布 663

告别屏幕适配焦虑:用AndroidAutoSize 1.2.1搞定多尺寸设备(附AndroidX兼容方案)

本文详细介绍了AndroidAutoSize 1.2.1在屏幕适配中的应用,帮助开发者高效解决多尺寸设备适配问题。通过动态计算机制,AutoSize显著提升了UI一致性和开发效率,特别适合处理横竖屏切换、折叠屏等复杂场景。文章还提供了AndroidX兼容方案和性能优化建议,是Android开发者的实用指南。

weixin_42535461的博客 190

VS2022如何兼容老项目?.NET Framework 4.0/4.5安装避坑指南

本文提供了在Visual Studio 2022中兼容和维护.NET Framework 4.0/4.5等老旧项目的完整解决方案。针对VS2022无法直接识别旧框架的核心问题,文章详细剖析了原因,并重点推荐通过官方NuGet包安全获取引用程序集的方法,给出了从下载、解压到部署至标准目录的详细步骤。同时,文章还深入探讨了项目文件格式过旧、NuGet包还原失败等进阶问题的排查与解决策略,旨在帮助开发者高效、稳定地在现代开发环境中维护历史代码库。

weixin_27734811的博客 516

配置SVTI

路由器SVTI站点到站点VPN 在IOS 12.4之前建立安全的站点间隧道只能采用GRE over IPSec,从IOS 12.4之后设计了一种全新的隧道技术,即VIT(Virtual Tunnel Interface),这种技术是直接采用IPSec来创建的一个VTI隧道接口。相比GRE over IPSec,VTI技术减少了每个包GRE头部的那4B。 VTI分类:S...

weixin_30778805的博客 473

STM32实战:滑模观测器与PLL锁相环融合的FOC无感控制精解

本文深入解析了STM32平台下结合滑模观测器(SMO)与PLL锁相环的无感FOC控制技术。通过实战案例详细介绍了PLL锁相环在消除SMO高频抖振、提升角度跟踪精度方面的关键作用,并分享了工程调参技巧、C语言实现细节及系统联调方法,为电机控制开发者提供了一套完整的解决方案。

weixin_30838873的博客 190

linux ikev1切换到ikev2,IKEv2与IKEv1的差异.doc

IKEv2与IKEv1的差异IKEv2与IKEv1的差异IKEv2与IKEv1的差异摘自RFC4306, 附录 A 1 To define the entire IKE protocol in a single document, replacing?? RFCs 2407, 2408, and 2409 and incorporating subsequent changes to?? sup...

weixin_39892447的博客 396

【头歌educoder】离散数学实训参考-第二章-关系-part1-关系基础

python实现离散数学-关系基础-二元关系

wander_alice的博客 8466

SDM660电源部分配置:

SDM660电源部分配置: Panel power supplies 1、Reference power supplies Description Name Regulator Voltage (V) Panel power supply 0 vddio PMIC 660/L11 1.8 Panel power supply 1 Lab PMIC 660/lab 4.6 Panel power s...

weixin_41811215的博客 4729

华三防火墙配置IPSEC-IKEv2详细配置

通过以上配置,企业总部与分支可通过AES-256-GCM加密建立安全隧道,满足等保2.0三级要求。| 内网IP: 10.1.0.1/24 | | 内网IP: 192.168.1.1/24 || 公网IP: 202.96.128.1 | | 公网IP: 203.187.0.1 || 总部防火墙 | | | 分支防火墙 || 总部服务器 | | 分支终端 |encryption aes-gcm-256!AES-256-GCM加密。

hao_wujing的专栏 2327

【实战项目开发技术分享】机器人安全通过狭窄区域的方案

在机器人的应用领域中,有时会遇到需要机器人通过狭窄区域的情况。无论是室内还是室外,机器人需要具备适应性和灵活性,以便在狭窄的空间中进行安全、高效的导航。本文将提供一些如何让机器人通过狭窄区域的实现方案和思路,希望帮助读者可以根据实际的开发需要进行适当调整和扩展。

xiewf的博客 2万+

思科认证 | 学CCIE安全,关注这几个技术点

Diffie-Hellman算法介绍,IPsec的框架,基于IKE的Site-to-Site IPsec VPN。GRE简介,GRE的特征与局限性,Point-to-Point GRE与Multipoint GRE。GRE over IPsec的配置,IPsec Profile,IPsec VTI,SVTI的配置。SDA Fabric的设备角色,控制层、数据层、策略层,网络的分段,VN,SGT。VxLAN与LISP,Anycast网关,SD-Access的底层路由协议。

hcie-0001 359

Unity 面试篇|(四)Unity性能优化篇 【全面总结 | 持续更新】

Unity中,CPU准备好需要绘制的元素,对底层图形程序接口进行调用的过程,每次引擎准备数据并通知GPU的过程称为一次Draw Call。DrawCall越高对显卡的消耗就越大。降低DrawCall的方法:动态合批静态合批降低shader的等级特性场景优化策略——遮挡技术。rectMask2D替代Mask。

游戏开发小Y的博客 13万+

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

PKI系列:(3)基于rsa-sig的SVTI隧道【证书认证方式】

说明 之前已经介绍过PKI的组件和处理流程,以及怎么搭建CA服务器,包括Cisco的IOS 软件和微软的服务器,我们搭建CA服务器,就是为了提供扩展性和安全性,这段时间会介绍PKI在虚拟专用中的应用,包括IPSec XXX、EZXXX、SSL XXX的证书认证,关于DMXXX和GETXXX其实跟IPSec XXX一样,只要掌握了IPSec XXX的证书认证注意的地方,就不会有难点了,反而EZXXX和SSL XXX有几个需要注意的地方,需要特别的提下。 这个图很简单,这次利用IOS来搭建CA服务器,并

网络之路Blog(其他平台同名) 1370

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

PKI系列:(4) 证书访问控制—CABAC

说明 有时候,我们希望对证书的内容控制的非常细致,总是想让同一部门的人才能互访,而其余的部分则不可以,默认情况下,只要有合法的证书的设备,那么就能正常建立起虚拟专用网,如果想得到控制的话,在Cisco上提供一个叫做CABAC,证书访问控制来对证书的某些字段进行匹配,只有匹配的才能进行建立虚拟专用网,访问特定的资源。 介绍下环境,CA Server是2003服务器,之前用IOS建立过虚拟专用网的介绍,这次换2003,设备左边的是路由器,而右边用的是ASA 8.0版本,它们之间建立基于证书的...

网络之路Blog(其他平台同名) 1119

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

cisco *** 学习笔记--第四天

第一部分 动态地址解决方案1.1 动态MAP VS 静态MAP中心有固定ip地址但是分支机构没有固定ip地址,如果都是cisco设备,建议采用EZ×××来解决。如果不都是cisco产品,这是唯一的解决方法配置要点:center:cryptoisakmkpkeyciscoaddress0.0.0.00.0.0.0 由于远端地址为动态,所以只能使用八个零的配置方式 ...

weixin_34077371的博客 352

Cisco SVTI IKEv1

1)在Center和Branch1之间配置SVTI,确保1.1.1.1与3.3.3.3之间互通; 2)在Center和Branch2之间配置SVTI,确保2002:3:3::3与2002:2:2::2之间互通,并作OSPFv3区域认证,Area为1,密码为Cisc0123。 设备配置: ##此处展示各设备的配置,可以粘贴文字,也可以粘贴截图## 任务1 Branch ! crypto isakmp policy 10 authentication pre-share cryp...

潇峰的博客 407

思科与H3C IPSec 预共享密钥和证书认证 ,NAT穿越综合实验

拓扑图 地址分配表 AR1 Gi0/0 10.10.1.2 Gi0/1 10.10.14.1 IPS Gi0/0 10.10.2.2 Gi0/1 10.10.14.4 Gi0/2 10.10.24.4 AR2 Gi0/2 10.10.24.2 PC1 eth0 10.10...

Faithope的博客 2146

思科VTI解决方案

相比 GRE over IPSec 技术,VTI 技术减少了每一个包中 GRE 头部的 4 个字节,所以每一个包能够承载更多的数据。当然,由于虚拟隧道口的存在,VTI 也同样能够解决经典配置 IPSec VPN 中存在的三大问题。 Virtual Tunnel Interface(VTI)技术分为如下两种类型:  静态 VTI(Static VTI,SVTI);  动态 VTI(Dynamic VTI,DVTI)。 1 .配置 IPSec Profile Site1(config)#crypto isa

DREW德鲁 1159

超详细IPsec 点到多点场景(总部使用template,流量全部绕行总部)

IPsec template适用于分支机构很多的场景,并且适用于分支结构没有固定IP的场景,这样可以减少配置,IPsec template是被动接收隧道建立的一方,所以不能两端都是IPsec template,并且Ipsec Template这端是不需要写acl感兴趣流的,如果要写,需要包含分支的感兴趣流。导致总部压力较大,所有流量都经过总部,可以监察分支流量。a.IPsec template适用场景。a.基础配置(IP地址,静态路由等)a.IPsec隧道是否建立。b.是否可以ping通。

2301_80857001的博客 739

思科路由器IKEV2 L2L***预共享密码认证最简化配置

一.概述:  思科路由器对于IKEV2,是有很多预配的,因此可以很少的配置就能完成IKEV2的配置。二.基本思路:A.两边都用SVTI的方式配置Flex ***B.没有用动态路由,配置静态路由,如果一边用DVTI,则需要两边配置静态路由三.测试拓扑:四.Flex ***的配置:A.R2:crypto ikev2 keyring KeyRing peer 202.100.2.1  address 2...

weixin_34355715的博客 852

linux ikev2 端口,ipsec使用的500端口和4500端口可以似乎被封杀了?

从几周前开始突然连不上了,ipsec start --nofork 前台运行打印的日志显示15[NET] received packet: from 116.253.84.217[500] to 162.243.153.127[500] (604 bytes)15[ENC] parsed IKE_SA_INIT request 0 [ SA KE No N(REDIR_SUP) N(NATD_S_...

weixin_31232021的博客 2120

外部证书服务器充当IKEv2认证方式

hostname Server ! enable password cisco ! interface Loopback0 ip address 10.1.1.1 255.255.255.0 ! interface GigabitEthernet1 ip address 61.128.1.1 255.255.255.0 no shu ! ip route 0.0.0.0 0.0.0.0 61...

潇峰的博客 3946
上一篇: NetFlow
下一篇: 4.1 IKEv2 最基本 Client to Server DVTI
LinuxKernelCiscoIOS
博客等级 码龄11年 35粉丝 101原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值