• 產品與解決方案
  • 行業解決方案
  • 服務
  • 支持
  • 合作夥伴
  • 關於我們

10-可靠性配置指導

目錄

03-RRPP配置

本章節下載 03-RRPP配置  (570.86 KB)

03-RRPP配置


1 RRPP

1.1  RRPP簡介

RRPP(Rapid Ring Protection Protocol,快速環網保護協議)是一個專門應用於以太網環的鏈路層協議。當以太網環完整時它能夠防止數據環路引起的廣播風暴,而當以太網環上的鏈路斷開時它能迅速恢複環網上各個節點之間的通信鏈路,具備較高的收斂速度。

1.1.1  RRPP產生背景

城域網和企業網大多采用環網來構建以提供高可靠性,但環上任意一個節點發生故障都會影響業務。環網采用的技術一般是RPR或以太網環。RPR需要專用硬件,成本較高;而以太網環技術日趨成熟且成本低廉,城域網和企業網采用以太網環的趨勢越來越明顯。

目前,解決二層網絡環路問題的技術有生成樹協議和RRPP。生成樹協議應用比較成熟,但收斂時間在秒級,且受網絡拓撲影響;RRPP是專門應用於以太網環的鏈路層協議,具有比生成樹協議更快的收斂速度,且收斂時間與環網上節點數無關,可應用於網絡直徑較大的網絡。

1.1.2  RRPP基本概念

圖1-1所示,RRPP將以太網環上的設備劃分為不同角色的節點,各節點之間通過收發和處理RRPP協議報文來檢測環網狀態、傳遞環網拓撲變化信息。

圖1-1 RRPP組網示意圖

 

1. RRPP域

域ID是RRPP域的唯一標識,一個RRPP域由具有相同域ID和控製VLAN、且相互連通的設備構成。一個RRPP域包含以下元素:主環、子環、控製VLAN、主節點、傳輸節點、邊緣節點、輔助邊緣節點、主端口、副端口、公共端口和邊緣端口等。

圖1-1所示,Domain 1就是一個RRPP域,它包含了兩個RRPP環Ring 1和Ring 2,RRPP環上的所有節點屬於這個RRPP域。

2. RRPP環

一個環形連接的以太網拓撲稱為一個RRPP環。RRPP環分為主環和子環,環的角色可以通過指定RRPP環的級別來設定:主環的級別為0,子環的級別為1。一個RRPP域可以由單個RRPP環構成,也可以由一個主環和若幹個子環共同構成。RRPP環有以下兩種狀態:

·     健康狀態:整個環網的物理鏈路是連通的。

·     斷裂狀態:環網中某處物理鏈路斷開。

圖1-1所示,RRPP域Domain 1中包含了兩個RRPP環Ring 1和Ring 2。Ring 1和Ring 2的級別分別配置為0和1,則Ring 1為主環,Ring 2為子環。

3. 控製VLAN和保護VLAN

控製VLAN和保護VLAN是相對而言的:

·     控製VLAN:用來傳輸RRPP協議報文。設備上接入RRPP環的端口都屬於控製VLAN,且隻有接入RRPP環的端口可加入此VLAN。每個RRPP域都有兩個控製VLAN:主控製VLAN和子控製VLAN。主環的控製VLAN簡稱主控製VLAN,子環的控製VLAN簡稱子控製VLAN。配置時隻需指定主控製VLAN,係統會自動將主控製VLAN的VLAN ID+1作為子控製VLAN。同一RRPP域中所有子環的控製VLAN都相同,且主控製VLAN和子控製VLAN的接口上都不允許配置IP地址。

·     保護VLAN:用來傳輸數據報文。保護VLAN中既可包含RRPP端口,也可包含非RRPP端口。

4. 節點角色

RRPP環上的每台設備都稱為一個節點。節點角色由用戶指定,分為以下幾種:

·     主節點:每個環上有且僅有一個主節點。主節點是環網狀態主動檢測機製的發起者,也是網絡拓撲發生改變後執行操作的決策者。

·     傳輸節點:主環上除主節點以外的其它所有節點,以及子環上除主節點、子環與主環相交節點以外的其它所有節點都為傳輸節點。傳輸節點負責監測自己的直連RRPP鏈路的狀態,並把鏈路變化通知主節點,然後由主節點來決策如何處理。

·     邊緣節點:是一種同時位於主環和子環上的特殊節點,它在主環上是主節點或傳輸節點,而在子環上是邊緣節點。

·     輔助邊緣節點:也是一種同時位於主環和子環上的特殊節點,它在主環上是主節點或傳輸節點,而在子環上是輔助邊緣節點。輔助邊緣節點與邊緣節點成對使用,用於檢測主環完整性和進行環路預防。

圖1-1所示,Ring 1為主環,Ring 2為子環。Device A為Ring 1的主節點,Device B、Device C和Device D為Ring 1的傳輸節點;Device E為Ring 2的主節點,Device B為Ring 2的邊緣節點,Device C為Ring 2的輔助邊緣節點。

5. 端口角色

(1)     主端口和副端口

在主節點和傳輸節點接入RRPP環的各自兩個端口中,一個為主端口,另一個為副端口。端口角色由用戶指定。

主節點的主端口和副端口在功能上有所區別:主端口用來發送Hello報文,副端口用來接收Hello報文。當RRPP環處於健康狀態時,副端口在邏輯上阻塞保護VLAN,隻允許控製VLAN的報文通過;當RRPP環處於斷裂狀態時,副端口將解除保護VLAN的阻塞狀態,轉發保護VLAN的報文。

傳輸節點的主端口和副端口在功能上沒有區別,都用於RRPP環上協議報文和數據報文的傳輸。

圖1-1所示,Device A為Ring 1的主節點,Port 1和Port 2分別為其在Ring 1上的主端口與副端口;Device B、Device C和Device D為Ring 1的傳輸節點,它們各自的Port 1和Port 2分別為本節點在Ring 1上的主端口和副端口。

(2)     公共端口和邊緣端口

公共端口是邊緣節點和輔助邊緣節點上接入主環的端口,即邊緣節點和輔助邊緣節點分別在主環上配置的兩個端口。邊緣端口是邊緣節點和輔助邊緣節點上隻接入子環的端口。

端口的角色由用戶指定。如圖1-1所示,Device B、Device C同時位於Ring 1和Ring 2上,Device B和Device C各自的端口Port 1和Port 2是接入主環的端口,因此是公共端口。Device B和Device C各自的Port 3隻接入子環,因此是邊緣端口。

6. RRPP環組

RRPP環組是為了減少Edge-Hello報文的收發數量,在邊緣節點或輔助邊緣節點上配置的一組子環的集合。這些子環的邊緣節點都配置在同一台設備上,同樣輔助邊緣節點也都配置在同一台設備上。而且邊緣節點或輔助邊緣節點所在子環對應的主環鏈路相同,也就是說這些子環邊緣節點的Edge-Hello報文都走相同的路徑到達輔助邊緣節點。

在邊緣節點上配置的環組稱為邊緣節點環組,在輔助邊緣節點上配置的環組稱為輔助邊緣節點環組。邊緣節點環組內最多允許有一個子環發送Edge-Hello報文。

1.1.3  RRPP協議報文

RRPP協議報文的類型及其作用如表1-1所示。

表1-1 RRPP報文類型及其作用

報文類型

說明

Hello

也稱Health報文,由主節點發起,對網絡進行環路完整性檢測

Link-Down

由傳輸節點、邊緣節點或者輔助邊緣節點發起,在這些節點的自身端口down時向主節點通知環路斷裂

Common-Flush-FDB

由主節點發起,在RRPP環遷移到斷裂狀態時通知傳輸節點、邊緣節點和輔助邊緣節點更新各自MAC地址表項和ARP/ND表項。FDB是Forwarding Database(轉發數據庫)的縮寫

Complete-Flush-FDB

由主節點發起,在RRPP環遷移到健康狀態時通知傳輸節點、邊緣節點和輔助邊緣節點更新各自MAC地址表項和ARP/ND表項,同時通知傳輸節點解除臨時阻塞端口的阻塞狀態

Edge-Hello

由邊緣節點發起並由輔助邊緣節點接收,對邊緣節點與輔助邊緣節點之間的主環鏈路進行檢測

Major-Fault

由輔助邊緣節點發起,在輔助邊緣節點與邊緣節點之間的主環鏈路不連通時,向邊緣節點報告主環鏈路故障

 

說明

子環的協議報文在主環中被當作數據報文傳送,而主環的協議報文則隻能在主環中傳送。

 

1.1.4  RRPP定時器

RRPP在檢測以太網環的鏈路狀況時所使用的定時器如下:

·     Hello定時器:規定了主節點從主端口發送Hello報文的周期。

·     Fail定時器:規定了主節點從主端口發出Hello報文到副端口收到該報文的最大時延。在該定時器超時前,若主節點在副端口上收到了自己從主端口發出的Hello報文,主節點認為環網處於健康狀態;否則,主節點認為環網處於斷裂狀態。

說明

在同一RRPP域中,傳輸節點會通過收到的Hello報文來學習主節點上的Fail定時器,以保證環網上各節點上Fail定時器的取值一致。

 

1.1.5  RRPP運行機製

1. 輪詢機製

輪詢機製是RRPP環的主節點主動檢測環網健康狀態的機製。

主節點以Hello定時器為周期從主端口發送Hello報文,依次經過各傳輸節點在環上傳播。如果環路是健康的,主節點的副端口將在Fail定時器超時前收到該報文,主節點將保持副端口的阻塞狀態。如果環路是斷裂的,主節點的副端口在Fail定時器超時前無法收到Hello報文,主節點將解除保護VLAN在副端口的阻塞狀態,同時發送Common-Flush-FDB報文通知所有傳輸節點,使其更新各自的MAC地址表項和ARP/ND表項。

2. 負載分擔機製

在同一個環網中,可能同時存在多個VLAN的數據流量,RRPP負載分擔機製可以實現不同VLAN的流量沿不同的路徑轉發:通過在同一個環網上配置多個RRPP域,不同RRPP域發送不同VLAN的流量(這些VLAN就稱為該RRPP域的保護VLAN),使這些VLAN的流量在環網中的拓撲不同,從而達到負載分擔的目的。

圖1-6所示,Domain 1和Domain 2都配置Ring 1為主環,兩個RRPP域所保護的VLAN不同。Device A為Domain 1中Ring 1的主節點;Device B為Domain 2中Ring 1的主節點。通過配置,可以實現不同VLAN分別阻塞不同的鏈路,從而實現單環的負載分擔。

3. 鏈路down告警機製

當傳輸節點、邊緣節點或者輔助邊緣節點發現自己任何一個屬於RRPP域的端口down時,都會立刻發送Link-Down報文給主節點。主節點收到Link-Down報文後立刻解除保護VLAN在其副端口的阻塞狀態,並發送Common-Flush-FDB報文通知所有傳輸節點、邊緣節點和輔助邊緣節點,使其更新各自的MAC地址表項和ARP/ND表項。各節點更新表項後,數據流將切換到正常的鏈路上。

4. 環路恢複

傳輸節點、邊緣節點或者輔助邊緣節點上屬於RRPP域的端口重新up後,主節點可能會隔一段時間才能發現環路恢複。這段時間對於保護VLAN來說,網絡有可能形成一個臨時環路,從而產生廣播風暴。

為了避免這種情況,非主節點在發現自己接入環網的端口重新up後,立即將其臨時阻塞(隻阻塞保護VLAN的流量,其它VLAN不阻塞,且允許控製VLAN的報文通過),在確信不會引起環路後,才解除該端口的阻塞狀態。

5. 主環鏈路down,多歸屬子環廣播風暴抑製機製

圖1-5所示,假設Ring 1為主環,Ring 2和Ring 3為子環。當邊緣節點和輔助邊緣節點之間的兩條主環鏈路均處於down狀態時,子環Ring 2和Ring 3的主節點會放開各自的副端口,導致Device B、Device C、Device E和Device F之間形成環路,從而產生廣播風暴。

為了防止該環路的產生,在此種情況下邊緣節點會臨時阻塞邊緣端口,在確信不會引起環路後,才解除該邊緣端口的阻塞狀態。

6. 環組機製

在邊緣節點配置的RRPP環組內,隻有域ID和環ID最小的激活子環才發送Edge-Hello報文。在輔助邊緣節點環組內,任意激活子環收到Edge-Hello報文會通知給其它激活子環。這樣在邊緣節點/輔助邊緣節點上分別對應配置RRPP環組後,隻有一個子環發送/接收Edge-Hello報文,減少了對設備CPU的衝擊。

圖1-5所示,Device B和Device C分別為Ring 2和Ring 3的邊緣節點和輔助邊緣節點。Device B和Device C都需要頻繁收發Edge-Hello報文(若配置更多子環或多個域負載分擔的情況,將會收發大量的Edge-Hello報文)。為減少Edge-Hello報文的收發數量,將邊緣節點Device B上的Ring 2和Ring 3配置到一個環組,而將輔助邊緣節點Device C上的Ring 2和Ring 3也配置到一個環組。這樣在各環都激活的情況下,就隻有Device B上的Ring 2發送Edge-Hello報文了。

1.1.6  RRPP典型組網

本節介紹幾種典型的RRPP組網。

1. 單環

圖1-2所示,網絡拓撲中隻有一個環,此時隻需定義一個RRPP域。

圖1-2 單環示意圖

 

2. 相切環

圖1-3所示,網絡拓撲中有兩個或兩個以上的環,各環之間隻有一個公共節點,此時需針對每個環單獨定義一個RRPP域。

圖1-3 相切環示意圖

 

3. 相交環

圖1-4所示,網絡拓撲中有兩個或兩個以上的環,各環之間有兩個公共節點,此時隻需定義一個RRPP域,選擇其中一個環為主環,其它環為子環。

圖1-4 相交環示意圖

 

4. 雙歸屬環

圖1-5所示,網絡拓撲中有兩個或兩個以上的環,各環之間有兩個公共節點,且這兩個公共節點都相同,此時可以隻定義一個RRPP域,選擇其中一個環為主環,其它環為子環。

圖1-5 雙歸屬環示意圖

 

5. 單環負載分擔組網

在單環網絡拓撲中,可以通過配置多域實現鏈路的負載分擔。

圖1-6所示,Domain 1和Domain 2都配置Ring 1為主環,兩個域所保護的VLAN不同。Device A為Domain 1中Ring 1的主節點;Device B為Domain 2中Ring 1的主節點。通過配置,可以實現不同VLAN分別阻塞不同的鏈路,從而實現單環的負載分擔。

圖1-6 單環負載分擔組網示意圖

 

6. 相交環負載分擔組網

在相交環網絡拓撲中,也可以通過配置多域實現鏈路的負載分擔。

圖1-7所示,Domain 1和Domain 2都配置Ring 1和Ring 2分別為其主環和子環,兩個域所保護的VLAN不同。Device A為Domain 1中Ring 1的主節點;Device D為Domain 2中Ring 1的主節點;Device E分別為Domain 1和Domain 2中子環Ring 2的主節點,但阻塞的端口不同。通過配置,可以實現不同VLAN的流量分別在子環和主環通過不同的鏈路,從而實現相交環的負載分擔。

圖1-7 相交環負載分擔組網示意圖

 

1.1.7  協議規範

與RRPP相關的協議規範有:

·     RFC 3619:Extreme Networks' Ethernet Automatic Protection Switching (EAPS) Version 1

1.2  RRPP配置任務簡介

用戶可以根據業務規劃情況先劃分出RRPP域,再確定各RRPP域的控製VLAN和保護VLAN,然後根據流量路徑確定每個RRPP域內的環以及環上的節點角色。

表1-2 RRPP配置任務簡介

配置任務

說明

詳細配置

創建RRPP域

必選,請在RRPP域內的所有節點上配置

1.3 

配置控製VLAN

必選,請在RRPP域內的所有節點上配置

1.4 

配置保護VLAN

必選,請在RRPP域內的所有節點上配置

1.5  

配置RRPP環

配置RRPP端口

必選,請在RRPP域內的所有節點上配置

1.6.1 

配置RRPP節點

必選,請在RRPP域內的所有節點上配置

1.6.2 

激活RRPP域

必選,請在RRPP域內的所有節點上配置

1.7 

配置RRPP定時器

可選,請在RRPP域內的主節點上配置

1.8 

配置RRPP環組

可選,請在RRPP域內的邊緣節點和輔助邊緣節點上配置

1.9 

開啟RRPP的告警功能

可選

1.10 

 

提示

·     由於RRPP沒有自動選舉機製,隻有當環網中各節點的配置都正確時,才能真正實現環網的檢測和保護,因此請保證配置的準確性。

·     配置RRPP之前,需先搭建好以太網環形拓撲的組網環境。

 

1.3  創建RRPP域

創建RRPP域時需要指定域ID,域ID用來唯一標識一個RRPP域,在同一RRPP域內的所有節點上應配置相同的域ID。

請在欲指定為RRPP節點的設備上進行如下配置。

表1-3 創建RRPP域

操作

命令

說明

進入係統視圖

system-view

-

創建RRPP域,並進入RRPP域視圖

rrpp domain domain-id

缺省情況下,不存在RRPP域

 

1.4  配置控製VLAN

配置RRPP環之前必須先配置控製VLAN,在同一RRPP域內的所有節點上應配置相同的控製VLAN。用戶隻需配置主控製VLAN,子控製VLAN由係統自動分配,其VLAN ID為主控製VLAN的VLAN ID+1。因此,在配置控製VLAN時請選取兩個連續的、尚未創建的VLAN,否則將導致配置失敗。

提示

·     請勿將接入RRPP環的端口的缺省VLAN配置為控製VLAN,而且控製VLAN內不能運行VLAN映射功能,否則RRPP協議報文將無法正常收發。

·     配置主控製VLAN時,主控製VLAN和子控製VLAN的編號均不能與三層以太網子接口編號相同。

·     配置好RRPP環之後不再允許用戶刪除或修改主控製VLAN。主控製VLAN隻能通過undo control-vlan命令刪除,不能通過undo vlan命令刪除。

·     如果要在一台未配置RRPP功能的設備上透傳RRPP協議報文,應保證該設備上隻有接入RRPP環的那兩個端口允許該RRPP環所對應控製VLAN的報文通過,而其它端口都不允許其通過;否則,其它VLAN的報文可能通過透傳進入控製VLAN,從而對RRPP環產生衝擊。

 

請在RRPP域內的所有節點上進行如下配置。

表1-4 配置控製VLAN

操作

命令

說明

進入係統視圖

system-view

-

進入RRPP域視圖

rrpp domain domain-id

-

配置RRPP域的主控製VLAN

control-vlan vlan-id

缺省情況下,RRPP域不存在控製VLAN

 

1.5  配置保護VLAN

配置RRPP環之前必須先配置保護VLAN,RRPP端口允許通過的VLAN都應該被RRPP域保護,在同一RRPP域內的所有節點上應配置相同的保護VLAN。而保護VLAN的配置是通過引用MSTI(Multiple Spanning Tree Instance,多生成樹實例)來實現的,因此在配置保護VLAN之前:

·     如果生成樹協議工作在STP/RSTP/MSTP模式下,則應先配置VLAN與MSTI的映射關係,再引用待保護VLAN所對應的MSTI。

·     如果生成樹協議工作在PVST模式下,係統會自動將VLAN與MSTI進行一一對應的映射,故直接引用與待保護VLAN編號相同的MSTI即可。而當生成樹協議全局關閉時,由於所有VLAN都自動映射到MSTI 0上,所以必須引用MSTI 0。

有關生成樹協議的相關介紹,請參見“二層技術-以太網交換配置指導”中的“生成樹”。

提示

在配置負載分擔時,不同RRPP域的保護VLAN必須不同。

 

請在RRPP域內的所有節點上進行如下配置。

有關stp region-configurationinstancevlan-mapping moduloactive region-configurationdisplay stp region-configuration命令的詳細介紹,請參見“二層技術-以太網交換命令參考”中的“生成樹”。

表1-5 配置保護VLAN

操作

命令

說明

進入係統視圖

system-view

-

進入MST域視圖

stp region-configuration

在PVST模式下請跳過此步

配置VLAN與MSTI的映射關係

instance instance-id vlan vlan-id-list

二者選其一,在PVST模式下請跳過此步

缺省情況下,所有VLAN都映射到CIST(即MSTI 0)上

vlan-mapping modulo modulo

激活MST域的配置

active region-configuration

在PVST模式下請跳過此步

(可選)顯示當前生效的MST域配置信息

display stp region-configuration

display命令可以在任意視圖執行

通過本操作可以顯示MSTI所映射的VLAN

退回係統視圖

quit

在PVST模式下請跳過此步

進入RRPP域視圖

rrpp domain domain-id

-

配置RRPP域的保護VLAN

protected-vlan reference-instance instance-id-list

缺省情況下,RRPP域不存在保護VLAN

 

1.6  配置RRPP環

配置RRPP環時,首先要對各節點上欲接入RRPP環的端口(簡稱RRPP端口)進行必要的配置,然後再配置RRPP環上的各節點。

1.6.1  配置RRPP端口

提示

·     不建議在RRPP端口上開啟以太網OAM遠端環回功能,因為可能引起短時間的廣播風暴。有關此功能的詳細介紹,請參見“可靠性配置指導”中的“以太網OAM”。

·     建議在RRPP端口上使用link-delay命令將端口的物理連接狀態up/down抑製時間配置為0秒(即不抑製),以提高RRPP的拓撲變化收斂速度。有關link-delay命令的詳細介紹,請參見“二層技術-以太網交換命令參考”中的“以太網接口”。

 

請在各節點欲接入RRPP環的端口上進行如下配置。

表1-6 配置RRPP端口

操作

命令

說明

進入係統視圖

system-view

-

進入二層以太網或二層聚合接口視圖

interface interface-type interface-number

-

配置端口的鏈路類型為Trunk類型

port link-type trunk

缺省情況下,端口的鏈路類型為Access類型

本命令的詳細介紹請參見“二層技術-以太網交換命令參考”中的“VLAN”

配置Trunk端口允許保護VLAN的報文通過

port trunk permit vlan { vlan-id-list | all }

缺省情況下,Trunk端口隻允許VLAN 1的報文通過

由於RRPP端口將自動允許控製VLAN的報文通過,因此無需配置RRPP端口允許控製VLAN的報文通過

本命令的詳細介紹請參見“二層技術-以太網交換命令參考”中的“VLAN”

關閉生成樹協議

undo stp enable

缺省情況下,端口上的生成樹協議處於開啟狀態

本命令的詳細介紹請參見“二層技術-以太網交換命令參考”中的“生成樹”

 

1.6.2  配置RRPP節點

說明

如果一台設備處於同一RRPP域的多個RRPP環上,則該設備在子環上的節點角色隻能是邊緣節點或輔助邊緣節點。

 

1. 配置主節點

請在欲配置為主節點的設備上進行如下配置。

表1-7 配置主節點

操作

命令

說明

進入係統視圖

system-view

-

進入RRPP域視圖

rrpp domain domain-id

-

指定當前設備為主節點,並指定主端口和副端口

ring ring-id node-mode master [ primary-port interface-type interface-number ] [ secondary-port interface-type interface-number ] level level-value

缺省情況下,設備不是RRPP環的節點

 

2. 配置傳輸節點

請在欲配置為傳輸節點的設備上進行如下配置。

表1-8 配置傳輸節點

操作

命令

說明

進入係統視圖

system-view

-

進入RRPP域視圖

rrpp domain domain-id

-

指定當前設備為傳輸節點,並指定主端口和副端口

ring ring-id node-mode transit [ primary-port interface-type interface-number ] [ secondary-port interface-type interface-number ] level level-value

缺省情況下,設備不是RRPP環的節點

 

3. 配置邊緣節點

在配置邊緣節點時,必須先配置主環再配置子環。

請在欲配置為邊緣節點的設備上進行如下配置。

表1-9 配置邊緣節點

操作

命令

說明

進入係統視圖

system-view

-

進入RRPP域視圖

rrpp domain domain-id

-

指定當前設備為主環的主節點或傳輸節點,並指定主端口和副端口

ring ring-id node-mode { master | transit } [ primary-port interface-type interface-number ] [ secondary-port interface-type interface-number ] level level-value

缺省情況下,設備不是RRPP環的節點

指定當前設備為子環的邊緣節點,並指定邊緣端口

ring ring-id node-mode edge [ edge-port interface-type interface-number ]

缺省情況下,設備不是RRPP環的節點

 

4. 配置輔助邊緣節點

在配置輔助邊緣節點時,必須先配置主環再配置子環。

請在欲配置為輔助邊緣節點的設備上進行如下配置。

表1-10 配置輔助邊緣節點

操作

命令

說明

進入係統視圖

system-view

-

進入RRPP域視圖

rrpp domain domain-id

-

指定當前設備為主環的主節點或傳輸節點,並指定主端口和副端口

ring ring-id node-mode { master | transit } [ primary-port interface-type interface-number ] [ secondary-port interface-type interface-number ] level level-value

缺省情況下,設備不是RRPP環的節點

指定當前設備為子環的輔助邊緣節點,並指定邊緣端口

ring ring-id node-mode assistant-edge [ edge-port interface-type interface-number ]

缺省情況下,設備不是RRPP環的節點

 

1.7  激活RRPP

隻有當RRPP協議和RRPP環都開啟之後,當前設備的RRPP域才能被激活。

提示

·     在一台設備上開啟子環之前必須先開啟主環,而關閉主環之前也必須先關閉所有子環,否則係統將提示出錯。

·     為避免子環的Hello報文在主環上形成環路,在子環的主節點上開啟子環之前,請先在主環的主節點上開啟主環。

 

請在RRPP域內的所有節點上進行如下配置。

表1-11 激活RRPP域

操作

命令

說明

進入係統視圖

system-view

-

開啟RRPP協議

rrpp enable

缺省情況下,RRPP協議處於關閉狀態

進入RRPP域視圖

rrpp domain domain-id

-

開啟RRPP環

ring ring-id enable

缺省情況下,RRPP環處於關閉狀態

 

1.8  配置RRPP定時器

提示

·     Fail定時器不得小於Hello定時器的3倍。

·     在雙歸屬環組網中,為避免主環故障時出現臨時環路,應確保子環主節點與主環主節點上的Fail定時器之差大於子環主節點上Hello定時器的2倍。

 

請在RRPP域內的主節點上進行如下配置。

表1-12 配置RRPP定時器

操作

命令

說明

進入係統視圖

system-view

-

進入RRPP域視圖

rrpp domain domain-id

-

配置Hello和Fail定時器

timer hello-timer hello-value fail-timer fail-value

缺省情況下,Hello定時器為1秒,Fail定時器為3秒

 

1.9  配置RRPP環組

通過把具有相同邊緣節點/輔助邊緣節點配置的一組子環加入環組中,可以減少Edge-Hello報文的收發數量。環組應分別配置在邊緣節點和輔助邊緣節點上,且隻能配置在這兩種節點上。

提示

·     一個子環隻能屬於一個環組,且配置在邊緣節點和輔助邊緣節點上的環組中所包含的子環必須相同,否則環組不能正常工作。

·     加入環組的子環的邊緣節點應配置在同一台設備上;同樣地,輔助邊緣節點也應配置在同一台設備上,而且邊緣節點/輔助邊緣節點所對應的主環鏈路應相同。

·     設備在一個環組內所有子環上應具有相同的類型:邊緣節點或輔助邊緣節點。

·     邊緣節點環組及其對應的輔助邊緣節點環組的配置和激活狀態必須相同。

·     同一環組中的子環所對應主環的鏈路必須相同;若主環鏈路本身的配置就不同,或由於修改配置而導致不同,環組都將不能正常運行。

 

請在RRPP域內的邊緣節點和輔助邊緣節點上進行如下配置。

表1-13 配置RRPP環組

操作

命令

說明

進入係統視圖

system-view

-

創建RRPP環組,並進入RRPP環組視圖

rrpp ring-group ring-group-id

缺省情況下,不存在RRPP環組

將子環加入RRPP環組

domain domain-id ring ring-id-list

缺省情況下,RRPP環組內不存在子環

 

1.10  開啟RRPP的告警功能

開啟RRPP的告警功能後,指定事件發生時係統會產生相應類型的告警信息。生成的告警信息將發送到設備的SNMP模塊,通過設置SNMP中告警信息的發送參數,來決定告警信息輸出的相關屬性。有關告警信息的詳細介紹,請參見“網絡管理和監控配置指導”中的“SNMP”。

表1-14 開啟RRPP的告警功能

操作

命令

說明

進入係統視圖

system-view

-

開啟RRPP的告警功能

snmp-agent trap enable rrpp [ major-fault | multi-master | ring-fail | ring-recover ] *

缺省情況下,RRPP的告警功能處於關閉狀態

 

1.11  RRPP顯示和維護

在完成上述配置後,在任意視圖下執行display命令可以顯示配置後RRPP的運行情況,通過查看顯示信息驗證配置的效果。

在用戶視圖下執行reset命令可以清除RRPP報文統計信息。

表1-15 RRPP顯示和維護

操作

命令

顯示RRPP的摘要信息

display rrpp brief

顯示RRPP環組的配置信息

display rrpp ring-group [ ring-group-id ]

顯示RRPP報文的統計信息

display rrpp statistics domain domain-id [ ring ring-id ]

顯示RRPP的詳細信息

display rrpp verbose domain domain-id [ ring ring-id ]

清除RRPP報文的統計信息

reset rrpp statistics domain domain-id [ ring ring-id ]

 

1.12  RRPP典型配置舉例

1.12.1  單環配置舉例

1. 組網需求

·     Device A~Device D構成RRPP域1,該域的主控製VLAN為VLAN 4092,保護VLAN為VLAN 1~30。

·     Device A、Device B、Device C和Device D構成主環Ring 1。Device A為主環的主節點,HundredGigE1/0/1和HundredGigE1/0/2分別為主、副端口;Device B、Device C和Device D為主環的傳輸節點,其各自的HundredGigE1/0/1和HundredGigE1/0/2分別為主、副端口。

2. 組網圖

圖1-8 單環配置組網圖

3. 配置步驟

(1)     配置Device A

# 創建VLAN 1~30,將這些VLAN都映射到MSTI 1上,並激活MST域的配置。

<DeviceA> system-view

[DeviceA] vlan 1 to 30

[DeviceA] stp region-configuration

[DeviceA-mst-region] instance 1 vlan 1 to 30

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 分別在端口HundredGigE1/0/1和HundredGigE1/0/2上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議,並將端口配置為Trunk端口且允許VLAN 1~30通過。

[DeviceA] interface hundredgige 1/0/1

[DeviceA-HundredGigE1/0/1] link-delay 0

[DeviceA-HundredGigE1/0/1] undo stp enable

[DeviceA-HundredGigE1/0/1] port link-type trunk

[DeviceA-HundredGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceA-HundredGigE1/0/1] quit

[DeviceA] interface hundredgige 1/0/2

[DeviceA-HundredGigE1/0/2] link-delay 0

[DeviceA-HundredGigE1/0/2] undo stp enable

[DeviceA-HundredGigE1/0/2] port link-type trunk

[DeviceA-HundredGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceA-HundredGigE1/0/2] quit

# 創建RRPP域1,將VLAN 4092配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceA] rrpp domain 1

[DeviceA-rrpp-domain1] control-vlan 4092

[DeviceA-rrpp-domain1] protected-vlan reference-instance 1

# 配置本設備為主環Ring 1的主節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceA-rrpp-domain1] ring 1 node-mode master primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceA-rrpp-domain1] ring 1 enable

[DeviceA-rrpp-domain1] quit

# 開啟RRPP協議。

[DeviceA] rrpp enable

(2)     配置Device B

# 創建VLAN 1~30,將這些VLAN都映射到MSTI 1上,並激活MST域的配置。

<DeviceB> system-view

[DeviceB] vlan 1 to 30

[DeviceB] stp region-configuration

[DeviceB-mst-region] instance 1 vlan 1 to 30

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

# 分別在端口HundredGigE1/0/1和HundredGigE1/0/2上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議,並將端口配置為Trunk端口且允許VLAN 1~30通過。

[DeviceB] interface hundredgige 1/0/1

[DeviceB-HundredGigE1/0/1] link-delay 0

[DeviceB-HundredGigE1/0/1] undo stp enable

[DeviceB-HundredGigE1/0/1] port link-type trunk

[DeviceB-HundredGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceB-HundredGigE1/0/1] quit

[DeviceB] interface hundredgige 1/0/2

[DeviceB-HundredGigE1/0/2] link-delay 0

[DeviceB-HundredGigE1/0/2] undo stp enable

[DeviceB-HundredGigE1/0/2] port link-type trunk

[DeviceB-HundredGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceB-HundredGigE1/0/2] quit

# 創建RRPP域1,將VLAN 4092配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceB] rrpp domain 1

[DeviceB-rrpp-domain1] control-vlan 4092

[DeviceB-rrpp-domain1] protected-vlan reference-instance 1

# 配置本設備為主環Ring 1的傳輸節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceB-rrpp-domain1] ring 1 node-mode transit primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceB-rrpp-domain1] ring 1 enable

[DeviceB-rrpp-domain1] quit

# 開啟RRPP協議。

[DeviceB] rrpp enable

(3)     配置Device C

Device C的配置與Device B相似,配置過程略。

(4)     配置Device D

Device D的配置與Device B相似,配置過程略。

4. 驗證配置

配置完成後,用戶可以使用display命令顯示各設備上RRPP的配置和運行情況。

1.12.2  相交環配置舉例

1. 組網需求

·     Device A~Device E構成RRPP域1,該域的主控製VLAN為VLAN 4092,保護VLAN為VLAN 1~30。

·     Device A、Device B、Device C和Device D構成主環Ring 1;Device B、Device C和Device E構成子環Ring 2。

·     Device A為主環的主節點,HundredGigE1/0/1和HundredGigE1/0/2分別為主、副端口;Device E為子環的主節點,HundredGigE1/0/1和HundredGigE1/0/2分別為主、副端口;Device B為主環的傳輸節點和子環的邊緣節點,HundredGigE1/0/3為邊緣端口;Device C為主環的傳輸節點和子環的輔助邊緣節點,HundredGigE1/0/3為邊緣端口;Device D為主環的傳輸節點,HundredGigE1/0/1和HundredGigE1/0/2分別為主、副端口。

2. 組網圖

圖1-9 相交環配置組網圖

3. 配置步驟

(1)     配置Device A

# 創建VLAN 1~30,將這些VLAN都映射到MSTI 1上,並激活MST域的配置。

<DeviceA> system-view

[DeviceA] vlan 1 to 30

[DeviceA] stp region-configuration

[DeviceA-mst-region] instance 1 vlan 1 to 30

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 分別在端口HundredGigE1/0/1和HundredGigE1/0/2上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議,並將端口配置為Trunk端口且允許VLAN 1~30通過。

[DeviceA] interface hundredgige 1/0/1

[DeviceA-HundredGigE1/0/1] link-delay 0

[DeviceA-HundredGigE1/0/1] undo stp enable

[DeviceA-HundredGigE1/0/1] port link-type trunk

[DeviceA-HundredGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceA-HundredGigE1/0/1] quit

[DeviceA] interface hundredgige 1/0/2

[DeviceA-HundredGigE1/0/2] link-delay 0

[DeviceA-HundredGigE1/0/2] undo stp enable

[DeviceA-HundredGigE1/0/2] port link-type trunk

[DeviceA-HundredGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceA-HundredGigE1/0/2] quit

# 創建RRPP域1,將VLAN 4092配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceA] rrpp domain 1

[DeviceA-rrpp-domain1] control-vlan 4092

[DeviceA-rrpp-domain1] protected-vlan reference-instance 1

# 配置本設備為主環Ring 1的主節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceA-rrpp-domain1] ring 1 node-mode master primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceA-rrpp-domain1] ring 1 enable

[DeviceA-rrpp-domain1] quit

# 開啟RRPP協議。

[DeviceA] rrpp enable

(2)     配置Device B

# 創建VLAN 1~30,將這些VLAN都映射到MSTI 1上,並激活MST域的配置。

<DeviceB> system-view

[DeviceB] vlan 1 to 30

[DeviceB] stp region-configuration

[DeviceB-mst-region] instance 1 vlan 1 to 30

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

# 分別在端口HundredGigE1/0/1、HundredGigE1/0/2和HundredGigE1/0/3上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議,並將端口配置為Trunk端口且允許VLAN 1~30通過。

[DeviceB] interface hundredgige 1/0/1

[DeviceB-HundredGigE1/0/1] link-delay 0

[DeviceB-HundredGigE1/0/1] undo stp enable

[DeviceB-HundredGigE1/0/1] port link-type trunk

[DeviceB-HundredGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceB-HundredGigE1/0/1] quit

[DeviceB] interface hundredgige 1/0/2

[DeviceB-HundredGigE1/0/2] link-delay 0

[DeviceB-HundredGigE1/0/2] undo stp enable

[DeviceB-HundredGigE1/0/2] port link-type trunk

[DeviceB-HundredGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceB-HundredGigE1/0/2] quit

[DeviceB] interface hundredgige 1/0/3

[DeviceB-HundredGigE1/0/3] link-delay 0

[DeviceB-HundredGigE1/0/3] undo stp enable

[DeviceB-HundredGigE1/0/3] port link-type trunk

[DeviceB-HundredGigE1/0/3] port trunk permit vlan 1 to 30

[DeviceB-HundredGigE1/0/3] quit

# 創建RRPP域1,將VLAN 4092配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceB] rrpp domain 1

[DeviceB-rrpp-domain1] control-vlan 4092

[DeviceB-rrpp-domain1] protected-vlan reference-instance 1

# 配置本設備為主環Ring 1的傳輸節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceB-rrpp-domain1] ring 1 node-mode transit primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceB-rrpp-domain1] ring 1 enable

# 配置本設備為子環Ring 2的邊緣節點,邊緣端口為HundredGigE1/0/3,並開啟該環。

[DeviceB-rrpp-domain1] ring 2 node-mode edge edge-port hundredgige 1/0/3

[DeviceB-rrpp-domain1] ring 2 enable

[DeviceB-rrpp-domain1] quit

# 開啟RRPP協議。

[DeviceB] rrpp enable

(3)     配置Device C

# 創建VLAN 1~30,將這些VLAN都映射到MSTI 1上,並激活MST域的配置。

<DeviceC> system-view

[DeviceC] vlan 1 to 30

[DeviceC] stp region-configuration

[DeviceC-mst-region] instance 1 vlan 1 to 30

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

# 分別在端口HundredGigE1/0/1、HundredGigE1/0/2和HundredGigE1/0/3上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議,並將端口配置為Trunk端口且允許VLAN 1~30通過。

[DeviceC] interface hundredgige 1/0/1

[DeviceC-HundredGigE1/0/1] link-delay 0

[DeviceC-HundredGigE1/0/1] undo stp enable

[DeviceC-HundredGigE1/0/1] port link-type trunk

[DeviceC-HundredGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceC-HundredGigE1/0/1] quit

[DeviceC] interface hundredgige 1/0/2

[DeviceC-HundredGigE1/0/2] link-delay 0

[DeviceC-HundredGigE1/0/2] undo stp enable

[DeviceC-HundredGigE1/0/2] port link-type trunk

[DeviceC-HundredGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceC-HundredGigE1/0/2] quit

[DeviceC] interface hundredgige 1/0/3

[DeviceC-HundredGigE1/0/3] link-delay 0

[DeviceC-HundredGigE1/0/3] undo stp enable

[DeviceC-HundredGigE1/0/3] port link-type trunk

[DeviceC-HundredGigE1/0/3] port trunk permit vlan 1 to 30

[DeviceC-HundredGigE1/0/3] quit

# 創建RRPP域1,將VLAN 4092配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceC] rrpp domain 1

[DeviceC-rrpp-domain1] control-vlan 4092

[DeviceC-rrpp-domain1] protected-vlan reference-instance 1

# 配置本設備為主環Ring 1的傳輸節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceC-rrpp-domain1] ring 1 node-mode transit primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceC-rrpp-domain1] ring 1 enable

# 配置本設備為子環Ring 2的輔助邊緣節點,邊緣端口為HundredGigE1/0/3,並開啟該環。

[DeviceC-rrpp-domain1] ring 2 node-mode assistant-edge edge-port hundredgige 1/0/3

[DeviceC-rrpp-domain1] ring 2 enable

[DeviceC-rrpp-domain1] quit

# 開啟RRPP協議。

[DeviceC] rrpp enable

(4)     配置Device D

# 創建VLAN 1~30,將這些VLAN都映射到MSTI 1上,並激活MST域的配置。

<DeviceD> system-view

[DeviceD] vlan 1 to 30

[DeviceD] stp region-configuration

[DeviceD-mst-region] instance 1 vlan 1 to 30

[DeviceD-mst-region] active region-configuration

[DeviceD-mst-region] quit

# 分別在端口HundredGigE1/0/1和HundredGigE1/0/2上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議,並將端口配置為Trunk端口且允許VLAN 1~30通過。

[DeviceD] interface hundredgige 1/0/1

[DeviceD-HundredGigE1/0/1] link-delay 0

[DeviceD-HundredGigE1/0/1] undo stp enable

[DeviceD-HundredGigE1/0/1] port link-type trunk

[DeviceD-HundredGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceD-HundredGigE1/0/1] quit

[DeviceD] interface hundredgige 1/0/2

[DeviceD-HundredGigE1/0/2] link-delay 0

[DeviceD-HundredGigE1/0/2] undo stp enable

[DeviceD-HundredGigE1/0/2] port link-type trunk

[DeviceD-HundredGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceD-HundredGigE1/0/2] quit

# 創建RRPP域1,將VLAN 4092配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceD] rrpp domain 1

[DeviceD-rrpp-domain1] control-vlan 4092

[DeviceD-rrpp-domain1] protected-vlan reference-instance 1

# 配置本設備為主環Ring 1的傳輸節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceD-rrpp-domain1] ring 1 node-mode transit primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceD-rrpp-domain1] ring 1 enable

[DeviceD-rrpp-domain1] quit

# 開啟RRPP協議。

[DeviceD] rrpp enable

(5)     配置Device E

# 創建VLAN 1~30,將這些VLAN都映射到MSTI 1上,並激活MST域的配置。

<DeviceE> system-view

[DeviceE] vlan 1 to 30

[DeviceE] stp region-configuration

[DeviceE-mst-region] instance 1 vlan 1 to 30

[DeviceE-mst-region] active region-configuration

[DeviceE-mst-region] quit

# 分別在端口HundredGigE1/0/1和HundredGigE1/0/2上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議,並將端口配置為Trunk端口且允許VLAN 1~30通過。

[DeviceE] interface hundredgige 1/0/1

[DeviceE-HundredGigE1/0/1] link-delay 0

[DeviceE-HundredGigE1/0/1] undo stp enable

[DeviceE-HundredGigE1/0/1] port link-type trunk

[DeviceE-HundredGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceE-HundredGigE1/0/1] quit

[DeviceE] interface hundredgige 1/0/2

[DeviceE-HundredGigE1/0/2] link-delay 0

[DeviceE-HundredGigE1/0/2] undo stp enable

[DeviceE-HundredGigE1/0/2] port link-type trunk

[DeviceE-HundredGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceE-HundredGigE1/0/2] quit

# 創建RRPP域1,將VLAN 4092配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceE] rrpp domain 1

[DeviceE-rrpp-domain1] control-vlan 4092

[DeviceE-rrpp-domain1] protected-vlan reference-instance 1

# 配置本設備為子環Ring 2的主節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceE-rrpp-domain1] ring 2 node-mode master primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 1

[DeviceE-rrpp-domain1] ring 2 enable

[DeviceE-rrpp-domain1] quit

# 開啟RRPP協議。

[DeviceE] rrpp enable

4. 驗證配置

配置完成後,用戶可以使用display命令顯示各設備上RRPP的配置和運行情況。

1.12.3  相交環負載分擔配置舉例

1. 組網需求

·     Device A、Device B、Device C、Device D和Device F構成RRPP域1,該域的主控製VLAN為VLAN 100。在該域中,Device A和Device D分別為主環Ring 1的主節點和傳輸節點,Device F、Device C和Device B分別為子環Ring 3的主節點、邊緣節點和輔助邊緣節點。

·     Device A、Device B、Device C、Device D和Device E構成RRPP域2,該域的主控製VLAN為VLAN 105。在該域中,Device A和Device D分別為主環Ring 1的主節點和傳輸節點,Device E、Device C和Device B分別為子環Ring 2的主節點、邊緣節點和輔助邊緣節點。

·     RRPP域1的保護VLAN為VLAN 11,RRPP域2的保護VLAN為VLAN 12。由此可以按照VLAN在主環上實現負載分擔。

·     由於子環Ring 2和Ring 3的邊緣節點和輔助邊緣節點的配置相同,且其對應的主環鏈路也相同,因此可將子環Ring 2和Ring 3加入環組,以減少Edge-Hello報文的收發數量。

2. 組網圖

圖1-10 相交環負載分擔配置組網圖

3. 配置步驟

(1)     配置Device A

# 創建VLAN 11和12,將VLAN 11和12分別映射到MSTI 1和2上,並激活MST域的配置。

<DeviceA> system-view

[DeviceA] vlan 11 to 12

[DeviceA] stp region-configuration

[DeviceA-mst-region] instance 1 vlan 11

[DeviceA-mst-region] instance 2 vlan 12

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 分別在端口HundredGigE1/0/1和HundredGigE1/0/2上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議;將端口配置為Trunk端口,禁止VLAN 1通過、允許VLAN 11和12通過,並配置其缺省VLAN為VLAN 11。

[DeviceA] interface hundredgige 1/0/1

[DeviceA-HundredGigE1/0/1] link-delay 0

[DeviceA-HundredGigE1/0/1] undo stp enable

[DeviceA-HundredGigE1/0/1] port link-type trunk

[DeviceA-HundredGigE1/0/1] undo port trunk permit vlan 1

[DeviceA-HundredGigE1/0/1] port trunk permit vlan 11 12

[DeviceA-HundredGigE1/0/1] port trunk pvid vlan 11

[DeviceA-HundredGigE1/0/1] quit

[DeviceA] interface hundredgige 1/0/2

[DeviceA-HundredGigE1/0/2] link-delay 0

[DeviceA-HundredGigE1/0/2] undo stp enable

[DeviceA-HundredGigE1/0/2] port link-type trunk

[DeviceA-HundredGigE1/0/2] undo port trunk permit vlan 1

[DeviceA-HundredGigE1/0/2] port trunk permit vlan 11 12

[DeviceA-HundredGigE1/0/2] port trunk pvid vlan 11

[DeviceA-HundredGigE1/0/2] quit

# 創建RRPP域1,將VLAN 100配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceA] rrpp domain 1

[DeviceA-rrpp-domain1] control-vlan 100

[DeviceA-rrpp-domain1] protected-vlan reference-instance 1

# 在RRPP域1內配置本設備為主環Ring 1的主節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceA-rrpp-domain1] ring 1 node-mode master primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceA-rrpp-domain1] ring 1 enable

[DeviceA-rrpp-domain1] quit

# 創建RRPP域2,將VLAN 105配置為該域的主控製VLAN,並將MSTI 2所映射的VLAN配置為該域的保護VLAN。

[DeviceA] rrpp domain 2

[DeviceA-rrpp-domain2] control-vlan 105

[DeviceA-rrpp-domain2] protected-vlan reference-instance 2

# 在RRPP域2內配置本設備為主環Ring 1的主節點,主端口為HundredGigE1/0/2,副端口為HundredGigE1/0/1,並開啟該環。

[DeviceA-rrpp-domain2] ring 1 node-mode master primary-port hundredgige 1/0/2 secondary-port hundredgige 1/0/1 level 0

[DeviceA-rrpp-domain2] ring 1 enable

[DeviceA-rrpp-domain2] quit

# 開啟RRPP協議。

[DeviceA] rrpp enable

(2)     配置Device B

# 創建VLAN 11和12,將VLAN 11和12分別映射到MSTI 1和2上,並激活MST域的配置。

<DeviceB> system-view

[DeviceB] vlan 11 to 12

[DeviceB] stp region-configuration

[DeviceB-mst-region] instance 1 vlan 11

[DeviceB-mst-region] instance 2 vlan 12

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

# 分別在端口HundredGigE1/0/1和HundredGigE1/0/2上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議;將端口配置為Trunk端口,禁止VLAN 1通過、允許VLAN 11和12通過,並配置其缺省VLAN為VLAN 11。

[DeviceB] interface hundredgige 1/0/1

[DeviceB-HundredGigE1/0/1] link-delay 0

[DeviceB-HundredGigE1/0/1] undo stp enable

[DeviceB-HundredGigE1/0/1] port link-type trunk

[DeviceB-HundredGigE1/0/1] undo port trunk permit vlan 1

[DeviceB-HundredGigE1/0/1] port trunk permit vlan 11 12

[DeviceB-HundredGigE1/0/1] port trunk pvid vlan 11

[DeviceB-HundredGigE1/0/1] quit

[DeviceB] interface hundredgige 1/0/2

[DeviceB-HundredGigE1/0/2] link-delay 0

[DeviceB-HundredGigE1/0/2] undo stp enable

[DeviceB-HundredGigE1/0/2] port link-type trunk

[DeviceB-HundredGigE1/0/2] undo port trunk permit vlan 1

[DeviceB-HundredGigE1/0/2] port trunk permit vlan 11 12

[DeviceB-HundredGigE1/0/2] port trunk pvid vlan 11

[DeviceB-HundredGigE1/0/2] quit

# 在端口HundredGigE1/0/3上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議;將端口配置為Trunk端口,禁止VLAN 1通過、允許VLAN 12通過,並配置其缺省VLAN為VLAN 12。

[DeviceB] interface hundredgige 1/0/3

[DeviceB-HundredGigE1/0/3] link-delay 0

[DeviceB-HundredGigE1/0/3] undo stp enable

[DeviceB-HundredGigE1/0/3] port link-type trunk

[DeviceB-HundredGigE1/0/3] undo port trunk permit vlan 1

[DeviceB-HundredGigE1/0/3] port trunk permit vlan 12

[DeviceB-HundredGigE1/0/3] port trunk pvid vlan 12

[DeviceB-HundredGigE1/0/3] quit

# 在端口HundredGigE1/0/4上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議;將端口配置為Trunk端口,禁止VLAN 1通過、允許VLAN 11通過,並配置其缺省VLAN為VLAN 11。

[DeviceB] interface hundredgige 1/0/4

[DeviceB-HundredGigE1/0/4] link-delay 0

[DeviceB-HundredGigE1/0/4] undo stp enable

[DeviceB-HundredGigE1/0/4] port link-type trunk

[DeviceB-HundredGigE1/0/4] undo port trunk permit vlan 1

[DeviceB-HundredGigE1/0/4] port trunk permit vlan 11

[DeviceB-HundredGigE1/0/4] port trunk pvid vlan 11

[DeviceB-HundredGigE1/0/4] quit

# 創建RRPP域1,將VLAN 100配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceB] rrpp domain 1

[DeviceB-rrpp-domain1] control-vlan 100

[DeviceB-rrpp-domain1] protected-vlan reference-instance 1

# 在RRPP域1內配置本設備為主環Ring 1的傳輸節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceB-rrpp-domain1] ring 1 node-mode transit primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceB-rrpp-domain1] ring 1 enable

# 在RRPP域1內配置本設備為子環Ring 3的輔助邊緣節點,邊緣端口為HundredGigE1/0/4,並開啟該環。

[DeviceB-rrpp-domain1] ring 3 node-mode assistant-edge edge-port hundredgige 1/0/4

[DeviceB-rrpp-domain1] ring 3 enable

[DeviceB-rrpp-domain1] quit

# 創建RRPP域2,將VLAN 105配置為該域的主控製VLAN,並將MSTI 2所映射的VLAN配置為該域的保護VLAN。

[DeviceB] rrpp domain 2

[DeviceB-rrpp-domain2] control-vlan 105

[DeviceB-rrpp-domain2] protected-vlan reference-instance 2

# 在RRPP域2內配置本設備為主環Ring 1的傳輸節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceB-rrpp-domain2] ring 1 node-mode transit primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceB-rrpp-domain2] ring 1 enable

# 在RRPP域2內配置本設備為子環Ring 2的輔助邊緣節點,邊緣端口為HundredGigE1/0/3,並開啟該環。

[DeviceB-rrpp-domain2] ring 2 node-mode assistant-edge edge-port hundredgige 1/0/3

[DeviceB-rrpp-domain2] ring 2 enable

[DeviceB-rrpp-domain2] quit

# 開啟RRPP協議。

[DeviceB] rrpp enable

(3)     配置Device C

# 創建VLAN 11和12,將VLAN 11和12分別映射到MSTI 1和2上,並激活MST域的配置。

<DeviceC> system-view

[DeviceC] vlan 11 to 12

[DeviceC] stp region-configuration

[DeviceC-mst-region] instance 1 vlan 11

[DeviceC-mst-region] instance 2 vlan 12

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

# 分別在端口HundredGigE1/0/1和HundredGigE1/0/2上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議;將端口配置為Trunk端口,禁止VLAN 1通過、允許VLAN 11和12通過,並配置其缺省VLAN為VLAN 11。

[DeviceC] interface hundredgige 1/0/1

[DeviceC-HundredGigE1/0/1] link-delay 0

[DeviceC-HundredGigE1/0/1] undo stp enable

[DeviceC-HundredGigE1/0/1] port link-type trunk

[DeviceC-HundredGigE1/0/1] undo port trunk permit vlan 1

[DeviceC-HundredGigE1/0/1] port trunk permit vlan 11 12

[DeviceC-HundredGigE1/0/1] port trunk pvid vlan 11

[DeviceC-HundredGigE1/0/1] quit

[DeviceC] interface hundredgige 1/0/2

[DeviceC-HundredGigE1/0/2] link-delay 0

[DeviceC-HundredGigE1/0/2] undo stp enable

[DeviceC-HundredGigE1/0/2] port link-type trunk

[DeviceC-HundredGigE1/0/2] undo port trunk permit vlan 1

[DeviceC-HundredGigE1/0/2] port trunk permit vlan 11 12

[DeviceC-HundredGigE1/0/2] port trunk pvid vlan 11

[DeviceC-HundredGigE1/0/2] quit

# 在端口HundredGigE1/0/3上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議;將端口配置為Trunk端口,禁止VLAN 1通過、允許VLAN 12通過,並配置其缺省VLAN為VLAN 12。

[DeviceC] interface hundredgige 1/0/3

[DeviceC-HundredGigE1/0/3] link-delay 0

[DeviceC-HundredGigE1/0/3] undo stp enable

[DeviceC-HundredGigE1/0/3] port link-type trunk

[DeviceC-HundredGigE1/0/3] undo port trunk permit vlan 1

[DeviceC-HundredGigE1/0/3] port trunk permit vlan 12

[DeviceC-HundredGigE1/0/3] port trunk pvid vlan 12

[DeviceC-HundredGigE1/0/3] quit

# 在端口HundredGigE1/0/4上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議;將端口配置為Trunk端口,禁止VLAN 1通過、允許VLAN 11通過,並配置其缺省VLAN為VLAN 11。

[DeviceC] interface hundredgige 1/0/4

[DeviceC-HundredGigE1/0/4] link-delay 0

[DeviceC-HundredGigE1/0/4] undo stp enable

[DeviceC-HundredGigE1/0/4] port link-type trunk

[DeviceC-HundredGigE1/0/4] undo port trunk permit vlan 1

[DeviceC-HundredGigE1/0/4] port trunk permit vlan 11

[DeviceC-HundredGigE1/0/4] port trunk pvid vlan 11

[DeviceC-HundredGigE1/0/4] quit

# 創建RRPP域1,將VLAN 100配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceC] rrpp domain 1

[DeviceC-rrpp-domain1] control-vlan 100

[DeviceC-rrpp-domain1] protected-vlan reference-instance 1

# 在RRPP域1內配置本設備為主環Ring 1的傳輸節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceC-rrpp-domain1] ring 1 node-mode transit primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceC-rrpp-domain1] ring 1 enable

# 在RRPP域1內配置本設備為子環Ring 3的邊緣節點,邊緣端口為HundredGigE1/0/4,並開啟該環。

[DeviceC-rrpp-domain1] ring 3 node-mode edge edge-port hundredgige 1/0/4

[DeviceC-rrpp-domain1] ring 3 enable

[DeviceC-rrpp-domain1] quit

# 創建RRPP域2,將VLAN 105配置為該域的主控製VLAN,並將MSTI 2所映射的VLAN配置為該域的保護VLAN。

[DeviceC] rrpp domain 2

[DeviceC-rrpp-domain2] control-vlan 105

[DeviceC-rrpp-domain2] protected-vlan reference-instance 2

# 在RRPP域2內配置本設備為主環Ring 1的傳輸節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceC-rrpp-domain2] ring 1 node-mode transit primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceC-rrpp-domain2] ring 1 enable

# 在RRPP域2內配置本設備為子環Ring 2的邊緣節點,邊緣端口為HundredGigE1/0/3,並開啟該環。

[DeviceC-rrpp-domain2] ring 2 node-mode edge edge-port HundredGigE1/0/3

[DeviceC-rrpp-domain2] ring 2 enable

[DeviceC-rrpp-domain2] quit

# 開啟RRPP協議。

[DeviceC] rrpp enable

(4)     配置Device D

# 創建VLAN 11和12,將VLAN 11和12分別映射到MSTI 1和2上,並激活MST域的配置。

<DeviceD> system-view

[DeviceD] vlan 11 to 12

[DeviceD] stp region-configuration

[DeviceD-mst-region] instance 1 vlan 11

[DeviceD-mst-region] instance 2 vlan 12

[DeviceD-mst-region] active region-configuration

[DeviceD-mst-region] quit

# 分別在端口HundredGigE1/0/1和HundredGigE1/0/2上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議;將端口配置為Trunk端口,禁止VLAN 1通過、允許VLAN 11和12通過,並配置其缺省VLAN為VLAN 11。

[DeviceD] interface hundredgige 1/0/1

[DeviceD-HundredGigE1/0/1] link-delay 0

[DeviceD-HundredGigE1/0/1] undo stp enable

[DeviceD-HundredGigE1/0/1] port link-type trunk

[DeviceD-HundredGigE1/0/1] undo port trunk permit vlan 1

[DeviceD-HundredGigE1/0/1] port trunk permit vlan 11 12

[DeviceD-HundredGigE1/0/1] port trunk pvid vlan 11

[DeviceD-HundredGigE1/0/1] quit

[DeviceD] interface hundredgige 1/0/2

[DeviceD-HundredGigE1/0/2] link-delay 0

[DeviceD-HundredGigE1/0/2] undo stp enable

[DeviceD-HundredGigE1/0/2] port link-type trunk

[DeviceD-HundredGigE1/0/2] undo port trunk permit vlan 1

[DeviceD-HundredGigE1/0/2] port trunk permit vlan 11 12

[DeviceD-HundredGigE1/0/2] port trunk pvid vlan 11

[DeviceD-HundredGigE1/0/2] quit

# 創建RRPP域1,將VLAN 100配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceD] rrpp domain 1

[DeviceD-rrpp-domain1] control-vlan 100

[DeviceD-rrpp-domain1] protected-vlan reference-instance 1

# 在RRPP域1內配置本設備為主環Ring 1的傳輸節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceD-rrpp-domain1] ring 1 node-mode transit primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceD-rrpp-domain1] ring 1 enable

[DeviceD-rrpp-domain1] quit

# 創建RRPP域2,將VLAN 105配置為該域的主控製VLAN,並將MSTI 2所映射的VLAN配置為該域的保護VLAN。

[DeviceD] rrpp domain 2

[DeviceD-rrpp-domain2] control-vlan 105

[DeviceD-rrpp-domain2] protected-vlan reference-instance 2

# 在RRPP域2內配置本設備為主環Ring 1的傳輸節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceD-rrpp-domain2] ring 1 node-mode transit primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 0

[DeviceD-rrpp-domain2] ring 1 enable

[DeviceD-rrpp-domain2] quit

# 開啟RRPP協議。

[DeviceD] rrpp enable

(5)     配置Device E

# 創建VLAN 12,將VLAN 12映射到MSTI 2上,並激活MST域的配置。

<DeviceE> system-view

[DeviceE] vlan 12

[DeviceE-vlan12] quit

[DeviceE] stp region-configuration

[DeviceE-mst-region] instance 2 vlan 12

[DeviceE-mst-region] active region-configuration

[DeviceE-mst-region] quit

# 分別在端口HundredGigE1/0/1和HundredGigE1/0/2上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議;將端口配置為Trunk端口,禁止VLAN 1通過、允許VLAN 12通過,並配置其缺省VLAN為VLAN 12。

[DeviceE] interface hundredgige 1/0/1

[DeviceE-HundredGigE1/0/1] link-delay 0

[DeviceE-HundredGigE1/0/1] undo stp enable

[DeviceE-HundredGigE1/0/1] port link-type trunk

[DeviceE-HundredGigE1/0/1] undo port trunk permit vlan 1

[DeviceE-HundredGigE1/0/1] port trunk permit vlan 12

[DeviceE-HundredGigE1/0/1] port trunk pvid vlan 12

[DeviceE-HundredGigE1/0/1] quit

[DeviceE] interface hundredgige 1/0/2

[DeviceE-HundredGigE1/0/2] link-delay 0

[DeviceE-HundredGigE1/0/2] undo stp enable

[DeviceE-HundredGigE1/0/2] port link-type trunk

[DeviceE-HundredGigE1/0/2] undo port trunk permit vlan 1

[DeviceE-HundredGigE1/0/2] port trunk permit vlan 12

[DeviceE-HundredGigE1/0/2] port trunk pvid vlan 12

[DeviceE-HundredGigE1/0/2] quit

# 創建RRPP域2,將VLAN 105配置為該域的主控製VLAN,並將MSTI 2所映射的VLAN配置為該域的保護VLAN。

[DeviceE] rrpp domain 2

[DeviceE-rrpp-domain2] control-vlan 105

[DeviceE-rrpp-domain2] protected-vlan reference-instance 2

# 在RRPP域2內配置本設備為子環Ring 2的主節點,主端口為HundredGigE1/0/2,副端口為HundredGigE1/0/1,並開啟該環。

[DeviceE-rrpp-domain2] ring 2 node-mode master primary-port hundredgige 1/0/2 secondary-port hundredgige 1/0/1 level 1

[DeviceE-rrpp-domain2] ring 2 enable

[DeviceE-rrpp-domain2] quit

# 開啟RRPP協議。

[DeviceE] rrpp enable

(6)     配置Device F

# 創建VLAN 11,將VLAN 11映射到MSTI 1上,並激活MST域的配置。

<DeviceF> system-view

[DeviceF] vlan 11

[DeviceF-vlan11] quit

[DeviceF] stp region-configuration

[DeviceF-mst-region] instance 1 vlan 11

[DeviceF-mst-region] active region-configuration

[DeviceF-mst-region] quit

# 分別在端口HundredGigE1/0/1和HundredGigE1/0/2上配置物理連接狀態up/down抑製時間為0秒(即不抑製),關閉生成樹協議;將端口配置為Trunk端口,禁止VLAN 1通過、允許VLAN 11通過,並配置其缺省VLAN為VLAN 11。

[DeviceF] interface hundredgige 1/0/1

[DeviceF-HundredGigE1/0/1] link-delay 0

[DeviceF-HundredGigE1/0/1] undo stp enable

[DeviceF-HundredGigE1/0/1] port link-type trunk

[DeviceF-HundredGigE1/0/1] undo port trunk permit vlan 1

[DeviceF-HundredGigE1/0/1] port trunk permit vlan 11

[DeviceF-HundredGigE1/0/1] port trunk pvid vlan 11

[DeviceF-HundredGigE1/0/1] quit

[DeviceF] interface hundredgige 1/0/2

[DeviceF-HundredGigE1/0/2] link-delay 0

[DeviceF-HundredGigE1/0/2] undo stp enable

[DeviceF-HundredGigE1/0/2] port link-type trunk

[DeviceF-HundredGigE1/0/2] undo port trunk permit vlan 1

[DeviceF-HundredGigE1/0/2] port trunk permit vlan 11

[DeviceF-HundredGigE1/0/2] port trunk pvid vlan 11

[DeviceF-HundredGigE1/0/2] quit

# 創建RRPP域1,將VLAN 100配置為該域的主控製VLAN,並將MSTI 1所映射的VLAN配置為該域的保護VLAN。

[DeviceF] rrpp domain 1

[DeviceF-rrpp-domain1] control-vlan 100

[DeviceF-rrpp-domain1] protected-vlan reference-instance 1

# 在RRPP域1內配置本設備為子環Ring 3的主節點,主端口為HundredGigE1/0/1,副端口為HundredGigE1/0/2,並開啟該環。

[DeviceF-rrpp-domain1] ring 3 node-mode master primary-port hundredgige 1/0/1 secondary-port hundredgige 1/0/2 level 1

[DeviceF-rrpp-domain1] ring 3 enable

[DeviceF-rrpp-domain1] quit

# 開啟RRPP協議。

[DeviceF] rrpp enable

(7)     完成以上配置後,在Device B和Device C上分別配置RRPP環組

# 在Device B上創建RRPP環組1,並為其配置子環。

[DeviceB] rrpp ring-group 1

[DeviceB-ring-group1] domain 2 ring 2

[DeviceB-ring-group1] domain 1 ring 3

# 在Device C上創建RRPP環組1,並為其配置子環。

[DeviceC] rrpp ring-group 1

[DeviceC-ring-group1] domain 2 ring 2

[DeviceC-ring-group1] domain 1 ring 3

4. 驗證配置

配置完成後,用戶可以使用display命令顯示各設備上RRPP的配置和運行情況。

1.13  常見配置錯誤舉例

1. 故障現象

在鏈路正常狀態下,主節點收不到Hello報文,主節點放開副端口。

2. 故障分析

可能的原因有:

·     RRPP環上有節點沒有開啟RRPP協議。

·     在同一RRPP環上的節點的域ID或控製VLAN不同。

·     端口處於非正常狀態。

3. 故障排除

·     使用display rrpp brief命令顯示各個節點是否都配置並開啟了RRPP協議。如果沒有則使用rrpp enablering enable命令開啟RRPP協議和RRPP環。

·     使用display rrpp brief命令顯示各節點的域ID和控製VLAN是否相同。如果不相同,則需重新設置為相同。

·     使用display rrpp verbose命令顯示各個節點各個環的端口鏈路狀態。

·     在各個節點上使用debugging rrpp命令顯示端口是否有Hello報文的接收或發送,如果沒有則說明有報文丟失。

不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!

BOB登陆
官網
聯係我們