配置 VRRP 单备份组实验

引入
VRRP介绍

实验名称
配置 VRRP 单备份组。

实验目的
配置 VRRP 单备份组,实现 VRRP 的冗余备份模式。

背景描述
某集团公司其总部在北京,其分公司在上海,分公司和总部之间通过一条线路连接,在总
部和分公司间运行 OSPF,在使用网络过程中经常出现由于线路故障导致网络中断的情况,为了实现分公司与总公司之间的高可用性,所以希望在分公司的网络中通过配置 VRRP,实现通过两条线路连接到总公司,两条线路互为备份。

需求分析
要解决分公司采用单条链路接入到总部容易出现单点故障的问题,可以采用多条线路接入
总部网络,同时在分公司的出口路由器上运行 VRRP,使两条线路互为备份,故障时自动切换。

实验拓扑
在这里插入图片描述

预备知识
路由器基本配置知识、OSPF 基本配置、VRRP 工作原理。

实验原理
VRRP 技术是解决网络中主机配置单网关容易出现单点故障问题的一项技术,通过将多台
路由器配置到一个 VRRP 组中,每一个 VRRP 组虚拟出一台虚拟路由器,作为网络中主机的网关。一个 VRRP 组中,所有真实路由器选举出来一台优先级最高的路由器作为主路由器。虚拟路由器的转发工作由主路由器承担。当主路由器因故障宕机时,备份路由器成为主路由器,承担虚拟路由器的转发工作,从而保证网络的稳定性。

实验步骤

路由器RA

RA#conf ter
RA(config)#int s1/0
RA(config-if)#ip addr 200.1.1.1 255.255.255.0
RA(config-if)#exit
RA(config)#int f0/1
RA(config-if)#ip addr 12.1.1.1 255.255.255.0
RA(config-if)#exit
RA(config)#router ospf 10
RA(config-router)#network 12.1.1.0 0.0.0.255 area 0
RA(config-router)#network 200.1.1.0 0.0.0.3 area 0
RA(config)#int f0/1
RA(config-if)#vrrp 32 ip 12.1.1.254
RA(config-if)#vrrp 32 priority 120
RA(config-if)#vrrp 32 track S1/0 30

路由器RB

RB#conf ter
RB(config)#int f0/1
RB(config-if)#ip addr 12.1.1.2 255.255.255.0
RB(config-if)#exit
RB(config)#int f0/0
RB(config-if)#ip addr 65.1.1.1 255.255.255.252
RB(config-if)#exit
RB(config)#router ospf 10
RB(config-router)#network 12.1.1.0 0.0.0.255 area 0
RB(config-router)#network 65.1.1.0 0.0.0.3 area 0
RB(config)#int f0/1
RB(config-if)#vrrp 32 ip 12.1.1.254

路由器RC

RC#conf ter
RC(config)#int f0/1
RC(config-if)#ip addr 172.16.1.1 255.255.255.0
RC(config-if)#exit
RC(config)#int f0/0
RC(config-if)#ip addr 65.1.1.2 255.255.255.252
RC(config-if)#exit
RC(config)#int s1/0
RC(config-if)#ip addr 200.1.1.2 255.255.255.252
RC(config-if)#exit
RC(config)#router ospf 10
RC(config-router)#network 172.16.1.0 0.0.0.255 area 0
RC(config-router)#network 200.1.1.0 0.0.0.3 area 0
RC(config-router)#network 65.1.1.0 0.0.0.3 area 0

实验验证

RA
在这里插入图片描述
RB
在这里插入图片描述
验证主网关优先级下降后及备份网关的角色状态

RA(config)#int s1/0
RA(config-if)#shutdown

RA
在这里插入图片描述
RB
在这里插入图片描述
接下来还可以观看
VRRP多备份组实验

发布了30 篇原创文章 · 获赞 205 · 访问量 2999

猜你喜欢

转载自blog.csdn.net/Long_UP/article/details/105614967
今日推荐