温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2020-07-13 18:16:47 来源:网络 阅读:440 作者:天蝎小飞猪 栏目:安全技术

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

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI