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

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

测试公网可达

 ipsec配置

R1 总部

crypto isakmp policy 1        配置新的ipsec策略

 encryption 3des         #指定使用3DES进行加密

 authentication pre-share        #指定认证方式为“预共享秘钥”

crypto isakmp key 0 ruijie address 0.0.0.0 0.0.0.0          #配置预共享秘钥,对所有人都可以进行协商

crypto ipsec transform-set cs esp-des esp-md5-hmac       #配置转换集,指定ipsec使用esp封装des加密、MD5检验

crypto dynamic-map cs 5        #指定动态加密模板

 set transform-set cs         #设置转换集

crypto map fz 10 ipsec-isakmp dynamic cs          #将策略cs绑定在fz模板上

interface GigabitEthernet 0/0

 crypto map fz       #下发策略模板

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 wh esp-des esp-md5-hmac

crypto map wh 5 ipsec-isakmp

set peer 10.0.0.1

set transform-set wh

match address 101

interface GigabitEthernet 0/0

crypto map wh

测试

私网ping测试

 IKE SA建立

IPSEC SA建立

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

成全101

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

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

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

打赏作者

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

抵扣说明:

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

余额充值