雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1514|回复: 5

[讨论/求助] 配置GRE Over IPsec

[复制链接]
发表于 2013-4-9 21:18:51 | 显示全部楼层 |阅读模式
本帖最后由 songjiaqi 于 2013-4-9 22:26 编辑

配置GRE Over IPsec
实验目的:为了解决在IPsecVPN中无法传递组播的问题
实验拓扑:
实验步骤:
R1
首先配置crypto policy
定义预共享密钥:
定义转换集:定义封装方式。加密方式,和散列函数的算法。 因为此时数据加密点等于通信点,所以使用传输模式而不使用隧道模式,减小报文的大小。
ipsecprofile中配置转换集:
配置Tunnel0:并调用ipsec profile
启用OSPF:注意,此时宣告的不是路由器的主接口s1/0,而是Tunnel0口的IP地址
R2
R2#show run
Building configuration...
Current configuration : 1938 bytes
!
! Last configuration change at 20:38:37 UTC Tue Apr 92013
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
!
!
!
!
no ip domain lookup
ip cef
ipv6 multicast rpf use-bgp
no ipv6 cef
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
crypto isakmp policy 10
encr 3des
hash md5
authenticationpre-share
group 2
crypto isakmp key cisco address 12.1.1.1
!
!
crypto ipsec transform-set cisco esp-des esp-md5-hmac
mode transport
!
!
crypto ipsec profile ipsec
settransform-set cisco
!
!
!
!
!
!
interface Loopback0
ip address2.2.2.2 255.255.255.0
!
interface Tunnel0
ip address100.1.1.2 255.255.255.0
tunnel source12.1.1.2
tunneldestination 12.1.1.1
tunnelprotection ipsec profile ipsec
!
interface FastEthernet0/0
no ip address
shutdown
duplex full
!
interface Serial1/0
ip address12.1.1.2 255.255.255.0
serialrestart-delay 0
!
interface Serial1/1
no ip address
shutdown
serialrestart-delay 0
!
interface Serial1/2
no ip address
shutdown
serialrestart-delay 0
!
interface Serial1/3
no ip address
shutdown
serialrestart-delay 0
!
interface Serial1/4
no ip address
shutdown
serialrestart-delay 0
!
interface Serial1/5
no ip address
shutdown
serialrestart-delay 0
!
interface Serial1/6
no ip address
shutdown
serialrestart-delay 0
!
interface Serial1/7
no ip address
shutdown
serialrestart-delay 0
!
router ospf 1
router-id2.2.2.2
network 2.2.2.20.0.0.0 area 0
network100.1.1.2 0.0.0.0 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 00
privilege level15
loggingsynchronous
stopbits 1
line aux 0
exec-timeout 00
privilege level15
loggingsynchronous
stopbits 1
line vty 0 4
login
!
!
end
查看:




测试连通性:




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
发表于 2013-4-9 21:50:06 | 显示全部楼层
呵呵,速度很快,一整完马上就分享了,感谢RIPng的分享,我们非常需要这种分享精神。

PS ,图片貌似看不了,QQ空间做了外链屏蔽 :)
 楼主| 发表于 2013-4-9 22:22:22 | 显示全部楼层
tea 发表于 2013-4-9 21:50
呵呵,速度很快,一整完马上就分享了,感谢RIPng的分享,我们非常需要这种分享精神。

PS ,图片貌似看不 ...

非常抱歉。。。现已修改!!!
发表于 2013-4-9 22:49:12 | 显示全部楼层
可以尝试下 VTI ,封装效率会更高些。
发表于 2013-4-10 09:33:40 | 显示全部楼层
刚看到问IPSecVPN不支持组播的帖子,返回就发现这个GRE Over IPSecVPN了,效率确实挺高。
赞一个!
发表于 2013-4-10 10:42:20 | 显示全部楼层
学习学习 顶一下
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-4-27 01:24 , Processed in 0.075903 second(s), 19 queries , Gzip On.

快速回复 返回顶部 返回列表