首页 > 其他 > 详细

VTI知识点回顾(第二次修改)

时间:2019-07-04 10:37:22      阅读:139      评论:0      收藏:0      [点我收藏+]
VTI =Virtual Tunnel Interface

优势:
支持IP组播、动态路由协议。
VTI比GRE OVER IPSEC节省了GRE头部的4个字节,能承载更多的数据。

限制:
只支持IP单播、组播。而GRE支持更多协议。
不支持IPsec Stateful failover。可通过动态路由协议实现冗余。

VTI是IPSEC隧道技术,因此它的transform set需要调整为tunnel。(在测试中,发现尽管仍使用transport,它仍能自动调整为tunnel)

两种类型的VTI:
Static = SVTI 特点:
点对点,
与GRE类似但移除了GRE的头部。
static route-map

Dynamic = DVTI 特点:
使用static virtual-template 、
dynamic crypto-map。
基于模板的预配置,自动创建virtual access interface配置。

简单配置:

技术分享图片

不需要使用ACL抓感兴趣流量,不需要在接口调用crypto map,也不用设置对等体。
直接做一个profile,然后在tunnel里设置protection即可,其他全自动。

show crypto isakmp default policy 查看默认的isakmp policy
show crypto ipsec transform-set 查看默认transform-set

===========R1=============

crypto isakmp key cisco address 0.0.0.0 0.0.0.0
!
!
crypto ipsec transform-set T1 esp-des esp-md5-hmac
!
crypto ipsec profile PRO
set transform-set T1

interface Loopback0
ip address 192.168.1.1 255.255.255.0
!
!
interface Loopback100
ip address 10.12.0.1 255.255.255.0
!
!
interface Tunnel1
ip unnumbered Loopback0
tunnel source GigabitEthernet0/0
tunnel mode ipsec ipv4
tunnel destination 100.23.0.3
tunnel protection ipsec profile PRO
!
!
interface GigabitEthernet0/0
ip address 100.12.0.1 255.255.255.0
!
router ospf 1
network 10.12.0.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
 
==============R3================

crypto isakmp key cisco address 0.0.0.0 0.0.0.0
!
!
crypto ipsec transform-set T1 esp-des esp-md5-hmac
!
crypto ipsec profile PRO
set transform-set T1

!
!
interface Loopback0
ip address 192.168.1.3 255.255.255.0
!
!
interface Loopback100
ip address 10.23.0.3 255.255.255.0
!
!
interface Tunnel1
ip unnumbered Loopback0
tunnel source GigabitEthernet0/0
tunnel mode ipsec ipv4
tunnel destination 100.12.0.1
tunnel protection ipsec profile PRO
!
interface GigabitEthernet0/0
ip address 100.23.0.3 255.255.255.0
!
!
!
router ospf 1
network 10.23.0.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0

VTI知识点回顾(第二次修改)

原文:https://blog.51cto.com/linjet/2416754

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!