VRRP+tunnel+IP SLA+Track实现冗余切换
IP SLA(Internet Protocol Service-Level Agreement)互联网服务等级协议,本实验里通过发送测试报文,测试下一跳是否可达,结合Track实现冗余静态路由的切换。
实验环境:
模拟器:GNS3-1.5.2
路由器IOS 版本:C2691-ADVENTERPRISEK9-M)
交换机IOS版本:(C3640-IK9S-M), Version 12.4(10)
终端:VPCS

------------------------------网络接口配置---------------------------------------------
R1:
R1#sho ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 172.16.20.1 YES NVRAM up up
FastEthernet1/0 192.168.1.2 YES NVRAM up up
Tunnel0 172.18.1.2 YES NVRAM up up
R1(config)#interface Tunnel0
ip address 172.18.1.2 255.255.255.0
keepalive 10 3
tunnel source FastEthernet0/1
tunnel destination 10.1.1.4
R2:
R2#sho ip inter bri
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 192.168.1.3 YES NVRAM up up
FastEthernet1/0 172.16.50.1 YES NVRAM up up
Tunnel0 172.18.2.2 YES NVRAM up up
R2(config)#interface Tunnel0
ip address 172.18.2.2 255.255.255.0
tunnel source FastEthernet1/0
tunnel destination 10.1.1.4
R3:
R3#sh ip int bri
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 172.16.20.2 YES NVRAM up up
FastEthernet1/0 10.1.1.2 YES NVRAM up up
R4:
R4#show ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet1/0 172.16.50.2 YES NVRAM up up
FastEthernet1/1 10.1.1.3 YES NVRAM up up
R5:
R5#sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset up up
FastEthernet0/1 unassigned YES unset up up
FastEthernet0/10 10.248.0.1 YES NVRAM up up
Vlan10 10.1.1.4 YES NVRAM up up
Tunnel0 172.18.1.1 YES NVRAM up up
Tunnel1 172.18.2.1 YES NVRAM up up
R5(config)#interface Tunnel0
ip address 172.18.1.1 255.255.255.0
tunnel source Vlan10
tunnel destination 172.16.20.1
exit
interface Tunnel1
ip address 172.18.2.1 255.255.255.0
tunnel source Vlan10
tunnel destination 172.16.50.1
Sw1:
sw1#sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset up up
FastEthernet0/1 unassigned YES unset up up
FastEthernet0/10 20.1.1.1 YES NVRAM up up
Vlan10 192.168.1.4 YES NVRAM up up
VPCS:
PC1> ip 20.1.1.2/24 20.1.1.1
PC2> ip 10.248.0.2/24 10.248.0.1
--------------------------------------------------IP SLA与静态路由配置命令---------------------------------------------------------------
R1:
R1(config-sla-monitor)#type echo protocol ipIcmpEcho 10.1.1.4
life forever start-time now
R1(config)#track 10
rtr 10
reachability
R1(config-track)#exit
R1(config)#ip route 10.1.1.0 255.255.255.0 172.16.20.2
R1(config)#ip route 10.248.0.0 255.255.255.0 Tunnel0
R1(config)#ip route 20.1.1.0 255.255.255.0 192.168.1.4
R2:
R2(config-sla-monitor)#type echo protocol ipIcmpEcho 10.1.1.4
life forever start-time now
R2(config)#track 10
reachability
R2(config-track)#exit
R2(config)#ip route 10.1.1.0 255.255.255.0 172.16.50.2
R2(config)#ip route 10.248.0.0 255.255.255.0 Tunnel0
R2(config)#ip route 20.1.1.0 255.255.255.0 192.168.1.4
R3:
R3(config)#ip route 10.248.0.0 255.255.255.0 10.1.1.4
R3(config)#ip route 20.1.1.0 255.255.255.0 172.16.20.1
R3(config)#ip route 172.17.1.0 255.255.255.0 172.16.20.1
R3(config)#ip route 192.168.1.0 255.255.255.0 172.16.20.1
R4:
R4(config)#ip route 10.248.0.0 255.255.255.0 10.1.1.4
R4(config)#ip route 20.1.1.0 255.255.255.0 172.16.50.1
R4(config)#ip route 172.17.2.0 255.255.255.0 172.16.50.1
R4(config)#ip route 192.168.1.0 255.255.255.0 172.16.50.1
R5:
R5(config(config-sla-monitor)#type echo protocol ipIcmpEcho 172.16.20.1 source-interface Vlan10 //从vlan10 去ping 172.16.20.1
R5
(config-sla-monitor-echo)#timeout 5000 //5秒没有响应,认为掉线
R5
(config-sla-monitor-echo)#frequency 3 //每3秒PING 一次
life forever start-time now
reachability
R5(config-track)#exit
R5(config)#ip route 20.1.1.0 255.255.255.0 Tunnel1 10
R5(config)#ip route 172.16.20.0 255.255.255.0 Vlan10
R5(config)#ip route 172.16.50.0 255.255.255.0 Vlan10
-----------------------------------------------------VRRP配置---------------------------------------------------------------------
R1:
R1(config)#interface FastEthernet1/0
ip address 192.168.1.2 255.255.255.0
vrrp 10 ip 192.168.1.1
vrrp 10 priority 250
standby 1 preempt
vrrp 10 track 10 decrement 100 //当出现SLA出现中断时,把自己的优先级降低100.
R1:
R2(config)#interface FastEthernet0/1
ip address 192.168.1.3 255.255.255.0
vrrp 10 ip 192.168.1.1
vrrp 10 priority 200
-----------------------------------------------------测试---------------------------------------------------------------------
中断master任意节点,切线路自动切换.


在双方设备条件允许情况下,可以使用 BFD检测机制,提供毫秒级检测。大多数情况下,由于网络设备厂商不同、设备新旧程度不同,可能不支持BFD协议,所以IP SLA作为备选方案提供秒级的检测。华为的NQA技术和cisco IP SLA类似。
VRRP+tunnel+IP SLA+Track实现冗余切换的更多相关文章
- Cisco IOS IP Service Level Agreementv (IP SLA)
Responder and Control Protocol 1.Responder内嵌在思科目标路由器中的一个组件,用来对IP SLA请求包做应答,通过对应达包添加时间戳属性,以提高测量计算的准确性 ...
- VRRP虚IP漂移
简介 VRRP 是 Virtual Router Redundancy Protocol 的简称,即 虚拟路由冗余协议 . 原文地址:https://linux-network-programming ...
- openstack私有云布署实践【3 keepalive配置(VRRP虚IP)】
这里只用到keepalived 或者pacemaker两种方法,可二选一来配置,官方提供的是pacemaker,但我们实际测试环境和生产环境上使的是keepalive 首先在4台control ...
- [转]openstack-kilo--issue(十四)Tunnel IP %(ip)s in use with host %(host)s'
bug: http://lists.openstack.org/pipermail/openstack-operators/2015-August/007924.html https://bugs.l ...
- 理解 OpenStack 高可用(HA)(2):Neutron L3 Agent HA 之 虚拟路由冗余协议(VRRP)
本系列会分析OpenStack 的高可用性(HA)概念和解决方案: (1)OpenStack 高可用方案概述 (2)Neutron L3 Agent HA - VRRP (虚拟路由冗余协议) (3)N ...
- 架构-虚拟路由器冗余协议【原理篇】VRRP详解
转自:http://zhaoyuqiang.blog.51cto.com/6328846/1166840/ 为什么要使用VRRP技术 我们知道,为了实现不同子网之间的设备通信,需要配置路由.目前常用的 ...
- (转)虚拟路由器冗余协议【原理篇】VRRP详解
原文:http://blog.51cto.com/zhaoyuqiang/1166840 为什么要使用VRRP技术 我们知道,为了实现不同子网之间的设备通信,需要配置路由.目前常用的指定路由方法有两种 ...
- VRRP(Virtual Router Redundancy Protocol) 虚拟路由器冗余协议简介
因工作中使用Keepalived配置Nginx代理和MySQL代理的高可用,而Keepalived是VRRP协议在linux上的软件实现.因此了解了下VRRP的基础. 1. VRRP技术的引入 随着I ...
- 冗余网络构建方案对比:VRRP协议、多网卡绑定及WN202冗余链路网卡
在组建网络时为网络设计冗余方案已经成为提高网络可用性必不可少的一环,伴随着网络技术的发展实现网络冗余的技术方案也是层出不穷,例如应用于服务器端的HA.LB,应用于存储的SAN.DAS.NAS等.本文重 ...
随机推荐
- September 15th 2017 Week 37th Friday
First I need your hand, then forever can begin. 我需要牵着你的手,才能告诉你什么是永远. If you want to shake hands with ...
- 【Alpha】Daily Scrum Meeting——blog2
团队成员 吴吉键 201421122007(组长) 魏修祺 201421122008 孙劲林 201421122022 1. 会议当天照片 忘记拍了!(没有拍照片的习惯,没有第四人拍照) 2. 每个人 ...
- mysql数据类型和使用方法
版权声明:本文为博主原创文章.未经博主同意不得转载. https://blog.csdn.net/u011729265/article/details/25086957 MySQL支持 ...
- linux下如何实现mysql数据库每天自动备份定时备份
版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用自由转载-保持署名-注明出处,谢谢. 目录(?)[+] 概述 备份是容灾的基础,是指为防止系统出现操作失误或系统故障导致数 ...
- 2243. [SDOI2011]染色【树链剖分】
Description 给定一棵有n个节点的无根树和m个操作,操作有2类: 1.将节点a到节点b路径上所有点都染成颜色c: 2.询问节点a到节点b路径上的颜色段数量(连续相同颜色被认为是同一段), 如 ...
- ES6新特性3:函数的扩展
本文摘自ECMAScript6入门,转载请注明出处. 一.函数参数默认值 1. ES6允许为函数的参数设置默认值,即直接写在参数定义的后面. function log(x, y = 'World') ...
- IPython学习笔记(一)
开始看<利用python进行数据分析>这一本书,记录下学习的点滴,对于每一个小知识点记录得过于详细,但是好记性不如烂笔头,动动手还是记得比较深刻点. 1.Tab自动补齐 输入an后按Tab ...
- Python学习笔记系列——数据结构相关
Python有4种数据结构:列表(list).字典(dictionary).元组(Tuple).集合(set).从最直接的感官上来说,这四种数据结构的区别是:列表中的元素使用方括号括起来,字典和集合是 ...
- P2327 [SCOI2005]扫雷
题目描述 输入输出格式 输入格式: 第一行为N,第二行有N个数,依次为第二列的格子中的数.(1<= N <= 10000) 输出格式: 一个数,即第一列中雷的摆放方案数. 输入输出样例 输 ...
- ORP计
ORP计 ORP计通过测量铂或金电极与参比电极之间的电位差,转换成氧化还原电位信号.氧化还原电位测量用电极可与转换放大器组合,转换放大器部分与pH测量用相同.ORP计可用于排水处理(氰基处理.铬酸处理 ...