教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 高等教育 >

ipsec-vpn高可用性链路冗余备份实例

来源:网络收集 时间:2025-04-29
导读: . . . . 标题:ipsec vpn的高可用性 目的:实现vpn链路的冗余备份 拓扑: 步骤: 1.按照拓扑给路由器的接口分配地址 Ip地址规划 Branch上 branch(config)#int f0/0 branch(config-if)#ip add 202.100.1.1 255.255.255.0 branch(config-if)#no sh branch(conf

. . . .

标题:ipsec vpn的高可用性

目的:实现vpn链路的冗余备份

拓扑:

步骤:

1.按照拓扑给路由器的接口分配地址

Ip地址规划

Branch上

branch(config)#int f0/0

branch(config-if)#ip add 202.100.1.1 255.255.255.0

branch(config-if)#no sh

branch(config-if)#int lo 0

branch(config-if)#ip add 1.1.1.1 255.255.255.0 isp上

isp(config)#int f0/1

isp(config-if)#ip add 202.100.1.10 255.255.255.0

. . . . .

. . . .

isp(config-if)#no sh

isp(config-if)#int f0/0

isp(config-if)#ip add 61.128.1.10 255.255.255.0

isp(config-if)#no sh

isp(config-if)#int f1/0

isp(config-if)#ip add 137.78.5.10 255.255.255.0

isp(config-if)#no sh

active上

active(config)#int f0/1

active(config-if)#ip add 61.128.1.1 255.255.255.0

active(config-if)#no sh

active(config-if)#int f0/0

active(config-if)#ip add 10.1.1.10 255.255.255.0

active(config-if)#no sh

standby上

standby(config)#int f0/1

standby(config-if)#ip add 137.78.5.1 255.255.255.0

standby(config-if)#no sh

standby(config-if)#int f0/0

. . . . .

. . . .

standby(config-if)#ip add 10.1.1.20 255.255.255.0

standby(config-if)#no sh

inside上

inside(config)#int f0/1

inside(config-if)#ip add 10.1.1.1 255.255.255.0

inside(config-if)#no sh

inside(config-if)#int lo 0

inside(config-if)#ip add 2.2.2.2 255.255.255.0 测试直连路由是否可达

2.Center中运行动态路由

. . . . .

.

. .

.

. . . . . 企业部网络都会运行一种动态路由协议,保障网用户底层可达

Active 上

active(config)#router ospf 1

active(config-router)#network

10.1.1.0 0.0.0.255 area 0

standby 上

standby(config)#router ospf 1

standby(config-router)#network

10.1.1.0 0.0.0.255 area 0

inside 上

inside(config)#router ospf 1

inside(config-router)#network

10.1.1.0

0.0.0.255 area 0

inside(config-router)#network 2.2.2.0 0.0.0.255 a 0

3. 建立vpn

企业网络的边界路由一般使用缺省路由指向互联网 首先解决路由问题

Branch 上

Active 上

Standby 上

. . . .

测试连通性

然后定义第一阶段的协商策略和认证

定义协商策略和认证:认证方式为预共享密钥;配置预共享的key,vpn两端必须一致;为

了实现vpn链路的冗余备份,因此需要分支指向中心不同的边界网关,预共享key可以相同,也可以不同

Branch上

branch(config)#crypto isakmp policy 10

branch(config-isakmp)#authentication pre-share

branch(config)#crypto isakmp key 0 cisco address

61.128.1.1

branch(config)#crypto isakmp key 0 h3c address 137.78.5.1

定义协商策略和认证:认证方式为预共享密钥;配置预共享的key,vpn两端必须一致

active上

active(config)#crypto isakmp policy 10

active(config-isakmp)#authentication pre-share

active(config)#crypto isakmp key 0 cisco address 202.100.1.1

standby上

standby(config)#crypto isakmp policy 10

. . . . .

. . . .

. . . . . standby(config-isakmp)#authentication

pre-share

standby(config)#crypto isakmp key 0 h3c address 202.100.1.1

在branch 、active 和standby 上开启DPD

开启DPD ,即死亡邻居检测。以周期性(每10秒)的发送keepalive 报文探测vpn 链路或者vpn 设备是否工作正常,以实现一个快速的切换

定义第二阶段的加密策略

定义加密策略:配置感兴趣流,配置转换集(des 加密,MD5认证,隧道模式)

Branch 上

branch(config)#ip access-list extended vpn branch(config-ext-nacl)#permit

ip 1.1.1.0 0.0.0.255 2.2.2.0 0.0.0.255

branch(config)#crypto ipsec transform-set trans esp-des esp-md5-hmac

branch(cfg-crypto-trans)#mode tunnel

active 上

active(config)#ip access-list extended vpn active(config-ext-nacl)#permit

ip 2.2.2.0 0.0.0.255 1.1.1.0 0.0.0.255

active(config)#crypto ipsec transform-set trans esp-des esp-md5-hmac

. . . .

active(cfg-crypto-trans)#mode tunnel standby上

standby(config)#ip access-list extended vpn

standby(config-ext-nacl)#permit ip 2.2.2.0

0.0.0.255 1.1.1.0 0.0.0.255

standby(config)#crypto ipsec transform-set trans esp-des esp-md5-hmac

standby(cfg-crypto-trans)#mode tunnel 定义加密图

定义加密图:匹配感兴趣流,转换集,配置peer(为实现冗余备份,分支需要与中心的多

个边界建立vpn,先匹配的先建立vpn,然后依次建立【default:不加时,当活动链路down

掉后,从首到尾依次检查;加上时,以“圆”的形式检查)

Branch上

branch(config)#crypto map cisco 10 ipsec-isakmp

branch(config-crypto-map)#match address vpn

branch(config-crypto-map)#set transform-set trans

branch(config-crypto-map)#set peer 61.128.1.1 default

branch(config-crypto-map)#set peer 137.78.5.1 定义加密图:匹配感兴趣流,转换集,配置peer,启用反向路由注入,并给RRI 动态产生的路由打上tag 10,解决链路备份的回包问题。

active上

active(config)#crypto map cisco 10 ipsec-isakmp

active(config-crypto-map)#match address vpn

. . . . .

. . . .

active(config-crypto-map)#set transform-set trans

active(config-crypto-map)#set peer 202.100.1.1

active(config-crypto-map)#reverse-route

active(config-crypto-map)#set reverse-route tag 10

standby上

standby(config)#crypto map cisco 10 ipsec-isakmp

standby(config-crypto-map)#match address vpn

standby(config-crypto-map)#set transform-set trans

standby(config-crypto-map)#set peer 202.100.1.1

standby(config-crypto-map)#reverse-route

standby(config-crypto-map)#set reverse-route tag 10

接口调用

接口调用加密图,当网的通信点与vpn对端的通信点进行通信,会触发连接internet 的接口( …… 此处隐藏:4114字,全部文档内容请下载后查看。喜欢就下载吧 ……

ipsec-vpn高可用性链路冗余备份实例.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/344995.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)