GRE over IPsec 实验

GRE over IPsec 实验
在这里插入图片描述

配置思路:
一、创建IKE提议
[ar1]ike proposal 1
[ar1-ike-proposal-1]encryption-algorithm 3des-cbc
[ar1-ike-proposal-1]authentication-algorithm md5 //默认
[ar1-ike-proposal-1]authentication-method pre-share //默认可以不敲(认证方式)
二、配置IKE对等体
[ar1]ike peer R3 v2 //对等他 R3
[ar1-ike-peer-R3]pre-shared-key simple test //预共享秘钥 test
[ar1-ike-peer-R3]ike-proposal 1 //调用ike提议
三、配置IPsec提议
[ar1]ipsec proposal 1
[ar1-ipsec-proposal-1]transform esp //封装协议 esp
[ar1-ipsec-proposal-1]esp authentication-algorithm md5 //默认(认证类型)
[ar1-ipsec-proposal-1]esp encryption-algorithm 3des //加密类型
四、配置IPsec的配置文件
[ar1]ipsec profile
STRING<1-12> Profile name, up to 12 characters
[ar1]ipsec profile gre //创建profile 文件名为 gre
[ar1-ipsec-profile-gre]proposal 1 //调用安全提议
[ar1-ipsec-profile-gre]ike-peer R3 //绑定IKE对等体
五、对GRE隧道进行保护(注意在这个模式下,千万不能配置gre key)
[ar1]interface Tunnel 0/0/0
[ar1-Tunnel0/0/0]ip add 10.1.1.1 24
[ar1-Tunnel0/0/0]tunnel-protocol gre
[ar1-Tunnel0/0/0]source 200.1.12.1
[ar1-Tunnel0/0/0]destination 200.1.23.3
[ar1-Tunnel0/0/0]ipsec profile gre //调用profile 文件
gre check;也建议配置keepalive)
六、配置路由(可以配置动态路由,或者静态路由指向隧道)
[ar1]rip
[ar1-rip-1]version 2
[ar1-rip-1]undo summary
[ar1-rip-1]network 192.168.1.0
[ar1-rip-1]network 10.0.0.0
R3配置相同
测试:pc1和pc2相互ping通

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值