1、配置基于VTI的IPsecVPN配置基于VTI的IPsecVPNVTI技术:IPsec VTI技术允许我们配置一个虚拟隧道接口,我们可以运用各种特效到这个接口上。控制明文的特性应该被配置到VTI接口上,控制密文的特性应该被运用到物理接口上,当我们使用IPsec VTI技术,我们可以对明文和加密后流量分开运用NAT,ACL和QoS等特性。如果我们运用传统的cryptomap技术,没有一种简单的方法来运用这些加密特性和IPsec隧道,一共有两个类型的VTI接口,静态VTI(SVTI)和动态VTI(DVTI)SVTI技术介绍:SVTI配置被运用于站点到站点的连接(L2LVPN),在两个站点间的隧道式
2、“always-on”的,SVTI相对于传统crypto map配置的优势在于可以在隧道口上运用动态路由选择协议,并且不需要那额外的4字节GRE头部(GRE Over IPsec),因此降低了发送加密数据的带宽;多重Cisco IOS特性能够被直接配置在隧道接口上和物理接口上,这种直接的配置提供用户对加密前和加密后的流量更加强大的控制;实验拓扑:实验步骤:R2:定义crypto policy:定义预共享密钥:定义转换集:定义IPsec Profile:配置Tunnel0:配置OSPF:将Tunnel口宣告进OSPF:测试:R4:R4#show runBuilding configuration
3、.Current configuration : 2042 bytes! Last configuration change at 21:35:17 UTC Sat Apr 13 2013!version 15.2service timestamps debug datetime msecservice timestamps log datetime msec!hostname R4!boot-start-markerboot-end-marker!no aaa new-modelno ip icmp rate-limit unreachable! no ip domain lookupip
4、cefipv6 multicast rpf use-bgpno ipv6 cef!multilink bundle-name authenticated!ip tcp synwait-time 5!crypto isakmp policy 10encr 3deshash md5authentication pre-sharegroup 2crypto isakmp key cisco address 23.1.1.2 !crypto ipsec transform-set cisco esp-3des esp-md5-hmacmode tunnel!crypto ipsec profile p
5、roset transform-set cisco!interface Loopback0ip address 4.4.4.4255.255.255.0!interface Tunnel0ip address 24.1.1.4255.255.255.0tunnel source 34.1.1.4tunnel mode ipsec ipv4tunnel destination23.1.1.2tunnel protection ipsecprofile pro!interface FastEthernet0/0no ip addressshutdownduplex full!interface S
6、erial1/0ip address 34.1.1.4255.255.255.0serial restart-delay 0!interface Serial1/1ip address 45.1.1.4255.255.255.0serial restart-delay 0!interface Serial1/2no ip addressshutdownserial restart-delay 0!interface Serial1/3no ip addressshutdownserial restart-delay 0!interface Serial1/4no ip addressshutd
7、ownserial restart-delay 0!interface Serial1/5no ip addressshutdownserial restart-delay 0!interface Serial1/6no ip addressshutdownserial restart-delay 0!interface Serial1/7no ip addressshutdownserial restart-delay 0!router ospf 1router-id 3.3.3.3network 4.4.4.4 0.0.0.0area 0network 24.1.1.4 0.0.0.0ar
8、ea 0network 45.1.1.4 0.0.0.0area 0!ip forward-protocol nd!no ip http serverno ip http secure-serverip route 23.1.1.2 255.255.255.255 Serial1/0!control-plane!line con 0exec-timeout 0 0privilege level 15logging synchronousstopbits 1line aux 0exec-timeout 0 0privilege level 15logging synchronousstopbits 1line vty 0 4login!end
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1