思科ASA配置L2L 虚拟隧道实例配置详解

ASA配置L2L 虚拟隧道

在这里插入图片描述

R1配置:
interface FastEthernet0/0
 ip address 12.1.1.1 255.255.255.0
interface FastEthernet0/1
 ip address 202.100.1.1 255.255.255.0
R2配置:
interface Loopback0
 ip address 2.2.2.2 255.255.255.0
interface FastEthernet0/0
 ip address 12.1.1.2 255.255.255.0
 
ip route 0.0.0.0 0.0.0.0 12.1.1.1

R2 虚拟隧道配置:

crypto isakmp policy 10
 encr 3des
 hash md5
 authentication pre-share
 group 5
crypto isakmp key cisco address 202.100.1.10
ip access-list extended vpn
 permit ip 2.2.2.0 0.0.0.255 3.3.3.0 0.0.0.255
crypto ipsec transform-set cisco esp-3des esp-sha-hmac 
crypto map cisco 10 ipsec-isakmp 
 set peer 202.100.1.10
 set transform-set cisco 
 match address vpn
 
interface FastEthernet0/0
 crypto map cisco 
R3配置
interface Loopback0
 ip address 3.3.3.3 255.255.255.0
interface FastEthernet0/0
 ip address 13.1.1.3 255.255.255.0
ip route 0.0.0.0 0.0.0.0 10.1.1.10
ASA配置:
interface GigabitEthernet0
 nameif outside
 security-level 0
 ip address 202.100.1.10 255.255.255.0 
 no shutdown
interface GigabitEthernet1
 nameif inside
 security-level 100
 ip address 10.1.1.10 255.255.255.0 
 no shutdown
route outside 0 0 202.100.1.1
route inside 3.3.3.0 255.255.255.0 10.1.1.3

ASA 虚拟隧道 配置:

crypto ikev1 policy 10
 authentication pre-share
 encryption 3des
 hash md5
 group 5
tunnel-group 12.1.1.2 type ipsec-l2l
tunnel-group 12.1.1.2 ipsec-attributes
 ikev1 pre-shared-key cisco
crypto ipsec ikev1 transform-set cisco esp-3des esp-sha-hmac 
crypto map cisco 10 match address vpn
crypto map cisco 10 set peer 12.1.1.2 
crypto map cisco 10 set ikev1 transform-set cisco
crypto map cisco interface outside

测试:R3 环回口 ping R2 环回口

R3#ping 2.2.2.2 source 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 mseconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

zhlhely

感谢支持,定当持续更新

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值