华为交换机RRPP环协议

article/2025/10/9 5:10:11

配置RRPP单实例单环示例

组网需求

1所示,在组网中存在由SwitchA、SwitchB、SwitchC组成的环网结构。对于这种组网结构,需要当环网完整时,可以避免报文成环;当环网发生故障时,可以实现快速收敛迅速恢复环网上各节点间的通信。在SwitchA、SwitchB和SwitchC上配置RRPP功能,可以很好地满足这两个需求。

1 配置RRPP单环组网图


配置思路

采用如下的思路配置RRPP单环示例:

1. 配置设备上将要加入RRPP的各接口,使其可以通过RRPP环上需要通过的VLAN数据,并去使能与RRPP相冲突的功能(例如STP功能)。

2. 创建RRPP域和控制VLAN,为后续配置RRPP环做好准备。

3. RRPP环上需要通过的VLAN数据映射到实例1,包括数据VLAN100~VLAN300和控制VLAN20、VLAN21(其中VLAN21是设备自动生成的子控制VLAN),为后续配置保护VLAN做好准备。

4. RRPP域中,配置保护VLAN并创建RRPP环,将SwitchA、SwitchB和SwitchC配置为域1环1的节点。其中配置SwitchA为环1的主节点,SwitchB和SwitchC为环1的传输节点。

5. 在各设备上使能RRPP环和RRPP协议,使得RRPP功能生效。

说明:

此例中未提及的VLAN默认为不存在。但是由于缺省情况下,设备上的接口都加入了VLAN1,需要将配置涉及的接口退出VLAN1。配置过程略。

操作步骤

1. 创建RRPP域,同时创建域的控制VLAN

# 配置环1的主节点SwitchA的域为1,主控制VLAN的VLAN ID为20。

<HUAWEI> system-view

[HUAWEI] sysname SwitchA

[SwitchA] rrpp domain 1

[SwitchA-rrpp-domain-region1] control-vlan 20

[SwitchA-rrpp-domain-region1] quit

# SwitchB和SwitchC配置过程和SwitchA类似,此处省略,详见配置文件。

2. 配置实例1映射控制VLAN20、VLAN21和数据VLAN100~VLAN300。创建VLAN的过程略。

3. [SwitchA] stp region-configuration

4. [SwitchA-mst-region] instance 1 vlan 20 21 100 to 300

5. [SwitchA-mst-region] active region-configuration

[SwitchA-mst-region] quit

# SwitchB和SwitchC配置过程和SwitchA类似,此处省略,详见配置文件。

6. 将即将加入RRPP环的接口配置为Trunk类型接口,允许VLAN100~300通过,并去使能接口的STP功能

# 配置SwitchA。

[SwitchA] interface gigabitethernet 0/0/1

[SwitchA-GigabitEthernet0/0/1] port link-type trunk

[SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 300  

[SwitchA-GigabitEthernet0/0/1] stp disable

[SwitchA-GigabitEthernet0/0/1] quit

[SwitchA] interface gigabitethernet 0/0/2

[SwitchA-GigabitEthernet0/0/2] port link-type trunk

[SwitchA-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 to 300 

[SwitchA-GigabitEthernet0/0/2] stp disable

[SwitchA-GigabitEthernet0/0/2] quit

# SwitchB和SwitchC配置过程和SwitchA类似,此处省略,详见配置文件。

7. 配置保护VLAN,创建RRPP环并使能RRPP环

# 在SwitchA配置保护VLAN,并配置SwitchA为RRPP环1的主节点,并指定主副接口。

[SwitchA] rrpp domain 1

[SwitchA-rrpp-domain-region1] protected-vlan reference-instance 1

[SwitchA-rrpp-domain-region1] ring 1 node-mode master primary-port gigabitethernet 0/0/1 secondary-port gigabitethernet 0/0/2 level 0

[SwitchA-rrpp-domain-region1] ring 1 enable

[SwitchA-rrpp-domain-region1] quit

# 在SwitchB配置保护VLAN,并配置SwitchB为RRPP主环1的传输节点,并指定主副接口。

[SwitchB] rrpp domain 1

[SwitchB-rrpp-domain-region1] protected-vlan reference-instance 1

[SwitchB-rrpp-domain-region1] ring 1 node-mode transit primary-port gigabitethernet 0/0/1 secondary-port gigabitethernet 0/0/2 level 0

[SwitchB-rrpp-domain-region1] ring 1 enable

[SwitchB-rrpp-domain-region1] quit

# 在SwitchC配置保护VLAN,并配置SwitchC为RRPP环1的传输节点,并指定主副接口。

[SwitchC] rrpp domain 1

[SwitchC-rrpp-domain-region1] protected-vlan reference-instance 1

[SwitchC-rrpp-domain-region1] ring 1 node-mode transit primary-port gigabitethernet 0/0/1 secondary-port gigabitethernet 0/0/2 level 0

[SwitchC-rrpp-domain-region1] ring 1 enable

[SwitchC-rrpp-domain-region1] quit

8. 使能RRPP协议

在完成配置RRPP环后,需要在环上的每个节点上使能RRPP协议,这样RRPP环才能够被激活,配置步骤如下:

# 配置SwitchA上RRPP协议使能。

[SwitchA] rrpp enable

# 配置SwitchB上RRPP协议使能。

[SwitchB] rrpp enable

# 配置SwitchC上RRPP协议使能。

[SwitchC] rrpp enable

9. 检查配置结果

经过以上配置,在网络稳定后,执行以下操作,验证配置结果。以SwitchA为例。

· SwitchA上执行display rrpp brief命令,查看结果如下:

· <SwitchA> display rrpp brief

· Abbreviations for Switch Node Mode :

· M - Master , T - Transit , E - Edge , A - Assistant-Edge

· 

· RRPP Protocol Status:  Enable

· RRPP Working Mode: HW

· RRPP Linkup Delay Timer: 0 sec (0 sec default)

· Number of RRPP Domains: 1

· 

· Domain Index  : 1

· Control VLAN  : major 20    sub 21

· Protected VLAN : Reference Instance 1

· Hello Timer   : 1 sec(default is 1 sec)  Fail Timer : 6 sec(default is 6 sec)

· 

·  Ring   Ring    Node     Primary/Common           Secondary/Edge          Is

·  ID     Level   Mode     Port                     Port                    Enabled

·  --------------------------------------------------------------------------------

·  1      0       M        GigabitEthernet0/0/1     GigabitEthernet0/0/2    Yes

可以看到SwitchA的RRPP协议状态使能了,在域1中的主控制Vlan为20,子控制Vlan为21,SwitchA为主环1中的主节点。主端口为GigabitEthernet0/0/1,副端口为GigabitEthernet0/0/2。

· SwitchA上执行display rrpp verbose domain命令,查看结果如下:

# 查看SwitchA上域1中的详细信息。

<SwitchA> display rrpp verbose domain 1

Domain Index   : 1

Control VLAN   : major 20    sub 21

Protected VLAN : Reference Instance 1

Hello Timer    : 1 sec(default is 1 sec)  Fail Timer : 6 sec(default is 6 sec)

 

RRPP Ring      : 1

Ring Level     : 0

Node Mode      : Master

Ring State     : Complete

Is Enabled     : Enable                       Is Active : Yes

Primary port   : GigabitEthernet0/0/1         Port status: UP

Secondary port : GigabitEthernet0/0/2         Port status: BLOCKED

可以看到RRPP环的状态处于完整状态。

配置文件

· SwitchA的配置文件

· #

· sysname SwitchA

· #

· vlan batch 20 to 21 100 to 300

· #

· rrpp enable

· #                                                                               

· stp region-configuration                                                       

·  instance 1 vlan 20 to 21 100 to 300                                                    

·  active region-configuration                                                   

· #

· rrpp domain 1

·  control-vlan 20

·  protected-vlan reference-instance 1

·  ring 1 node-mode master primary-port GigabitEthernet0/0/1 secondary-port GigabitEthernet0/0/2 level 0

·  ring 1 enable

· #

· interface GigabitEthernet0/0/1

·  port link-type trunk

·  undo port trunk allow-pass vlan 1

·  port trunk allow-pass vlan 20 to 21 100 to 300

·  stp disable

· #

· interface GigabitEthernet0/0/2

·  port link-type trunk

·  undo port trunk allow-pass vlan 1

·  port trunk allow-pass vlan 20 to 21 100 to 300

·  stp disable

· #

· SwitchB的配置文件

· #

· sysname SwitchB

· #

· vlan batch 20 to 21 100 to 300

· #

· rrpp enable

· #                                                                               

· stp region-configuration                                                       

·  instance 1 vlan 20 to 21 100 to 300                                                      

·  active region-configuration                                                   

· #

· rrpp domain 1

·  control-vlan 20

·  protected-vlan reference-instance 1

·  ring 1 node-mode transit primary-port GigabitEthernet0/0/1 secondary-port GigabitEthernet0/0/2 level 0

·  ring 1 enable

· #

· interface GigabitEthernet0/0/1

·  port link-type trunk

·  undo port trunk allow-pass vlan 1

·  port trunk allow-pass vlan 20 to 21 100 to 300

·  stp disable

· #

· interface GigabitEthernet0/0/2

·  port link-type trunk

·  undo port trunk allow-pass vlan 1

·  port trunk allow-pass vlan 20 to 21 100 to 300

·  stp disable

· #

return

· SwitchC的配置文件

· #

· sysname SwitchC

· #

· vlan batch 20 to 21 100 to 300

· #

· rrpp enable

· #                                                                               

· stp region-configuration                                                       

·  instance 1 vlan 20 to 21 100 to 300                                                     

·  active region-configuration                                                   

· #

· rrpp domain 1

·  control-vlan 20

·  protected-vlan reference-instance 1

·  ring 1 node-mode transit primary-port GigabitEthernet0/0/1 secondary-port GigabitEthernet0/0/2 level 0

·  ring 1 enable

· #

· interface GigabitEthernet0/0/1

·  port link-type trunk

·  undo port trunk allow-pass vlan 1

·  port trunk allow-pass vlan 20 to 21 100 to 300

·  stp disable

· #

· interface GigabitEthernet0/0/2

·  port link-type trunk

·  undo port trunk allow-pass vlan 1

·  port trunk allow-pass vlan 20 to 21 100 to 300

·  stp disable

· #

return







http://chatgpt.dhexx.cn/article/lCawfBnY.shtml

相关文章

VRRP协议基础

参考文章https://blog.csdn.net/u013920085/article/details/21184143 VRRP(Virtual Router Redundancy Protocol)即和可靠&#xff0c;它是一种容错协议&#xff0c;它保证当用户设备的下一跳路由器失效时&#xff0c;可以及时的由另一台路由器来替代&#xff0c;从而保持通讯…

RPL协议介绍

RPL是IPv6 Routing Protocol for Low-Power and Lossy Networks的简称。 低功耗及有损网络&#xff08;LLN&#xff09;是一类内部链接和路由器都受限的网络&#xff0c;该网络下的路由器的处理器功能、内存及系统功耗&#xff08;电池供电&#xff09;都可能受到较大的限制&am…

RIPv2协议

RIPv2协议 RIPv2是增强了的RIP协议&#xff0c;定义在RFC 1721和RFC 1722&#xff08;1994&#xff09;中。RIPv2基本上还是一个距离矢量路由一协议&#xff0c;但是有三方面的改进。 1、使用组播而不是广播来传播路由更新报文&#xff0c;并且采用了触发更新(triggered upda…

RIP协议包括V1、V2版本

R2已经完成了RIPv2配置并在其GE0/0/0接口上激活了RIPv2&#xff0c;如果R1采用如下配置&#xff0c;那么R2路由表中存在多少条RIP路由&#xff0c;分别是什么&#xff1f; R1配置&#xff1a; [R1]rip 1 [R1-rip-1]version 2 [R1-rip-1]network 172.16.0.0 在RIP V2 版本中 V…

HRP协议详解

今天继续给大家介绍HCIE安全系列相关内容。本文给大家介绍HRP协议的相关理论知识&#xff0c;包括概述、数据备份范围、数据备份方式、备份通道状态和备份通道选择五个方面。 阅读本文&#xff0c;您需要有一定的防火墙基础知识&#xff0c;如果您对此存在困惑&#xff0c;欢迎…

RSVP协议介绍

Internet是一种互连网络&#xff0c;网络中存在着大量的中间节点(即路由器)。如果用户使用无连接协议来传输数据流&#xff0c;则该数据流的各个数据报在通过中间节点转发时可能会产生两个问题&#xff0c;一是各个数据报的转发路径不同&#xff0c;并非顺序到达目的端&#xf…

VRRP协议的作用

文章目录 一、VRRP概述1.1 VRRP概述1.2 应用1.3VRP工作原理1.4选举依据 二、VRRP术语2.1虚拟路由器 三、虚拟MAC地址3.1虚拟MAC地址3.2选举出master、backup 选举的依据3.3PC怎么找到虚拟的IP地址3.4master3.5backup 四、VRRP协议的状态共有三种五、Master/Backup路由器六、VRR…

VRRP协议概述

目录 一.作用 二.优点 三.工作原理 总结 一.作用 出口网关的备份&#xff0c;保证出口网关的高可用性 二.优点 1.主路由器失效后&#xff0c;备份路由器立即顶替主路由器的工作&#xff0c;保证数据的不丢失 2.两个不同的路由器成为不同组的主路由器&#xff0c;相互备…

VRRP协议

目录 一.基本概述&#xff1a; 二.VRRP实验 三.VRRP实现主备切换和负载分担 实现主备切换 端口跟踪 抢占时延 实现负载分担 就是为了防止三层设备出现单点故障&#xff0c;做备用网关的 一.基本概述&#xff1a; 1.VRRP能在不改变组网的情况下&#xff0c;将路由器虚拟…

VRRP协议详解

1 概述 1.1 产生背景 随着Internet的发展&#xff0c;人们对网络可靠性的要求越来越高。特别是对于终端用户来说&#xff0c;能够实时与网络其他部分保持联系是非常重要的。一般来说&#xff0c;主机通过设置默认网关来与外部网络联系&#xff0c;如图1所示&#xff1a; 图…

RRPP协议

RRPP协议 产生背景 在网络规划和实际组网应用中&#xff0c;大多采用环网来提供高可靠性。环网技术简单来说&#xff0c;就是将一些网络设备通过环的形状连接到一起&#xff0c;实现相互通信的一种技术。 为了避免环网中产生广播风暴&#xff0c;最初采用了已被普遍应用的STP协…

VRRP协议介绍

目录 一.VRRP协议 1.1 VRRP协议介绍 1.2 VRRP的功能 二.VRRP术语 2.1 VRRP路由器 2.2 VRRP组 2.3 虚拟路由器 2.4 虚拟IP地址、MAC地址: 2.5 Master、 Backup路由器: 2.6 Backup路由器: 2.7 虚拟MAC地址 三.VRRP状态机 四.Master/Backup路由器 4.1 …

小程序分享(转发)功能

小程序官方文档&#xff1a; 页面内发起转发 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html#%E9%A1%B5%E9%9D%A2%E5%86%85%E5%8F%91%E8%B5%B7%E8%BD%AC%E5%8F%91 1&#xff0c;页面内发起转发 通过给 button 组件设置属性 open-type…

WeChat小程序如何实现转发功能?

官网文档&#xff1a;链接: https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html. 一、点击小程序转发 1. 不加参数 //转发onShareAppMessage: function() {let users wx.getStorageSync(user);if (res.from button) {}return {title: …

微信小程序开发中怎么设置转发(分享)的信息

如果什么都不设置&#xff0c;转发时默认名称是小程序的名称&#xff0c;转发的图片显示的是当前页面的截图&#xff0c;如图一 如何在自定义转发信息呢&#xff1f; 在进行转发的页面中&#xff1a; Page({onShareAppMessage: function () {return {title: 做任务赢积分,image…

实现微信小程序的分享转发功能(可以从分享页返回小程序首页)

先附上官方文档&#xff1a;微信小程序转发文档 最简单是做法就是在转发按钮上添加上这句open-type“share” <button open-type"share">转发按钮</button>这样点击这个按钮的时候就已经有转发功能了&#xff0c;但是这种转发是只能查看转发页&#xff…

微信小程序之短连接 分享转发 点击短连接就可以直接打开小程序某个页面

微信小程序之短连接 分享转发 点击短连接就可以直接打开小程序某个页面 首先&#xff0c;小程序官网地址&#xff1a;https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/short-link/generateShortLink.html#%E8%B0%83%E7%94%A8%E6%96%B9%E5%BC%8F 官…

uniapp小程序分享转发功能

1、当前页面使用转发按钮 官网的介绍 <button type"default" open-type"share" ShareAppMessage"onShareAppMessage()" class"share-btn">转发</button>data(){ return{//设置默认的分享参数share:{title:活动分享,path:…

小程序携带参数转发

小程序携带参数转发 在项目中有做一个需求&#xff0c;老师转发一张图片&#xff0c;学生登录的时候要获取老师转发图片中的信息&#xff0c;这个信息就要在转发的路径path中定义。 需要转发的图片&#xff1a; 上图绿色部分的文字需要发送一个request才能获取到&#xff0c;前…

微信小程序 转发分享功能

转发 获取更多转发信息 通常开发者希望转发出去的小程序被二次打开的时候能够获取到一些信息&#xff0c;例如群的标识。现在通过调用 wx.showShareMenu 并且设置 withShareTicket 为 true &#xff0c;当用户将小程序转发到任一群聊之后&#xff0c;此转发卡片在群聊中被其他…