首页/网络/BGP 与广域网速查/VTI 配置:路由型 IPsec 隧道
IPsec VPN60 条

VTI 配置:路由型 IPsec 隧道

VTI 用隧道接口 + ipsec profile 组织加密:固定源目的、隧道接口承载路由,profile 引用 transform-set 与 PFS 参数。

BGP 与广域网速查网络更新于 2026-10-12
profilecrypto ipsec profile PROF + set transform-set
隧道interface Tunnel0 + tunnel mode ipsec ipv4
保护tunnel protection ipsec profile PROF
核对show interfaces Tunnel0 / show crypto ipsec sa

配置示例

配置示例
crypto ipsec profile PROF
 set transform-set TS-A
 set pfs group14
!
interface Tunnel0
 ip address 10.255.0.1 255.255.255.252
 tunnel source GigabitEthernet0/0
 tunnel destination 203.0.113.2
 tunnel mode ipsec ipv4
 tunnel protection ipsec profile PROF
!
show interfaces Tunnel0

易错点

  • 漏配 tunnel protection:接口正常但不加密
  • 隧道地址与路由未规划:流量绕行不走隧道

数据来源与参考

  • Cisco: VTI 配置指南
  • RFC 7296: IPsec 隧道
​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌