case学习:使用VTI解决分支机构动态IP与总部互联问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了case学习:使用VTI解决分支机构动态IP与总部互联问题相关的知识,希望对你有一定的参考价值。

技术图片

需求:分支机构(R1)只有ADSL线路,需要与总部(R3)实现LAN能互访。

===========R3-HQ===============

crypto keyring PSK
pre-shared-key address 0.0.0.0 0.0.0.0 key cisco

crypto ipsec transform-set TS esp-3des esp-sha-hmac
!
crypto ipsec profile VTI
set transform-set TS

crypto isakmp profile DVTI
keyring PSK
match identity address 0.0.0.0
virtual-template 1

interface Virtual-Template1 type tunnel
ip unnumbered Loopback0
tunnel mode ipsec ipv4
tunnel protection ipsec profile VTI

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 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

ip route 0.0.0.0 0.0.0.0 100.23.0.2

==========R1-Branch============

crypto keyring PSK
pre-shared-key address 0.0.0.0 0.0.0.0 key cisco
!
!
crypto ipsec transform-set TS esp-3des esp-sha-hmac
!
crypto ipsec profile VTI
set transform-set TS
!
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 VTI

!

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

!
ip route 0.0.0.0 0.0.0.0 100.12.0.2

以上是关于case学习:使用VTI解决分支机构动态IP与总部互联问题的主要内容,如果未能解决你的问题,请参考以下文章

实战华为动态智能虚拟私有网络,同时实现业务数据通信

玩转华为ENSP模拟器系列 | 总部与分支结构之间建立IPSec VdPdNd(总部采用固定IP)

CiscoIPSEC –无固定IP 总部有固定IP—ID(分支机构ID—hostname 总部来区分

分支机构与总部异地组网互联方案

深信服AC路由部署模式,怎么启用为PN与总部机构为PN连接

总部与分支机构之间建立点到点IPSec ***(预共享密钥认证)