设为首页收藏本站language 语言切换
查看: 5792|回复: 13
收起左侧

[原创] 配置基于VTI的IPsecVPN

[复制链接]
发表于 2013-4-13 22:03:02 | 显示全部楼层 |阅读模式
配置基于VTI的IPsecVPN
VTI技术:
IPsec VTI技术允许我们配置一个虚拟隧道接口,我们可以运用各种特效到这个接口上。控制明文的特性应该被配置到VTI接口上,控制密文的特性应该被运用到物理接口上,当我们使用IPsec VTI技术,我们可以对明文和加密后流量分开运用NAT,ACL和QoS等特性。如果我们运用传统的cryptomap技术,没有一种简单的方法来运用这些加密特性和IPsec隧道,一共有两个类型的VTI接口,静态VTI(SVTI)和动态VTI(DVTI)
SVTI技术介绍:
SVTI配置被运用于站点到站点的连接(L2LVPN),在两个站点间的隧道式“always-on”的,SVTI相对于传统crypto map配置的优势在于可以在隧道口上运用动态路由选择协议,并且不需要那额外的4字节GRE头部(GRE Over IPsec),因此降低了发送加密数据的带宽;
多重Cisco IOS特性能够被直接配置在隧道接口上和物理接口上,这种直接的配置提供用户对加密前和加密后的流量更加强大的控制;
实验拓扑:
拓扑.png
实验步骤:
R2
定义crypto policy:
1.png
定义预共享密钥:
2.png
定义转换集:
3.png
定义IPsec Profile:
4.png
配置Tunnel0:
5.png
配置OSPF:将Tunnel口宣告进OSPF:
8.png
测试:
6.png

9.png
R4
R4#show run
Building configuration...
Current configuration : 2042 bytes
!
! Last configuration change at 21:35:17 UTC Sat Apr 13 2013
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
!
!
!
!         
no ip domain lookup
ip cef
ipv6 multicast rpf use-bgp
no ipv6 cef
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
crypto isakmp policy 10
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp key cisco address 23.1.1.2      
!
!
crypto ipsec transform-set cisco esp-3des esp-md5-hmac
mode tunnel
!
!
crypto ipsec profile pro
set transform-set cisco
!
!
!
!
!
!
interface Loopback0
ip address 4.4.4.4255.255.255.0
!
interface Tunnel0
ip address 24.1.1.4255.255.255.0
tunnel source 34.1.1.4
tunnel mode ipsec ipv4
tunnel destination23.1.1.2
tunnel protection ipsecprofile pro
!
interface FastEthernet0/0
no ip address
shutdown
duplex full
!
interface Serial1/0
ip address 34.1.1.4255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 45.1.1.4255.255.255.0
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 3.3.3.3
network 4.4.4.4 0.0.0.0area 0
network 24.1.1.4 0.0.0.0area 0
network 45.1.1.4 0.0.0.0area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route 23.1.1.2 255.255.255.255 Serial1/0
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end




发表于 2013-4-13 22:20:59 | 显示全部楼层
沙发 2013-4-13 22:20:59 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-4-13 22:27:16 | 显示全部楼层
板凳 2013-4-13 22:27:16 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-4-13 22:28:11 | 显示全部楼层
顶顶
地板 2013-4-13 22:28:11 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-4-13 22:47:13 | 显示全部楼层
顶顶
5# 2013-4-13 22:47:13 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-4-14 01:35:04 | 显示全部楼层
遗憾的是,是思科的私有技术。
6# 2013-4-14 01:35:04 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-4-21 20:00:47 | 显示全部楼层
走过路过,不能错过.
7# 2013-4-21 20:00:47 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-5-23 10:45:40 | 显示全部楼层
谢谢分享
8# 2013-5-23 10:45:40 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-11-25 12:11:49 | 显示全部楼层
楼主好人
9# 2013-11-25 12:11:49 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-12-30 20:21:15 | 显示全部楼层
弱弱的问下,SVTI和传统GRE--ipsce有什么不同和优势呢?
10# 2013-12-30 20:21:15 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-12-19 11:34:51 | 显示全部楼层
请问下,

tunnel mode ipsec ipv4     这条命令加与没有有什么区别啊?
11# 2014-12-19 11:34:51 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2015-9-16 18:37:23 | 显示全部楼层
{:6_267:  这个是最常用的东西。
13# 2015-9-16 18:37:23 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2016-7-1 15:55:47 | 显示全部楼层
谢谢楼主分享
14# 2016-7-1 15:55:47 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-26 21:50 , Processed in 0.704923 second(s), 25 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表