锐捷ipsec静态模式实验——命令解释

8e48f0c1d85c4c97ab9bdd660d92f5d3.png

1.基本配置


R1
int g0/0
no swi
ip a 10.0.0.1 24
int l 0 
ip a 192.168.1.1 24
ip route 0.0.0.0 0.0.0.0 10.0.0.2
R2
int g0/0
no swi 
ip a 10.0.0.2 24
int g0/1
no swi
ip a 20.0.0.2 24
R3
int g0/0
no swi 
ip a 20.0.0.1 24
int l 0 
ip a 192.168.2.1 24
ip route 0.0.0.0 0.0.0.0 20.0.0.2

公网连通性测试

f6d94913487d45aaae5cd0d164b7d0f7.png

2.IPSEC配置

R1 总部

ip access-list extended 101        #配置感兴趣流
 10 permit ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255 
crypto isakmp policy 1      #创建新的策略
 encryption 3des     #指定使用3DES进行加密
 authentication pre-share         #指定认证方式为“预共享秘钥”
crypto isakmp key 0 ruijie address 20.0.0.1      #配置预共享秘钥,对对端IP地址都可以进行协商
crypto ipsec transform-set wh esp-3des esp-md5-hmac      #配置转换集,指定ipsec使用esp封装des加密、MD5检验
crypto map wh 10 ipsec-isakmp      #配置ipsec加密图,也就是ipsec policy
 set peer 20.0.0.1          #指定对端IP地址
 set transform-set wh      #指定转换集
 match address 101        #调用感兴趣流
 interface GigabitEthernet 0/0
 crypto map wh      #下发IPSEC策略

R3 分支

ip access-list extended 101
 10 permit ip 192.168.2.0 0.0.0.255 192.168.1.0 0.0.0.255 
crypto isakmp policy 1
 encryption 3des
 authentication pre-share
crypto isakmp key 0 ruijie address 10.0.0.1 
crypto ipsec transform-set cs esp-3des esp-md5-hmac
crypto map cs 10 ipsec-isakmp
 set peer 20.0.0.1  
 set transform-set cs
 match address 101
 interface GigabitEthernet 0/0
 crypto map cs

测试

私网连通性

8441690256e54eafaecd1691ca0bc130.png

 IKE SA建立情况

3508de700e764fc7add6d01d8a397d20.png

IPSEC SA建立情况

1e012c51f2a84d9dbd384b8e4ce124ae.png

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

成全101

你的鼓励将是我创作的最大动力

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

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

打赏作者

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

抵扣说明:

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

余额充值