设为首页收藏本站language 语言切换
查看: 2785|回复: 8
收起左侧

[分享] Using IPsec to Secure IPv6 over an IPv4 Tunnel

[复制链接]
发表于 2009-12-4 16:37:07 | 显示全部楼层 |阅读模式
拓扑图

配置
hostname R1
!
ip cef
!
ipv6 unicast-routing
ipv6 cef
!
crypto isakmp policy 1
encr aes
authentication pre-share
group 2
crypto isakmp key ipv6ipsec address 192.168.23.3
!
crypto ipsec transform-set ipv6ipsec ah-sha-hmac esp-aes
!
crypto map ipv6ipsec 10 ipsec-isakmp
set peer 192.168.23.3
set transform-set ipv6ipsec
match address 101
!
interface Tunnel0
no ip address
ipv6 address FC00:1133::1/32
tunnel source 192.168.12.1
tunnel destination 192.168.23.3
tunnel mode ipv6ip
crypto map ipv6ipsec
!         
interface Loopback0
description only.for.ipv4
ip address 1.1.1.1 255.255.255.255
!
interface Loopback1
description only.for.ipv6
no ip address
ipv6 address FC00:1::1/128
ipv6 enable
!
interface Ethernet1/2
ip address 192.168.12.1 255.255.255.0
duplex full
crypto map ipv6ipsec
!
router ospf 100
router-id 1.1.1.1
log-adjacency-changes
redistribute connected subnets
redistribute static subnets
network 192.168.0.0 0.0.255.255 area 0
!
access-list 101 permit ip host 192.168.12.1 host 192.168.23.3
!
ipv6 route FC00:3::3/128 Tunnel0

hostname R2
!
ip cef
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Ethernet1/1
ip address 192.168.12.2 255.255.255.0
duplex full
!
interface Ethernet1/3
ip address 192.168.23.2 255.255.255.0
duplex full
!
router ospf 100
router-id 2.2.2.2
log-adjacency-changes
redistribute connected subnets
redistribute static subnets
network 192.168.0.0 0.0.255.255 area 0


hostname R3
!
ip cef
!
ipv6 unicast-routing
ipv6 cef
!
crypto isakmp policy 1
encr aes
authentication pre-share
group 2
crypto isakmp key ipv6ipsec address 192.168.12.1
!
crypto ipsec transform-set ipv6ipsec ah-sha-hmac esp-aes
!
crypto map ipv6ipsec 10 ipsec-isakmp
set peer 192.168.12.1
set transform-set ipv6ipsec
match address 101
!
interface Tunnel0
no ip address
ipv6 address FC00:1133::3/32
tunnel source 192.168.23.3
tunnel destination 192.168.12.1
tunnel mode ipv6ip
crypto map ipv6ipsec
!         
interface Loopback0
description only.for.ipv4
ip address 3.3.3.3 255.255.255.255
!
interface Loopback1
description only.for.ipv6
no ip address
ipv6 address FC00:3::3/128
ipv6 enable
!
interface Ethernet1/2
ip address 192.168.23.3 255.255.255.0
duplex full
crypto map ipv6ipsec
!
router ospf 100
router-id 3.3.3.3
log-adjacency-changes
redistribute connected subnets
redistribute static subnets
network 192.168.0.0 0.0.255.255 area 0
!
access-list 101 permit ip host 192.168.23.3 host 192.168.12.1
!
ipv6 route FC00:1::1/128 Tunnel0
发表于 2009-12-6 10:01:31 | 显示全部楼层

我在努力中

我在努力中
沙发 2009-12-6 10:01:31 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-12-7 10:09:29 | 显示全部楼层

不错不错.,..我喜欢

不错不错.,..我喜欢
板凳 2009-12-7 10:09:29 回复 收起回复
回复 支持 反对

使用道具 举报

zzz1230 该用户已被删除
发表于 2009-12-7 10:23:11 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
地板 2009-12-7 10:23:11 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2010-4-8 01:27:00 | 显示全部楼层
谢谢谢谢谢谢
5# 2010-4-8 01:27:00 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-2-25 12:17:57 | 显示全部楼层
最近鸭梨真的很大啊
6# 2012-2-25 12:17:57 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-10-21 22:15:28 | 显示全部楼层
感谢楼主分享,谢谢!
7# 2018-10-21 22:15:28 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-11-11 16:18:24 | 显示全部楼层
感谢楼主分享!
9# 2018-11-11 16:18:24 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-27 12:13 , Processed in 0.065102 second(s), 25 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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