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

12-可靠性配置指導

目錄

05-ERPS配置

本章節下載 05-ERPS配置  (733.30 KB)

05-ERPS配置


1 ERPS

1.1  ERPS簡介

ERPS(Ethernet Ring Protection Switching,以太環網保護倒換)是具備高可靠性和穩定性的以太環網鏈路層技術。它在以太網環完整時能夠防止數據環路引起的廣播風暴,而當以太網環發生鏈路故障時能迅速恢複環網上各個節點之間的通信通路,具備較高的收斂速度。

1.1.1  ERPS組網模型

圖1-1所示,ERPS采用環形組網。

圖1-1 ERPS的基本組網模型

1. ERPS環

一個環形連接的以太網網絡拓撲稱為一個ERPS環。ERPS環分為主環和子環,缺省情況下,ERPS環為主環,可手工配置ERPS環為子環。一個ERPS環可以由單個主環構成,也可以由多個環網構成,在多個環網中可以有多個主環和多個子環。如圖1-1,Device A、Device B、Device C、Device D四個節點所圍成的封閉環路為主環Major ring。子環Subring是由Device C與Device E、Device E與Device F、Device F與Device D這三段鏈路所構成,是個不封閉環。

2. 環保護鏈路

ERPS環由許多節點組成。某些節點之間使用RPL(Ring Protection Link,環保護鏈路)對環網進行保護,防止環路產生。如圖1-1,Device A與Device B、Device E與Device F間的鏈路就是RPL。

3. 節點角色

ERPS環上的每台設備都稱為一個節點。節點角色由用戶的配置來決定,分為下列幾種:

·     Owner節點:主節點,負責阻塞和放開本節點上位於RPL上的端口,防止形成環路,從而進行鏈路倒換。

·     Neighbor節點:鄰居節點,RPL上和Owner節點相連的節點,協同Owner節點阻塞和放開本節點上位於RPL上的端口,進行鏈路倒換。

·     Interconnection節點:互聯節點,多環模型中連接多個環的節點,互聯節點屬於子環,主環無互聯節點。在子環互聯節點之間的鏈路的協議報文上送模式中,子環的協議報文在互聯節點終結,數據報文不被終結。有關協議報文的介紹,請參見“1.1.3  ERPS協議報文”。

·     Normal節點:普通節點,除了上述介紹的三種節點之外的所有節點都為Normal節點。Normal節點負責接收和轉發鏈路中的協議報文和數據報文。

每個節點上都有兩種成員端口port0和port1,這兩種端口在功能上沒有區別,都用於ERPS環上協議報文和數據報文的傳輸。

圖1-1,在主環上Device A是Owner節點,Device B是Neighbor節點,在子環上Device E是Owner節點,Device F是Neighbor節點。Device C和Device D是Interconnection節點。

4. 端口類型

ERPS環成員端口類型由用戶的配置來決定,分為以下三種:

·     RPL端口:RPL兩端的端口。

·     Interconnection端口:互聯節點端口是負責連接子環和主環的端口。

·     Normal端口:Normal端口為缺省端口類型,可以接收和轉發鏈路中的協議報文和數據報文,不具備特殊功能。

圖1-1所示,Device A、Device B、Device E和Device F上的端口Port A1、Port B1、Port E1和Port F1為RPL端口。Device C和Device D上的端口Port C3和Port D3為Interconnection端口。其餘端口為Normal端口。

1.1.2  ERPS實例

ERPS組網中一個環可以支持多個實例,每個實例都是一個邏輯環。每個實例中有自己的協議通道和數據通道,以及Owner節點;每個實例作為一個獨立的協議實體,維護各自的狀態和數據。

不同環ID的報文通過目的MAC地址來區分(目的MAC地址的最後一個字節表示環ID);具有相同環ID報文,通過其攜帶的VLAN ID來區分其所屬的ERPS實例,即報文中的環ID和VLAN ID唯一確定一個實例。

1.1.3  ERPS協議報文

R-APS(Ring Automatic Protection Switching,環網自動保護倒換)報文是ERPS的協議報文。協議提供了R-APS報文級別的設置功能。節點不處理R-APS報文級別比自己大的報文。同一環上同一實例內的節點R-APS報文級別必須相同。

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

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

報文類型

說明

(NR, RB)(No Request, RPL Block,鏈路恢複,RPL阻塞)報文

由Owner節點在Idle狀態下發送,通知其它節點RPL端口被阻塞。其它節點收到(NR, RB)報文後放開自身的無故障端口,更新各自MAC地址表項。鏈路穩定在Idle狀態下時,Owner節點周期性發送(NR, RB)報文

NR(No Request,鏈路恢複)報文

當鏈路故障恢複後,由恢複端口所在節點發送,Owner節點收到NR報文後啟動WTR定時器,在恢複端口所在節點收到(NR, RB)報文後停止發送NR報文

SF(Signal Fail,信號失敗)報文

當鏈路出現信號收發失敗時,由故障端口所在節點發送,Owner和Neighbor節點收到SF報文後,放開各自的RPL端口。故障未消除前,故障端口所在節點周期性發送SF報文

MS(Manual Switch,手工倒換)報文

由配置MS模式的節點發送,配置MS模式的端口被阻塞,其它節點收到MS報文後放開自身無故障端口,更新各自MAC地址表項。鏈路在MS狀態下,MS報文周期性發送

FS(Forced Switch,強製倒換)報文

由配置FS模式的節點發送,配置FS模式的端口被阻塞,其它節點收到FS報文後放開自身所有端口,更新各自MAC地址表項。鏈路在FS狀態下,FS報文周期性發送

Flush(泛洪)報文

如果子環拓撲有變化,互聯節點以廣播形式發送Flush報文通知主環刷新MAC地址表項

 

說明

·     主環和子環的協議報文隻能在自己的環內傳輸,子環上除Flush報文以外的其它協議報文在互聯節點被終結。

·     子環的數據報文可以透傳至主環。

1.1.4  ERPS協議狀態

ERPS定義了以下六種狀態:

·     Init狀態:環端口不完整時(非互聯節點的端口數量小於2或互聯節點的端口數量小於1),處於Init狀態。

·     Idle狀態:環初始化過後進入到穩定狀態,當Owner節點進入Idle狀態後,其它節點隨之進入Idle狀態。其中,Owner節點和Neighbor節點的RPL端口為阻塞狀態,即RPL不通;Owner節點定時發送(NR, RB)報文。

·     Protection狀態:當環網某段鏈路出現故障,環路經過保護倒換,最終穩定到的狀態。Owner節點和Neighbor節點的RPL端口放開,即RPL放開,保證整個環網仍然是通的。當鏈路中某個節點進入Protection狀態後,其它節點隨之進入Protection狀態。

·     MS狀態:MS狀態下可以手動倒換流量轉發路徑。當對鏈路中某個節點進行MS操作後,其它節點隨之進入MS狀態。

·     FS狀態:FS狀態下可以強製倒換流量轉發路徑。當對鏈路中某個節點進行FS操作後,其它節點隨之進入FS狀態。

·     Pending狀態:Pending狀態是一個不穩定的狀態,是各狀態在進行跳轉時的一個過渡狀態。

環路正常時,處於Idle狀態;鏈路發生故障後,處於Proctection狀態。

1.1.5  ERPS定時器

1. Hold-off定時器

該定時器在端口檢測到鏈路故障時啟動,延遲故障上報的速度。當鏈路出現故障後,等待Hold-off超時後,如果故障依然存在,再上報。從而給服務層提供修複鏈路的機會,避免不必要的故障上報。該定時器的時長會影響鏈路故障上報的速度,影響故障發生時鏈路的倒換性能。

2. Guard定時器

該定時器在端口檢測到鏈路恢複時啟動,用於防止環網上轉發延時導致的原R-APS消息殘留對網絡造成不必要的震蕩。在此定時器超時前,接口不再處理所有R-APS報文。該定時器對多點故障時的鏈路恢複性能有影響。

3. WTR定時器

回切模式下,該定時器在Owner節點在Protection狀態收到NR報文時啟動,用於防止環網上存在間歇性故障鏈路導致網絡頻繁震蕩。在此定時器超時前,RPL保持轉發,故障恢複點維持臨時阻塞,期間,如果Owner節點收到SF報文,說明環網中還存在故障鏈路,該定時器直接關閉,RPL仍然保持轉發。否則,該定時器超時後,Owner節點阻塞RPL端口,發送(NR, RB)報文通知故障恢複節點,放開臨時阻塞的端口,同時刷新MAC地址表項。

4. WTB定時器

回切模式下,該定時器在Owner節點在MS或者FS狀態收到NR報文時啟動,用於防止環網上的RPL端口由於網絡震蕩而反複被阻塞、放開。在此定時器超時前,RPL保持轉發,故障節點發送NR報文。期間,如果Owner節點再次收到SF報文,說明環網中還存在故障鏈路,該定時器直接關閉,RPL仍然保持轉發。否則,該定時器超時後,Owner節點阻塞RPL,發送(NR, RB)報文通知臨時阻塞點放開,同時刷新MAC地址表項。

1.1.6  ERPS運行機製

ERPS采用ITU-T G.8032/Y.1344中定義的連續性檢測進行鏈路雙向轉發檢測,能夠定位故障點並檢測故障是單向還是雙向的。ERPS通過通告的消息來判斷鏈路的狀態,並作出相應的處理。ERPS的控製報文類型主要有SF和NR,如果檢測到鏈路出現信號收發失敗,就發送SF消息;檢測到鏈路恢複,就發送NR消息。如果檢測到鏈路狀態變化,連續發三個報文,之後的報文每隔5秒發送一次。

1. 鏈路down告警機製

圖1-2 鏈路故障

 

當鏈路中的節點發現自己任何一個屬於ERPS環的端口down時,都會阻塞故障端口並立刻發送SF報文通知鏈路上其它節點發生了故障,其它節點在收到此報文後放開非故障阻塞端口,並刷新MAC地址表項。

圖1-2所示,當Device C和Device D之間的鏈路發生故障,Device C和Device D檢測到鏈路故障,阻塞故障端口,並且周期性的發送SF消息,Device A和Device B收到SF消息後,放開之前阻塞的RPL端口,業務倒換到RPL,整個環完成了保護倒換。

2. 鏈路恢複機製

圖1-3 故障鏈路恢複

 

當故障鏈路恢複後,先阻塞之前處於故障狀態的端口,啟動Guard定時器並發送NR報文通知Owner節點故障鏈路已恢複。Owner節點在收到NR報文後,啟動WTR定時器,如果定時器在超時前,沒有收到SF報文,則當定時器超時後,Owner節點阻塞RPL端口,並向外周期性的發送(NR, RB)報文;故障恢複節點在收到(NR, RB)報文後放開臨時阻塞的故障恢複端口;Neighbor節點收到(NR, RB)報文後阻塞RPL端口,鏈路恢複。

圖1-3所示,當Device C和Device D檢測到它們之間的鏈路恢複後,臨時阻塞之前處於故障狀態的端口,發送NR消息。Device A(Owner節點)收到NR消息後,啟動WTR定時器,定時器超時之後,阻塞RPL端口,並向外發送(NR, RB)報文。Device C和Device D收到(NR, RB)消息之後,放開臨時阻塞的故障恢複端口;Device B(Neighbor節點)在收到(NR, RB)報文後阻塞RPL端口。鏈路恢複到發生故障前的狀態。

Owner節點在鏈路的恢複處理中,有如下兩種方式。

·     回切模式(Revertive behaviour):Owner節點在故障消除收到NR報文後,會啟動WTR/WTB定時器。在定時器超時之前,如果Owner節點沒有收到SF報文,就倒換端口狀態,阻塞RPL端口,清除MAC地址表項,發送(NR, RB)報文,其它節點放開非故障的阻塞端口,清除各自MAC地址表項。定時器超時後,倒換回Idle狀態。

·     非回切模式(Non-revertive behaviour):Owner收到NR報文後,不執行任何動作,保持之前設置的端口狀態。

3. 多實例與負載分擔機製

圖1-4 多實例負載分擔

 

在同一個環網中,可能同時存在多個VLAN的數據流量,ERPS可以實現流量的負載分擔,即不同VLAN的流量沿不同的路徑進行轉發。

ERPS環網中可分為控製VLAN和保護VLAN:

·     控製VLAN:用來傳遞ERPS協議報文。每個ERPS實例都有自己的控製VLAN。

·     保護VLAN:與控製VLAN相對,保護VLAN用來傳輸數據報文。每個ERPS實例都有自己的保護VLAN,保護VLAN通過配置生成樹實例來實現。

通過在同一個環網上配置多個ERPS實例,不同ERPS實例發送不同VLAN的流量,實現不同VLAN的數據流量在該環網中的拓撲不同,從而達到負載分擔的目的。

圖1-4所示,Instance 1和Instance 2為ERPS一個環內配置的兩個實例,兩個實例的RPL不同,Device A和Device B之間的鏈路為Instance 1的RPL,Device A為Instance 1的Owner節點;Device C和Device D之間的鏈路為Instance 2的RPL,Decive C為Instance 2的Owner節點。通過配置,不同的實例RPL阻塞不同的VLAN,從而實現單環的負載分擔。

4. 手動可配置機製

ERPS支持兩個級別的手動配置,即MS和FS。

·     MS允許用戶選取當前環實例內的配置MS模式的ERPS環成員端口作為阻塞端口。用戶在該端口所在節點配置erps switch manual命令後,該節點會向外發送MS消息。其它節點收到MS消息後會主動放開各自節點上的ERPS環成員端口,最終會穩定在整個鏈路上隻有MS配置的端口被阻塞的狀態。需要注意的是,MS狀態可以響應鏈路事件,允許根據鏈路事件倒換到相應的狀態:MS狀態下,如果有其它鏈路出現故障,故障所在節點會向外發送SF報文,其它節點在收到SF報文後會放開各自節點上的ERPS環成員端口,包括MS配置阻塞端口。此時鏈路可正常倒換到保護狀態。

·     FS作用與MS類似,不同的是FS狀態下,各節點不會響應鏈路故障事件,始終維持FS狀態不變。

5. 鏈路檢測聯動機製

當鏈路上的中間傳輸設備或傳輸鏈路發生故障(如光纖鏈路發生單通、錯纖、丟包等故障)以及故障排除時,ERPS本身無法感知到這個變化,ERPS環的成員端口需要通過專門的鏈路檢測協議來檢測端口的鏈路狀態,當鏈路檢測協議檢測到故障發生或故障恢複時就通知ERPS進行鏈路倒換。

ERPS環實例的成員端口通過Track項與鏈路檢測協議進行聯動,目前僅支持與CFD(Connectivity Fault Detection,連通錯誤檢測)的連續性檢測功能聯動。當端口與CFD連續性檢測功能聯動時,CFD按照檢測VLAN和檢測端口來通知故障檢測事件,隻有當端口所在ERPS環實例的控製VLAN與CFD監控的VLAN一致時,才響應此事件。有關Track項和CFD連續性檢測功能的詳細介紹,請分別參見“可靠性配置指導”中的“Track”和“CFD”。

1.1.7  ERPS典型組網

ERPS的正常運行依賴於用戶正確的配置。下麵介紹幾種典型的組網。

1. 單環

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

圖1-5 單環示意圖

 

2. 單子環

圖1-6所示,網絡拓撲中有兩個環,兩環之間有兩個公共節點,選擇其中一個環為主環,另一個環為子環。

圖1-6 單子環示意圖

 

3. 多子環連接主環

圖1-7所示,網絡拓撲中有三個或三個以上的環,每個子環與主環之間有兩個公共節點。

圖1-7 多子環連接主環示意圖

 

4. 子環連接單一子環

圖1-8所示,網絡拓撲中有三個或三個以上的環,在單子環拓撲的基礎上,多個子環和子環1之間有兩個公共節點。

圖1-8 子環連接單一子環示意圖

 

5. 子環連接多環

圖1-9圖1-10所示,網絡拓撲中有三個或三個以上的環,在單子環拓撲的基礎上,至少有一個子環與其它兩個環各有一個公共節點,分為以下兩種情況。

圖1-9 子環連接多環(子環2與主環、子環1同時相連)示意圖

 

圖1-10 子環連接多環(子環3與子環1、子環2同時相連)示意圖

 

6. M-LAG組網下的ERPS功能

在網絡中,為了提高以太環網中設備的可靠性,可以配置M-LAG組網下的以太環網。將以太環網中設備在聚合層麵虛擬成一台設備來實現跨設備鏈路聚合,從而提供設備級冗餘保護和流量負載分擔。管理員可以通過執行display erps detail ring 命令來查看環網配置和運行狀態,來判斷M-LAG環境中的ERPS是否工作正常。關於M-LAG的詳細介紹,請參見“二層技術—以太網交換配置指導”中的“M-LAG”。

圖1-11 M-LAG組網下的ERPS示意圖

 

1.1.8  協議規範

與ERPS相關的協議規範有:

·     ITU-T G.8032:Recommendation ITU-T G.8032/Y.1344, Ethernet ring protection switching.

·     IEEE 802.1D:IEEE Std 802.1D™-2004, IEEE Standard for Local and Metropolitan Area Networks – Media Access Control (MAC) Bridges.

·     IEEE 802.3:IEEE Std 802.3-2008, IEEE Standard for Information technology.

1.2  ERPS配置限製和指導

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

1.3  ERPS配置任務簡介

ERPS配置任務如下:

(1)     全局使能ERPS

欲指定為ERPS節點的設備均需進行本配置。

(2)     配置ERPS環

ERPS環上所有節點均需進行本配置。

a.     創建ERPS環

b.     配置ERPS環成員端口

c.     配置控製VLAN

d.     配置保護VLAN

e.     配置ERPS節點角色

(3)     在實例中使能ERPS協議

ERPS環上所有節點均需進行本配置。

(4)     (可選)配置ERPS環發送報文的目的MAC地址所攜帶的環號

ERPS環上所有節點均需進行本配置。

(5)     (可選)配置R-APS報文級別

ERPS環上所有節點均需進行本配置。

(6)     (可選)配置ERPS定時器

ERPS環上Owner節點均需進行本配置。

(7)     (可選)配置ERPS非回切模式

ERPS環上Owner節點均需進行本配置。

(8)     (可選)配置ERPS倒換模式

ERPS環上需要阻塞端口的節點均需進行本配置。

(9)     (可選)配置子環關聯環

ERPS環上Interconnection節點均需進行本配置。

(10)     (可選)開啟互聯節點Flush透傳功能

ERPS環上Interconnection節點均需進行本配置。

(11)     (可選)配置ERPS環成員端口的Track聯動

(12)     (可選)清除ERPS環上FS/MS模式的配置

1.4  ERPS配置準備

配置ERPS之前,需要完成以下任務:

·     搭建以太網環形拓撲的組網環境。

·     根據網絡拓撲情況劃分出ERPS環,接著根據業務規劃情況劃分出ERPS實例,再確定各ERPS實例的控製VLAN和保護VLAN,然後根據流量路徑確定每個ERPS環的實例內的各個節點角色。

1.5  全局使能ERPS

1. 配置限製和指導

本任務需要在所有欲指定為ERPS節點的設備上執行。

隻有全局和實例都使能ERPS協議,ERPS功能才能生效。

2. 配置步驟

(1)     進入係統視圖。

system-view

(2)     全局使能ERPS協議。

erps enable

缺省情況下,ERPS協議未全局使能。

1.6  配置ERPS環

1.6.1  創建ERPS環

1. 配置限製和指導

本任務需要在ERPS環上所有節點上執行。

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

2. 配置步驟

(1)     進入係統視圖。

system-view

(2)     創建ERPS環,並進入ERPS環視圖。

erps ring ring-id

(3)     (可選)配置環為子環。

ring-type sub-ring

缺省情況下,ERPS環為主環。

1.6.2  配置ERPS環成員端口

1. 配置限製和指導

本任務需要在各節點欲接入ERPS環的端口上執行。

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

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

建議在ERPS環成員端口上通過link-delay命令將端口的物理連接狀態up/down抑製時間配置為0秒(即不抑製),以提高ERPS的拓撲變化收斂速度。有關link-delay命令的詳細介紹,請參見“接口管理命令參考”中的“以太網接口”。

ERPS環成員端口必須為Trunk類型。

請勿將一個端口同時加入聚合組和ERPS環,否則該端口在ERPS環中將不會生效,也無法使用display erps detail命令查看到。

請勿將peer-link接口加入ERPS環,否則該端口在ERPS環中將不會生效,也無法使用display erps detail命令查看到對應信息。

當M-LAG接口和非M-LAG接口加入同一ERPS環時,對於非互聯節點實例該端口將不會生效。

2. 配置ERPS環成員端口屬性

(1)     進入係統視圖。

system-view

(2)     進入二層以太網或二層聚合接口視圖。

interface interface-type interface-number

(3)     配置端口的鏈路類型為Trunk類型。

port link-type trunk

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

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

(4)     配置Trunk端口允許保護VLAN的報文通過。

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

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

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

(5)     關閉生成樹協議。

undo stp enable

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

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

3. 配置ERPS環成員端口

(1)     進入係統視圖。

system-view

(2)     進入ERPS環視圖。

erps ring ring-id

(3)     配置ERPS環成員端口。

{ port0 | port1 } interface interface-type interface-number

缺省情況下,ERPS環無成員端口。

1.6.3  配置控製VLAN

1. 配置限製和指導

·     本任務需要在ERPS環上所有節點上執行。

·     控製VLAN必須為設備上尚未創建的VLAN。

·     同一ERPS實例內的所有節點上應配置相同的控製VLAN。

·     請勿將接入ERPS環當前實例的端口的缺省VLAN配置為控製VLAN。

·     控製VLAN內不能運行QinQ和VLAN映射功能,否則ERPS協議報文將無法正常收發。

·     控製VLAN必須在配置ERPS實例之後才可配置,但在實例使能之後不可以修改控製VLAN。

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

·     在M-LAG場景下配置ERPS,要求peer-link接口為Trunk類型,且peer-link接口會根據ERPS控製VLAN的創建和刪除自動加入和退出該控製VLAN。

2. 配置步驟

(1)     進入係統視圖。

system-view

(2)     進入ERPS環視圖。

erps ring ring-id

(3)     進入ERPS實例視圖。

instance instance-id

(4)     配置ERPS環的控製VLAN。

control-vlan vlan-id

1.6.4  配置保護VLAN

1. 配置限製和指導

本任務需要在ERPS環上所有節點上執行。

同一ERPS環實例內的所有節點上應配置相同的保護VLAN。

在配置負載分擔時,不同ERPS實例的保護VLAN必須不同。

2. 配置準備

配置保護VLAN前需要配置MST域,並配置關於保護VLAN的VLAN映射表,關於MST域的詳細介紹,請參見“二層技術-以太網交換配置指導”中的“生成樹”。

3. 配置步驟

(1)     進入係統視圖。

system-view

(2)     進入ERPS環視圖。

erps ring ring-id

(3)     進入ERPS實例視圖。

instance instance-id

(4)     配置ERPS實例的保護VLAN。

protected-vlan reference-instance instance-id-list

1.6.5  配置ERPS節點角色

1. 配置限製和指導

本任務需要在ERPS環上各節點上執行。

同一個環上配置節點角色過程中不能同時出現兩個Owner節點,否則不能保證配置完成後Owner節點功能正常。

當配置節點為interconnection時,當前的環必須是子環。

2. 配置步驟

(1)     進入係統視圖。

system-view

(2)     進入ERPS環視圖。

erps ring ring-id

(3)     進入ERPS實例視圖。

instance instance-id

(4)     配置ERPS節點角色。

node-role { { owner | neighbor } rpl | interconnection } { port0 | port1 }

缺省情況下,節點為Normal節點。

1.7  在實例中使能ERPS協議

1. 配置限製和指導

本任務需要在ERPS環上所有節點上執行。

當存在控製VLAN和保護VLAN時,實例才能使能ERPS協議。

2. 配置步驟

(1)     進入係統視圖。

system-view

(2)     進入ERPS環視圖。

erps ring ring-id

(3)     進入ERPS實例視圖。

instance instance-id

(4)     在ERPS實例使能ERPS協議。

instance enable

缺省情況下,ERPS實例中的ERPS協議處於關閉狀態。

1.8  配置ERPS環發送報文的目的MAC地址所攜帶的環號

1. 功能簡介

不同環ID的報文通過目的MAC地址來區分(目的MAC地址的最後一個字節表示環ID)。

2. 配置限製和指導

本任務需要在ERPS環上所有節點上執行。

3. 配置步驟

(1)     進入係統視圖。

system-view

(2)     進入ERPS環視圖。

erps ring ring-id

(3)     配置ERPS環發送報文的目的MAC地址所攜的環號為當前環號。

r-aps ring-mac

缺省情況下,R-APS報文目的MAC地址的最後一個字節為1。

1.9  配置R-APS報文級別

1. 配置限製和指導

本任務需要在ERPS環上所有節點上執行。

同一環上相同實例內的節點R-APS報文級別必須相同。

本節點不處理R-APS報文級別比自己大的R-APS報文。

2. 配置步驟

(1)     進入係統視圖。

system-view

(2)     進入ERPS環視圖。

erps ring ring-id

(3)     進入ERPS實例視圖。

instance instance-id

(4)     配置R-APS報文級別。

r-aps level level-value

缺省情況下,R-APS報文級別為7。

1.10  配置ERPS定時器

1. 配置限製和指導

本任務需要在ERPS環上Owner節點上執行。

2. 配置步驟

(1)     進入係統視圖。

system-view

(2)     進入ERPS環視圖。

erps ring ring-id

(3)     進入ERPS實例視圖。

instance instance-id

(4)     配置Guard定時器。

timer guard guard-value

缺省情況下,Guard定時器的值為500毫秒。

(5)     配置Hold-Off定時器。

timer hold-off hold-off-value

缺省情況下,Hold-off定時器的值為0毫秒。

(6)     配置WTR定時器。

timer wtr wtr-value

缺省情況下,WTR定時器的值為5分鍾。

1.11  配置ERPS非回切模式

1. 功能簡介

如果用戶不想因為故障節點恢複而引起鏈路再次切換,可以配置ERPS非回切模式,維持當前ERPS環拓撲結構,使數據轉發路徑保持不變。

2. 配置限製和指導

本任務需要在ERPS環上Owner節點上執行。

3. 配置步驟

(1)     進入係統視圖。

system-view

(2)     進入ERPS環視圖。

erps ring ring-id

(3)     進入ERPS實例視圖。

instance instance-id

(4)     配置實例為非回切模式。

revertive-operation non-revertive

缺省情況下,為回切模式。

1.12  配置ERPS倒換模式

1. 配置限製和指導

本任務需要在ERPS環上需要阻塞端口的節點上執行。

2. 配置步驟

(1)     進入係統視圖。

system-view

(2)     配置ERPS倒換模式。

erps switch { force | manual } ring ring-id instance instance-id { port0 | port1 }

缺省情況下,未配置ERPS倒換模式。

1.13  配置子環關聯環

1. 功能簡介

多環模型中,當某個子環的拓撲變換需要被其它環感知時,需要配置將該子環與指定環進行關聯。

2. 配置限製和指導

本任務需要在ERPS環上互聯節點上執行。

3. 配置步驟

(1)     進入係統視圖。

system-view

(2)     進入ERPS子環視圖。

erps ring ring-id

(3)     進入ERPS實例視圖。

instance instance-id

(4)     配置子環關聯環。

sub-ring connect ring ring-id instance instance-id

缺省情況下,子環無關聯環。

1.14  開啟互聯節點Flush透傳功能

1. 功能簡介

多環模型中,子環的拓撲發生變化時,會發送Flush報文,當開啟互聯節點的Flush透傳功能後,子環的Flush報文才透傳至其所關聯的環中,從而使得所關聯的環快速刷新MAC地址表項,提高收斂速度。

2. 配置限製和指導

本任務需要在ERPS環上互聯節點上執行。

開啟互聯節點Flush透傳功能時必須同時配置互聯節點上的子環與其它環相關聯。

3. 配置步驟

(1)     進入係統視圖。

system-view

(2)     開啟互聯節點Flush透傳功能。

erps tcn-propagation

缺省情況下,Flush透傳功能處於關閉狀態。

1.15  配置ERPS環成員端口的Track聯動

1. 配置限製和指導

在配置端口與Track項聯動之前,必須保證該端口已加入相應的ERPS環實例。

2. 配置步驟

(1)     進入係統視圖。

system-view

(2)     進入二層以太網或二層聚合接口視圖。

interface interface-type interface-number

(3)     配置ERPS環成員端口的Track聯動。

port erps ring ring-id instance instance-id track track-entry-index

缺省情況下,未配置ERPS環成員端口與Track聯動。

1.16  清除ERPS環上FS/MS模式的配置

1. 功能簡介

通過本功能可將非回切模式的ERPS環返回到回切模式,但不清除非回切模式配置。

如果用戶清除了ERPS環上FS/MS模式的配置,當故障鏈路恢複時,Owner節點可跳過WTR定時器的超時等待,直接啟動鏈路恢複倒換。

2. 配置步驟

(1)     進入係統視圖。

system-view

(2)     清除ERPS環上FS/MS模式的配置。

erps clear ring ring-id instance instance-id

1.17  ERPS顯示和維護

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

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

表1-2 ERPS顯示和維護

操作

命令

顯示ERPS的摘要信息

display erps

顯示ERPS的詳細信息

display erps detail ring ring-id [ instance instance-id ]

顯示ERPS報文的統計信息

display erps statistics [ ring ring-id [ instance instance-id ] ]

清除ERPS報文的統計信息

reset erps statistics ring ring-id [ instance instance-id ]

 

1.18  ERPS典型配置舉例

1.18.1  單環配置舉例

1. 組網需求

圖1-12所示,為了解決單環上網絡環路的問題,在環上各節點配置ERPS相關命令。

·     Device A~Device D構成ERPS環1,該環的控製VLAN為VLAN 100,保護VLAN為VLAN 1~30。

·     Device A為ERPS環的Owner節點,Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2分別為ERPS環1的成員端口port0和port1端口,port0為RPL端口。

·     Device B為ERPS環的Neighbor節點,Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2分別為ERPS環1的成員端口port0和port1端口,port0為RPL端口。

·     Device C和Device D為ERPS環的Normal節點,其各自的Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2分別為ERPS環1的成員端口port0和port1端口。

2. 組網圖

圖1-12 單環配置組網圖

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

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

[DeviceA] interface twenty-fivegige 1/0/1

[DeviceA-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceA-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceA-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceA-Twenty-FiveGigE1/0/1] port link-type trunk

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

[DeviceA-Twenty-FiveGigE1/0/1] quit

[DeviceA] interface twenty-fivegige 1/0/2

[DeviceA-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceA-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceA-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceA-Twenty-FiveGigE1/0/2] port link-type trunk

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

[DeviceA-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環1。

[DeviceA] erps ring 1

# 配置ERPS環成員端口。

[DeviceA-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceA-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 配置ERPS環發送報文的目的MAC地址所攜帶的環號。

[DeviceA-erps-ring1] r-aps ring-mac

# 創建ERPS實例1。

[DeviceA-erps-ring1] instance 1

# 配置節點角色。

[DeviceA-erps-ring1-inst1] node-role owner rpl port0

# 配置控製VLAN。

[DeviceA-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceA-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceA-erps-ring1-inst1] instance enable

[DeviceA-erps-ring1-inst1] quit

[DeviceA-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceA] cfd enable

[DeviceA] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例1,該MA服務於VLAN 1。

[DeviceA] cfd service-instance 1 ma-id vlan-based md MD_A vlan 1

# 在服務實例1內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例1內的外向MEP 1001,並使能其CCM報文發送功能。

[DeviceA] cfd meplist 1001 1002 service-instance 1

[DeviceA] interface twenty-fivegige 1/0/1

[DeviceA-Twenty-FiveGigE1/0/1] cfd mep 1001 service-instance 1 outbound

[DeviceA-Twenty-FiveGigE1/0/1] cfd cc service-instance 1 mep 1001 enable

[DeviceA-Twenty-FiveGigE1/0/1] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例2,該MA服務於VLAN 2。

[DeviceA] cfd service-instance 2 ma-id vlan-based md MD_A vlan 2

# 在服務實例2內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例2內的外向MEP 2001,並使能其CCM報文發送功能。

[DeviceA] cfd meplist 2001 2002 service-instance 2

[DeviceA] interface twenty-fivegige 1/0/2

[DeviceA-Twenty-FiveGigE1/0/2] cfd mep 2001 service-instance 2 outbound

[DeviceA-Twenty-FiveGigE1/0/2] cfd cc service-instance 2 mep 2001 enable

[DeviceA-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例1中MEP 1001的CFD連續性檢測功能關聯的Track項1。

[DeviceA] track 1 cfd cc service-instance 1 mep 1001

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/1通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceA] interface twenty-fivegige 1/0/1

[DeviceA-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 1

[DeviceA-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceA-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例2中MEP 2001的CFD連續性檢測功能關聯的Track項2。

[DeviceA] track 2 cfd cc service-instance 2 mep 2001

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/2通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceA] interface twenty-fivegige 1/0/2

[DeviceA-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 2

[DeviceA-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceA-Twenty-FiveGigE1/0/2] quit

# 使能ERPS協議。

[DeviceA] erps 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

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

[DeviceB] interface twenty-fivegige 1/0/1

[DeviceB-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceB-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceB-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceB-Twenty-FiveGigE1/0/1] port link-type trunk

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

[DeviceB-Twenty-FiveGigE1/0/1] quit

[DeviceB] interface twenty-fivegige 1/0/2

[DeviceB-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceB-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceB-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceB-Twenty-FiveGigE1/0/2] port link-type trunk

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

[DeviceB-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環1。

[DeviceB] erps ring 1

# 配置ERPS環成員端口。

[DeviceB-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceB-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 配置ERPS環發送報文的目的MAC地址所攜帶的環號。

[DeviceB-erps-ring1] r-aps ring-mac

# 創建ERPS實例1。

[DeviceB-erps-ring1] instance 1

# 配置節點角色。

[DeviceB-erps-ring1-inst1] node-role neighbor rpl port0

# 配置控製VLAN。

[DeviceB-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceB-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceB-erps-ring1-inst1] instance enable

[DeviceB-erps-ring1-inst1] quit

[DeviceB-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceB] cfd enable

[DeviceB] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例1,該MA服務於VLAN 1。

[DeviceB] cfd service-instance 1 ma-id vlan-based md MD_A vlan 1

# 在服務實例1內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例1內的外向MEP 1002,並使能其CCM報文發送功能。

[DeviceB] cfd meplist 1001 1002 service-instance 1

[DeviceB] interface twenty-fivegige 1/0/1

[DeviceB-Twenty-FiveGigE1/0/1] cfd mep 1002 service-instance 1 outbound

[DeviceB-Twenty-FiveGigE1/0/1] cfd cc service-instance 1 mep 1002 enable

[DeviceB-Twenty-FiveGigE1/0/1] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例3,該MA服務於VLAN 3。

[DeviceB] cfd service-instance 3 ma-id vlan-based md MD_A vlan 3

# 在服務實例3內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例3內的外向MEP 3002,並使能其CCM報文發送功能。

[DeviceB] cfd meplist 3001 3002 service-instance 3

[DeviceB] interface twenty-fivegige 1/0/2

[DeviceB-Twenty-FiveGigE1/0/2] cfd mep 3002 service-instance 3 outbound

[DeviceB-Twenty-FiveGigE1/0/2] cfd cc service-instance 3 mep 3002 enable

[DeviceB-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例1中MEP 1002的CFD連續性檢測功能關聯的Track項1。

[DeviceB] track 1 cfd cc service-instance 1 mep 1002

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/1通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceB] interface twenty-fivegige 1/0/1

[DeviceB-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 1

[DeviceB-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceB-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例3中MEP 3002的CFD連續性檢測功能關聯的Track項2。

[DeviceB] track 2 cfd cc service-instance 3 mep 3002

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/2通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceB] interface twenty-fivegige 1/0/2

[DeviceB-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 2

[DeviceB-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceB-Twenty-FiveGigE1/0/2] quit

# 使能ERPS協議。

[DeviceB] erps 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

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

[DeviceC] interface twenty-fivegige 1/0/1

[DeviceC-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceC-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceC-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceC-Twenty-FiveGigE1/0/1] port link-type trunk

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

[DeviceC-Twenty-FiveGigE1/0/1] quit

[DeviceC] interface twenty-fivegige 1/0/2

[DeviceC-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceC-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceC-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceC-Twenty-FiveGigE1/0/2] port link-type trunk

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

[DeviceC-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環1。

[DeviceC] erps ring 1

# 配置ERPS環成員端口。

[DeviceC-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceC-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 配置ERPS環發送報文的目的MAC所攜帶的環號。

[DeviceC-erps-ring1] r-aps ring-mac

# 創建ERPS實例1。

[DeviceC-erps-ring1] instance 1

# 配置控製VLAN。

[DeviceC-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceC-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceC-erps-ring1-inst1] instance enable

[DeviceC-erps-ring1-inst1] quit

[DeviceC-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceC] cfd enable

[DeviceC] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例3,該MA服務於VLAN 3。

[DeviceC] cfd service-instance 3 ma-id vlan-based md MD_A vlan 3

# 在服務實例3內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例3內的外向MEP 3001,並使能其CCM報文發送功能。

[DeviceC] cfd meplist 3001 3002 service-instance 3

[DeviceC] interface twenty-fivegige 1/0/2

[DeviceC-Twenty-FiveGigE1/0/2] cfd mep 3001 service-instance 3 outbound

[DeviceC-Twenty-FiveGigE1/0/2] cfd cc service-instance 3 mep 3001 enable

[DeviceC-Twenty-FiveGigE1/0/2] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例4,該MA服務於VLAN 4。

[DeviceC] cfd service-instance 4 ma-id vlan-based md MD_A vlan 4

# 在服務實例4內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例4內的外向MEP 4001,並使能其CCM報文發送功能。

[DeviceC] cfd meplist 4001 4002 service-instance 4

[DeviceC] interface twenty-fivegige 1/0/1

[DeviceC-Twenty-FiveGigE1/0/1] cfd mep 4001 service-instance 4 outbound

[DeviceC-Twenty-FiveGigE1/0/1] cfd cc service-instance 4 mep 4001 enable

[DeviceC-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例3中MEP 3001的CFD連續性檢測功能關聯的Track項1。

[DeviceC] track 1 cfd cc service-instance 3 mep 3001

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/2通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceC] interface twenty-fivegige 1/0/2

[DeviceC-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 1

[DeviceC-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceC-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例4中MEP 4001的CFD連續性檢測功能關聯的Track項2。

[DeviceC] track 2 cfd cc service-instance 4 mep 4001

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/1通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceC] interface twenty-fivegige 1/0/1

[DeviceC-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 2

[DeviceC-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceC-Twenty-FiveGigE1/0/1] quit

# 使能ERPS協議。

[DeviceC] erps 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

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

[DeviceD] interface twenty-fivegige 1/0/1

[DeviceD-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceD-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceD-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceD-Twenty-FiveGigE1/0/1] port link-type trunk

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

[DeviceD-Twenty-FiveGigE1/0/1] quit

[DeviceD] interface twenty-fivegige 1/0/2

[DeviceD-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceD-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceD-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceD-Twenty-FiveGigE1/0/2] port link-type trunk

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

[DeviceD-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環1。

[DeviceD] erps ring 1

# 配置ERPS環成員端口。

[DeviceD-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceD-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 配置ERPS環發送報文的目的MAC所攜帶的環號。

[DeviceD-erps-ring1] r-aps ring-mac

# 創建ERPS實例1。

[DeviceD-erps-ring1] instance 1

# 配置控製VLAN。

[DeviceD-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceD-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceD-erps-ring1-inst1] instance enable

[DeviceD-erps-ring1-inst1] quit

[DeviceD-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceD] cfd enable

[DeviceD] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例2,該MA服務於VLAN 2。

[DeviceD] cfd service-instance 2 ma-id vlan-based md MD_A vlan 2

# 在服務實例2內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例2內的外向MEP 2002,並使能其CCM報文發送功能。

[DeviceD] cfd meplist 2001 2002 service-instance 2

[DeviceD] interface twenty-fivegige 1/0/2

[DeviceD-Twenty-FiveGigE1/0/2] cfd mep 2002 service-instance 2 outbound

[DeviceD-Twenty-FiveGigE1/0/2] cfd cc service-instance 2 mep 2002 enable

[DeviceD-Twenty-FiveGigE1/0/2] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例4,該MA服務於VLAN 4。

[DeviceD] cfd service-instance 4 ma-id vlan-based md MD_A vlan 4

# 在服務實例4內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例4內的外向MEP 4002,並使能其CCM報文發送功能。

[DeviceD] cfd meplist 4001 4002 service-instance 4

[DeviceD] interface twenty-fivegige 1/0/1

[DeviceD-Twenty-FiveGigE1/0/1] cfd mep 4002 service-instance 4 outbound

[DeviceD-Twenty-FiveGigE1/0/1] cfd cc service-instance 4 mep 4002 enable

[DeviceD-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例2中MEP 2002的CFD連續性檢測功能關聯的Track項1。

[DeviceD] track 1 cfd cc service-instance 2 mep 2002

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/2通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceD] interface twenty-fivegige 1/0/2

[DeviceD-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 1

[DeviceD-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceD-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例4中MEP 4002的CFD連續性檢測功能關聯的Track項2。

[DeviceD] track 2 cfd cc service-instance 4 mep 4002

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/1通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceD] interface twenty-fivegige 1/0/1

[DeviceD-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 2

[DeviceD-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceD-Twenty-FiveGigE1/0/1] quit

# 使能ERPS協議。

[DeviceD] erps enable

4. 驗證配置

# Device A上的ERPS環1的運行情況。

[DeviceA] display erps detail ring 1

 Ring ID               : 1

 Port0                 : Twenty-FiveGigE1/0/1

 Port1                 : Twenty-FiveGigE1/0/2

 Subring               : No

 Default MAC           : No

 

 Instance ID           : 1

 Node role             : Owner

 Node state            : Idle

 Connect(ring/instance): -

 Control VLAN          : 100

 Protected VLAN        : Reference-instance 1

 Guard timer           : 500 ms

 Hold-off timer        : 0 ms

 WTR timer             : 5 min

 Revertive operation   : Revertive

 Enable status         : Yes, Active status : Yes

 R-APS level           : 7

 Port                  PortRole                PortStatus

 ----------------------------------------------------------------------------

 Port0                 RPL                     Block

 Port1                 Non-RPL                 Up

本節點為Owner節點,ERPS環處於Idle狀態,RPL端口阻塞,非RPL端口放開。

1.18.2  單子環配置舉例

1. 組網需求

圖1-13,為了解決子環與主環配合時,子環上出現網絡環路的問題,在環上各節點配置ERPS相關命令。

·     Device A~Device D構成ERPS主環,該環的控製VLAN為VLAN 100,保護VLAN為VLAN 1~30。Device C、Device D、Device E、Device F構成子環,該環的控製VLAN為VLAN 200,保護VLAN為VLAN 1~30。

·     Device A為主環的Owner節點,Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2分別為ERPS環1的成員端口port0和port1端口,port0為RPL端口。

·     Device B為主環的Neighbor節點,Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2分別為ERPS環1的成員端口port0和port1端口,port0為RPL端口。

·     Device C和Device D為Interconnection節點,其各自的Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2分別為ERPS環1的成員端口port0和port1端口,Twenty-FiveGigE1/0/3為Interconnection端口。

·     Device E為子環的Owner節點,Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2分別為ERPS環1的成員端口port0和port1端口,port0為RPL端口。

·     Device F為子環的Neighbor節點,Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2分別為ERPS環1的成員端口port0和port1端口,port0為RPL端口。

2. 組網圖

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

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

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

[DeviceA] interface twenty-fivegige 1/0/1

[DeviceA-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceA-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceA-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceA-Twenty-FiveGigE1/0/1] port link-type trunk

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

[DeviceA-Twenty-FiveGigE1/0/1] quit

[DeviceA] interface twenty-fivegige 1/0/2

[DeviceA-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceA-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceA-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceA-Twenty-FiveGigE1/0/2] port link-type trunk

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

[DeviceA-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環1。

[DeviceA] erps ring 1

# 配置ERPS環成員端口。

[DeviceA-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceA-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 創建ERPS實例1。

[DeviceA-erps-ring1] instance 1

# 配置節點角色。

[DeviceA-erps-ring1-inst1] node-role owner rpl port0

# 配置控製VLAN。

[DeviceA-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceA-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceA-erps-ring1-inst1] instance enable

[DeviceA-erps-ring1-inst1] quit

[DeviceA-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceA] cfd enable

[DeviceA] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例1,該MA服務於VLAN 1。

[DeviceA] cfd service-instance 1 ma-id vlan-based md MD_A vlan 1

# 在服務實例1內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例1內的外向MEP 1001,並使能其CCM報文發送功能。

[DeviceA] cfd meplist 1001 1002 service-instance 1

[DeviceA] interface twenty-fivegige 1/0/1

[DeviceA-Twenty-FiveGigE1/0/1] cfd mep 1001 service-instance 1 outbound

[DeviceA-Twenty-FiveGigE1/0/1] cfd cc service-instance 1 mep 1001 enable

[DeviceA-Twenty-FiveGigE1/0/1] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例2,該MA服務於VLAN 2。

[DeviceA] cfd service-instance 2 ma-id vlan-based md MD_A vlan 2

# 在服務實例2內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例2內的外向MEP 2001,並使能其CCM報文發送功能。

[DeviceA] cfd meplist 2001 2002 service-instance 2

[DeviceA] interface twenty-fivegige 1/0/2

[DeviceA-Twenty-FiveGigE1/0/2] cfd mep 2001 service-instance 2 outbound

[DeviceA-Twenty-FiveGigE1/0/2] cfd cc service-instance 2 mep 2001 enable

[DeviceA-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例1中MEP 1001的CFD連續性檢測功能關聯的Track項1。

[DeviceA] track 1 cfd cc service-instance 1 mep 1001

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/1通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceA] interface twenty-fivegige 1/0/1

[DeviceA-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 1

[DeviceA-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceA-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例2中MEP 2001的CFD連續性檢測功能關聯的Track項2。

[DeviceA] track 2 cfd cc service-instance 2 mep 2001

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/2通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceA] interface twenty-fivegige 1/0/2

[DeviceA-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 2

[DeviceA-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceA-Twenty-FiveGigE1/0/2] quit

# 使能ERPS協議。

[DeviceA] erps 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

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

[DeviceB] interface twenty-fivegige 1/0/1

[DeviceB-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceB-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceB-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceB-Twenty-FiveGigE1/0/1] port link-type trunk

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

[DeviceB-Twenty-FiveGigE1/0/1] quit

[DeviceB] interface twenty-fivegige 1/0/2

[DeviceB-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceB-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceB-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceB-Twenty-FiveGigE1/0/2] port link-type trunk

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

[DeviceB-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環1。

[DeviceB] erps ring 1

# 配置ERPS環成員端口。

[DeviceB-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceB-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 創建ERPS實例1。

[DeviceB-erps-ring1] instance 1

# 配置節點角色。

[DeviceB-erps-ring1-inst1] node-role neighbor rpl port0

# 配置控製VLAN。

[DeviceB-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceB-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceB-erps-ring1-inst1] instance enable

[DeviceB-erps-ring1-inst1] quit

[DeviceB-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceB] cfd enable

[DeviceB] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例1,該MA服務於VLAN 1。

[DeviceB] cfd service-instance 1 ma-id vlan-based md MD_A vlan 1

# 在服務實例1內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例1內的外向MEP 1002,並使能其CCM報文發送功能。

[DeviceB] cfd meplist 1001 1002 service-instance 1

[DeviceB] interface twenty-fivegige 1/0/1

[DeviceB-Twenty-FiveGigE1/0/1] cfd mep 1002 service-instance 1 outbound

[DeviceB-Twenty-FiveGigE1/0/1] cfd cc service-instance 1 mep 1002 enable

[DeviceB-Twenty-FiveGigE1/0/1] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例3,該MA服務於VLAN 3。

[DeviceB] cfd service-instance 3 ma-id vlan-based md MD_A vlan 3

# 在服務實例3內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例3內的外向MEP 3002,並使能其CCM報文發送功能。

[DeviceB] cfd meplist 3001 3002 service-instance 3

[DeviceB] interface twenty-fivegige 1/0/2

[DeviceB-Twenty-FiveGigE1/0/2] cfd mep 3002 service-instance 3 outbound

[DeviceB-Twenty-FiveGigE1/0/2] cfd cc service-instance 3 mep 3002 enable

[DeviceB-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例1中MEP 1002的CFD連續性檢測功能關聯的Track項1。

[DeviceB] track 1 cfd cc service-instance 1 mep 1002

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/1通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceB] interface twenty-fivegige 1/0/1

[DeviceB-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 1

[DeviceB-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceB-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例3中MEP 3002的CFD連續性檢測功能關聯的Track項2。

[DeviceB] track 2 cfd cc service-instance 3 mep 3002

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/2通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceB] interface twenty-fivegige 1/0/2

[DeviceB-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 2

[DeviceB-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceB-Twenty-FiveGigE1/0/2] quit

# 使能ERPS協議。

[DeviceB] erps 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

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

[DeviceC] interface twenty-fivegige 1/0/1

[DeviceC-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceC-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceC-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceC-Twenty-FiveGigE1/0/1] port link-type trunk

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

[DeviceC-Twenty-FiveGigE1/0/1] quit

[DeviceC] interface twenty-fivegige 1/0/2

[DeviceC-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceC-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceC-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceC-Twenty-FiveGigE1/0/2] port link-type trunk

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

[DeviceC-Twenty-FiveGigE1/0/2] quit

[DeviceC] interface twenty-fivegige 1/0/3

[DeviceC-Twenty-FiveGigE1/0/3] link-delay up 0

[DeviceC-Twenty-FiveGigE1/0/3] link-delay down 0

[DeviceC-Twenty-FiveGigE1/0/3] undo stp enable

[DeviceC-Twenty-FiveGigE1/0/3] port link-type trunk

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

[DeviceC-Twenty-FiveGigE1/0/3] quit

# 創建ERPS環1.

[DeviceC] erps ring 1

# 配置ERPS環成員端口。

[DeviceC-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceC-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 創建ERPS實例。

[DeviceC-erps-ring1] instance 1

# 配置控製VLAN。

[DeviceC-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceC-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceC-erps-ring1-inst1] instance enable

[DeviceC-erps-ring1-inst1] quit

[DeviceC-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceC] cfd enable

[DeviceC] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例3,該MA服務於VLAN 3。

[DeviceC] cfd service-instance 3 ma-id vlan-based md MD_A vlan 3

# 在服務實例3內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例3內的外向MEP 3001,並使能其CCM報文發送功能。

[DeviceC] cfd meplist 3001 3002 service-instance 3

[DeviceC] interface twenty-fivegige 1/0/2

[DeviceC-Twenty-FiveGigE1/0/2] cfd mep 3001 service-instance 3 outbound

[DeviceC-Twenty-FiveGigE1/0/2] cfd cc service-instance 3 mep 3001 enable

[DeviceC-Twenty-FiveGigE1/0/2] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例4,該MA服務於VLAN 4。

[DeviceC] cfd service-instance 4 ma-id vlan-based md MD_A vlan 4

# 在服務實例4內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例4內的外向MEP 4001,並使能其CCM報文發送功能。

[DeviceC] cfd meplist 4001 4002 service-instance 4

[DeviceC] interface twenty-fivegige 1/0/1

[DeviceC-Twenty-FiveGigE1/0/1] cfd mep 4001 service-instance 4 outbound

[DeviceC-Twenty-FiveGigE1/0/1] cfd cc service-instance 4 mep 4001 enable

[DeviceC-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例3中MEP 3001的CFD連續性檢測功能關聯的Track項1。

[DeviceC] track 1 cfd cc service-instance 3 mep 3001

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/2通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceC] interface twenty-fivegige 1/0/2

[DeviceC-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 1

[DeviceC-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceC-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例4中MEP 4001的CFD連續性檢測功能關聯的Track項2。

[DeviceC] track 2 cfd cc service-instance 4 mep 4001

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/1通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceC] interface twenty-fivegige 1/0/1

[DeviceC-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 2

[DeviceC-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceC-Twenty-FiveGigE1/0/1] quit

# 創建ERPS環2。

[DeviceC] erps ring 2

# 配置ERPS環成員端口。

[DeviceC-erps-ring2] port0 interface twenty-fivegige 1/0/3

# 配置當前環為子環。

[DeviceC-erps-ring2] ring-type sub-ring

# 創建ERPS實例1。

[DeviceC-erps-ring2] instance 1

# 配置節點角色。

[DeviceC-erps-ring2-inst1] node-role interconnection port0

# 配置控製VLAN。

[DeviceC-erps-ring2-inst1] control-vlan 110

# 配置保護VLAN。

[DeviceC-erps-ring2-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceC-erps-ring2-inst1] instance enable

[DeviceC-erps-ring2-inst1] quit

[DeviceC-erps-ring2] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例5,該MA服務於VLAN 5。

[DeviceC] cfd service-instance 5 ma-id vlan-based md MD_A vlan 5

# 在服務實例5內配置MEP列表,在端口Twenty-FiveGigE1/0/3上創建服務實例5內的外向MEP 5001,並使能其CCM報文發送功能。

[DeviceC] cfd meplist 5001 5002 service-instance 5

[DeviceC] interface twenty-fivegige 1/0/3

[DeviceC-Twenty-FiveGigE1/0/3] cfd mep 5001 service-instance 5 outbound

[DeviceC-Twenty-FiveGigE1/0/3] cfd cc service-instance 5 mep 5001 enable

[DeviceC-Twenty-FiveGigE1/0/3] quit

# 創建與服務實例5中MEP 5001的CFD連續性檢測功能關聯的Track項1。

[DeviceC] track 1 cfd cc service-instance 5 mep 5001

# 配置ERPS環2實例1的端口Twenty-FiveGigE1/0/3通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceC] interface twenty-fivegige 1/0/3

[DeviceC-Twenty-FiveGigE1/0/3] port erps ring 2 instance 1 track 1

[DeviceC-Twenty-FiveGigE1/0/3] undo shutdown

[DeviceC-Twenty-FiveGigE1/0/3] quit

# 使能ERPS協議。

[DeviceC] erps 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

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

[DeviceD] interface twenty-fivegige 1/0/1

[DeviceD-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceD-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceD-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceD-Twenty-FiveGigE1/0/1] port link-type trunk

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

[DeviceD-Twenty-FiveGigE1/0/1] quit

[DeviceD] interface twenty-fivegige 1/0/2

[DeviceD-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceD-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceD-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceD-Twenty-FiveGigE1/0/2] port link-type trunk

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

[DeviceD-Twenty-FiveGigE1/0/2] quit

[DeviceD] interface twenty-fivegige 1/0/3

[DeviceD-Twenty-FiveGigE1/0/3] link-delay up 0

[DeviceD-Twenty-FiveGigE1/0/3] link-delay down 0

[DeviceD-Twenty-FiveGigE1/0/3] undo stp enable

[DeviceD-Twenty-FiveGigE1/0/3] port link-type trunk

[DeviceD-Twenty-FiveGigE1/0/3] port trunk permit vlan 1 to 30

[DeviceD-Twenty-FiveGigE1/0/3] quit

# 創建ERPS環1。

[DeviceD] erps ring 1

# 配置ERPS環成員端口。

[DeviceD-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceD-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 創建ERPS實例1。

[DeviceD-erps-ring1] instance 1

# 配置控製VLAN。

[DeviceD-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceD-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceD-erps-ring1-inst1] instance enable

[DeviceD-erps-ring1-inst1] quit

[DeviceD-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceD] cfd enable

[DeviceD] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例2,該MA服務於VLAN 2。

[DeviceD] cfd service-instance 2 ma-id vlan-based md MD_A vlan 2

# 在服務實例2內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例2內的外向MEP 2002,並使能其CCM報文發送功能。

[DeviceD] cfd meplist 2001 2002 service-instance 2

[DeviceD] interface twenty-fivegige 1/0/2

[DeviceD-Twenty-FiveGigE1/0/2] cfd mep 2002 service-instance 2 outbound

[DeviceD-Twenty-FiveGigE1/0/2] cfd cc service-instance 2 mep 2002 enable

[DeviceD-Twenty-FiveGigE1/0/2] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例4,該MA服務於VLAN 4。

[DeviceD] cfd service-instance 4 ma-id vlan-based md MD_A vlan 4

# 在服務實例4內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例4內的外向MEP 4002,並使能其CCM報文發送功能。

[DeviceD] cfd meplist 4001 4002 service-instance 4

[DeviceD] interface twenty-fivegige 1/0/1

[DeviceD-Twenty-FiveGigE1/0/1] cfd mep 4002 service-instance 4 outbound

[DeviceD-Twenty-FiveGigE1/0/1] cfd cc service-instance 4 mep 4002 enable

[DeviceD-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例2中MEP 2002的CFD連續性檢測功能關聯的Track項1。

[DeviceD] track 1 cfd cc service-instance 2 mep 2002

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/2通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceD] interface twenty-fivegige 1/0/2

[DeviceD-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 1

[DeviceD-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceD-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例4中MEP 4002的CFD連續性檢測功能關聯的Track項2。

[DeviceD] track 2 cfd cc service-instance 4 mep 4002

# 配置ERPS環1實例1的端口Twenty-FiveGigE1/0/1通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceD] interface twenty-fivegige 1/0/1

[DeviceD-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 2

[DeviceD-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceD-Twenty-FiveGigE1/0/1] quit

# 創建ERPS環2。

[DeviceD] erps ring 2

# 配置ERPS環成員端口。

[DeviceD-erps-ring2] port0 interface twenty-fivegige 1/0/3

# 配置當前環為子環。

[DeviceD-erps-ring2] ring-type sub-ring

# 創建ERPS實例1。

[DeviceD-erps-ring2] instance 1

# 配置節點角色。

[DeviceD-erps-ring2-inst1] node-role interconnection port0

# 配置控製VLAN。

[DeviceD-erps-ring2-inst1] control-vlan 110

# 配置保護VLAN。

[DeviceD-erps-ring2-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceD-erps-ring2-inst1] instance enable

[DeviceD-erps-ring2-inst1] quit

[DeviceD-erps-ring2] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例6,該MA服務於VLAN 6。

[DeviceD] cfd service-instance 6 ma-id vlan-based md MD_A vlan 6

# 在服務實例6內配置MEP列表,在端口Twenty-FiveGigE1/0/3上創建服務實例6內的外向MEP 6002,並使能其CCM報文發送功能。

[DeviceD] cfd meplist 6001 6002 service-instance 6

[DeviceD] interface twenty-fivegige 1/0/3

[DeviceD-Twenty-FiveGigE1/0/3] cfd mep 6002 service-instance 6 outbound

[DeviceD-Twenty-FiveGigE1/0/3] cfd cc service-instance 6 mep 6002 enable

[DeviceD-Twenty-FiveGigE1/0/3] quit

# 創建與服務實例6中MEP 6002的CFD連續性檢測功能關聯的Track項3。

[DeviceD] track 3 cfd cc service-instance 6 mep 6002

# 配置ERPS環2實例1的端口Twenty-FiveGigE1/0/3通過Track項3與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceD] interface twenty-fivegige 1/0/3

[DeviceD-Twenty-FiveGigE1/0/3] port erps ring 2 instance 1 track 3

[DeviceD-Twenty-FiveGigE1/0/3] undo shutdown

[DeviceD-Twenty-FiveGigE1/0/3] quit

# 使能ERPS協議。

[DeviceD] erps 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

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

[DeviceE] interface twenty-fivegige 1/0/1

[DeviceE-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceE-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceE-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceE-Twenty-FiveGigE1/0/1] port link-type trunk

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

[DeviceE-Twenty-FiveGigE1/0/1] quit

[DeviceE] interface twenty-fivegige 1/0/2

[DeviceE-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceE-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceE-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceE-Twenty-FiveGigE1/0/2] port link-type trunk

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

[DeviceE-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環2。

[DeviceE] erps ring 2

# 配置ERPS環成員端口。

[DeviceE-erps-ring2] port0 interface twenty-fivegige 1/0/1

[DeviceE-erps-ring2] port1 interface twenty-fivegige 1/0/2

# 配置當前環為子環。

[DeviceE-erps-ring2] ring-type sub-ring

# 創建ERPS實例1。

[DeviceE-erps-ring2] instance 1

# 配置節點角色。

[DeviceE-erps-ring2-inst1] node-role owner rpl port0

# 配置控製VLAN。

[DeviceE-erps-ring2-inst1] control-vlan 110

# 配置保護VLAN。

[DeviceE-erps-ring2-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceE-erps-ring2-inst1] instance enable

[DeviceE-erps-ring2-inst1] quit

[DeviceE-erps-ring2] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceE] cfd enable

[DeviceE] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例6,該MA服務於VLAN 6。

[DeviceE] cfd service-instance 6 ma-id vlan-based md MD_A vlan 6

# 在服務實例6內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例1內的外向MEP 6001,並使能其CCM報文發送功能。

[DeviceE] cfd meplist 6001 6002 service-instance 6

[DeviceE] interface twenty-fivegige 1/0/2

[DeviceE-Twenty-FiveGigE1/0/2] cfd mep 6001 service-instance 6 outbound

[DeviceE-Twenty-FiveGigE1/0/2] cfd cc service-instance 6 mep 6001 enable

[DeviceE-Twenty-FiveGigE1/0/2] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例7,該MA服務於VLAN 7。

[DeviceE] cfd service-instance 7 ma-id vlan-based md MD_A vlan 7

# 在服務實例7內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例7內的外向MEP 7001,並使能其CCM報文發送功能。

[DeviceE] cfd meplist 7001 7002 service-instance 7

[DeviceE] interface twenty-fivegige 1/0/1

[DeviceE-Twenty-FiveGigE1/0/1] cfd mep 7001 service-instance 7 outbound

[DeviceE-Twenty-FiveGigE1/0/1] cfd cc service-instance 7 mep 7001 enable

[DeviceE-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例6中MEP 6001的CFD連續性檢測功能關聯的Track項1。

[DeviceE] track 1 cfd cc service-instance 6 mep 6001

# 配置ERPS環2實例1的端口Twenty-FiveGigE1/0/2通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceE] interface twenty-fivegige 1/0/2

[DeviceE-Twenty-FiveGigE1/0/2] port erps ring 2 instance 1 track 1

[DeviceE-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceE-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例7中MEP 7001的CFD連續性檢測功能關聯的Track項2。

[DeviceE] track 2 cfd cc service-instance 7 mep 7001

# 配置ERPS環2實例1的端口Twenty-FiveGigE1/0/1通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceE] interface twenty-fivegige 1/0/1

[DeviceE-Twenty-FiveGigE1/0/1] port erps ring 2 instance 1 track 2

[DeviceE-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceE-Twenty-FiveGigE1/0/1] quit

# 使能ERPS協議。

[DeviceE] erps enable

(6)     配置Device F

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

<DeviceF> system-view

[DeviceF] vlan 1 to 30

[DeviceF] stp region-configuration

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

[DeviceF-mst-region] active region-configuration

[DeviceF-mst-region] quit

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

[DeviceF] interface twenty-fivegige 1/0/1

[DeviceF-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceF-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceF-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceF-Twenty-FiveGigE1/0/1] port link-type trunk

[DeviceF-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceF-Twenty-FiveGigE1/0/1] quit

[DeviceF] interface twenty-fivegige 1/0/2

[DeviceF-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceF-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceF-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceF-Twenty-FiveGigE1/0/2] port link-type trunk

[DeviceF-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceF-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環2。

[DeviceF] erps ring 2

# 配置ERPS環成員端口。

[DeviceF-erps-ring2] port0 interface twenty-fivegige 1/0/1

[DeviceF-erps-ring2] port1 interface twenty-fivegige 1/0/2

# 配置當前環為子環。

[DeviceF-erps-ring2] ring-type sub-ring

# 創建ERPS實例1。

[DeviceF-erps-ring2] instance 1

# 配置節點角色。

[DeviceF-erps-ring2-inst1] node-role neighbor rpl port0

# 配置控製VLAN。

[DeviceF-erps-ring2-inst1] control-vlan 110

# 配置保護VLAN。

[DeviceF-erps-ring2-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceF-erps-ring2-inst1] instance enable

[DeviceF-erps-ring2-inst1] quit

[DeviceF-erps-ring2] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceF] cfd enable

[DeviceF] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例5,該MA服務於VLAN 5。

[DeviceF] cfd service-instance 5 ma-id vlan-based md MD_A vlan 5

# 在服務實例5內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例1內的外向MEP 5002,並使能其CCM報文發送功能。

[DeviceF] cfd meplist 5001 5002 service-instance 5

[DeviceF] interface twenty-fivegige 1/0/2

[DeviceF-Twenty-FiveGigE1/0/2] cfd mep 5002 service-instance 5 outbound

[DeviceF-Twenty-FiveGigE1/0/2] cfd cc service-instance 5 mep 5002 enable

[DeviceF-Twenty-FiveGigE1/0/2] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例7,該MA服務於VLAN 7。

[DeviceF] cfd service-instance 7 ma-id vlan-based md MD_A vlan 7

# 在服務實例7內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例7內的外向MEP 7002,並使能其CCM報文發送功能。

[DeviceF] cfd meplist 7001 7002 service-instance 7

[DeviceF] interface twenty-fivegige 1/0/1

[DeviceF-Twenty-FiveGigE1/0/1] cfd mep 7002 service-instance 7 outbound

[DeviceF-Twenty-FiveGigE1/0/1] cfd cc service-instance 7 mep 7002 enable

[DeviceF-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例5中MEP 5002的CFD連續性檢測功能關聯的Track項1。

[DeviceF] track 1 cfd cc service-instance 5 mep 5002

# 配置ERPS環2實例1的端口Twenty-FiveGigE1/0/2通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceF] interface twenty-fivegige 1/0/2

[DeviceF-Twenty-FiveGigE1/0/2] port erps ring 2 instance 1 track 1

[DeviceF-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceF-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例7中MEP 7002的CFD連續性檢測功能關聯的Track項2。

[DeviceF] track 2 cfd cc service-instance 7 mep 7002

# 配置ERPS環2實例1的端口Twenty-FiveGigE1/0/1通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceF] interface twenty-fivegige 1/0/1

[DeviceF-Twenty-FiveGigE1/0/1] port erps ring 2 instance 1 track 2

[DeviceF-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceF-Twenty-FiveGigE1/0/1] quit

# 使能ERPS協議。

[DeviceF] erps enable

4. 驗證配置

# Device A上的ERPS環1的運行情況。

[Device A] display erps detail ring 1

 Ring ID               : 1

 Port0                 : Twenty-FiveGigE1/0/1

 Port1                 : Twenty-FiveGigE1/0/2

 Subring               : Yes

 Default MAC           : No

 

 Instance ID           : 1

 Node role             : Owner

 Node state            : Idle

 Connect(ring/instance): -

 Control VLAN          : 100

 Protected VLAN        : Reference-instance 1

 Guard timer           : 500 ms

 Hold-off timer        : 0 ms

 WTR timer             : 5 min

 Revertive operation   : Revertive

 Enable status         : Yes, Active status : Yes

 R-APS level           : 7

 Port                  PortRole                PortStatus

 ----------------------------------------------------------------------------

 Port0                 RPL                     Block

 Port1                 Non-RPL                 Up

本節點為Owner節點,ERPS環處於Idle狀態,RPL端口阻塞,非RPL端口放開。

1.18.3  單環多實例負載分擔配置舉例

1. 組網需求

為了更高效得利用網絡資源,使環網上不同鏈路的流量負載比較均勻,可以通過在環網上各節點配置ERPS協議,使得不同的VLAN流量走不同的鏈路。

·     Device A、Device B、Device C和Device D構成ERPS環1,在該環上配置兩個實例。

·     Instance 1的Owner節點為Device A,RPL為Device A和Device B之間的鏈路,控製VLAN為VLAN 100,保護VLAN為VLAN 1~30。

·     Instance 2的Owner節點為Device C,其RPL為Device C和Device D之間的鏈路,控製VLAN為VLAN 110,保護VLAN為VLAN 31~60。

2. 組網圖

圖1-14 單環多實例負載分擔配置組網圖

3. 配置步驟

(1)     配置Device A

# 創建VLAN 1~60,將VLAN 1~30映射到MSTI 1上, VLAN 31~60映射到MSTI 2上,並激活MST域的配置。

<DeviceA> system-view

[DeviceA] vlan 1 to 60

[DeviceA] stp region-configuration

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

[DeviceA-mst-region] instance 2 vlan 31 to 60

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

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

[DeviceA] interface twenty-fivegige 1/0/1

[DeviceA-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceA-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceA-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceA-Twenty-FiveGigE1/0/1] port link-type trunk

[DeviceA-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 60

[DeviceA-Twenty-FiveGigE1/0/1] quit

[DeviceA] interface twenty-fivegige 1/0/2

[DeviceA-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceA-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceA-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceA-Twenty-FiveGigE1/0/2] port link-type trunk

[DeviceA-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 60

[DeviceA-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環1。

[DeviceA] erps ring 1

# 配置ERPS環成員端口。

[DeviceA-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceA-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 創建ERPS實例1。

[DeviceA-erps-ring1] instance 1

# 配置節點角色。

[DeviceA-erps-ring1-inst1] node-role owner rpl port0

# 配置控製VLAN。

[DeviceA-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceA-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceA-erps-ring1-inst1] instance enable

[DeviceA-erps-ring1-inst1] quit

[DeviceA-erps-ring1] quit

# 創建ERPS實例2。

[DeviceA-erps-ring1] instance 2

# 配置控製VLAN。

[DeviceA-erps-ring1-inst2] control-vlan 110

# 配置保護VLAN。

[DeviceA-erps-ring1-inst2] protected-vlan reference-instance 2

# 實例2使能ERPS協議。

[DeviceA-erps-ring1-inst2] instance enable

[DeviceA-erps-ring1-inst2] quit

[DeviceA-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceA] cfd enable

[DeviceA] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例1,該MA服務於VLAN 1。

[DeviceA] cfd service-instance 1 ma-id vlan-based md MD_A vlan 1

# 在服務實例1內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例1內的外向MEP 1001,並使能其CCM報文發送功能。

[DeviceA] cfd meplist 1001 1002 service-instance 1

[DeviceA] interface twenty-fivegige 1/0/1

[DeviceA-Twenty-FiveGigE1/0/1] cfd mep 1001 service-instance 1 outbound

[DeviceA-Twenty-FiveGigE1/0/1] cfd cc service-instance 1 mep 1001 enable

[DeviceA-Twenty-FiveGigE1/0/1] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例2,該MA服務於VLAN 2。

[DeviceA] cfd service-instance 2 ma-id vlan-based md MD_A vlan 2

# 在服務實例2內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例2內的外向MEP 2001,並使能其CCM報文發送功能。

[DeviceA] cfd meplist 2001 2002 service-instance 2

[DeviceA] interface twenty-fivegige 1/0/2

[DeviceA-Twenty-FiveGigE1/0/2] cfd mep 2001 service-instance 2 outbound

[DeviceA-Twenty-FiveGigE1/0/2] cfd cc service-instance 2 mep 2001 enable

[DeviceA-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例1中MEP 1001的CFD連續性檢測功能關聯的Track項1。

[DeviceA] track 1 cfd cc service-instance 1 mep 1001

# 配置ERPS環1實例1和實例2的端口Twenty-FiveGigE1/0/1通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceA] interface twenty-fivegige 1/0/1

[DeviceA-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 1

[DeviceA-Twenty-FiveGigE1/0/1] port erps ring 1 instance 2 track 1

[DeviceA-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceA-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例2中MEP 2001的CFD連續性檢測功能關聯的Track項2。

[DeviceA] track 2 cfd cc service-instance 2 mep 2001

# 配置ERPS環1實例1和實例2的端口Twenty-FiveGigE1/0/2通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceA] interface twenty-fivegige 1/0/2

[DeviceA-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 2

[DeviceA-Twenty-FiveGigE1/0/2] port erps ring 1 instance 2 track 2

[DeviceA-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceA-Twenty-FiveGigE1/0/2] quit

# 使能ERPS協議。

[DeviceA] erps enable

(2)     配置Device B

#創建VLAN 1~60,將VLAN 1~30映射到MSTI 1上, VLAN 31~60映射到MSTI 2上,並激活MST域的配置。

<DeviceB> system-view

[DeviceB] vlan 1 to 60

[DeviceB] stp region-configuration

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

[DeviceB-mst-region] instance 2 vlan 31 to 60

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

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

[DeviceB] interface twenty-fivegige 1/0/1

[DeviceB-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceB-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceB-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceB-Twenty-FiveGigE1/0/1] port link-type trunk

[DeviceB-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 60

[DeviceB-Twenty-FiveGigE1/0/1] quit

[DeviceB] interface twenty-fivegige 1/0/2

[DeviceB-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceB-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceB-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceB-Twenty-FiveGigE1/0/2] port link-type trunk

[DeviceB-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 60

[DeviceB-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環1

[DeviceB] erps ring 1

# 配置ERPS環成員端口。

[DeviceB-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceB-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 創建ERPS實例1。

[DeviceB-erps-ring1] instance 1

# 配置節點角色。

[DeviceB-erps-ring1-inst1] node-role neighbor rpl port0

# 配置控製VLAN。

[DeviceB-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceB-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceB-erps-ring1-inst1] instance enable

[DeviceB-erps-ring1-inst1] quit

[DeviceB-erps-ring1] quit

# 創建ERPS實例2。

[DeviceB-erps-ring1] instance 2

# 配置控製VLAN。

[DeviceB-erps-ring1-inst2] control-vlan 110

# 配置保護VLAN。

[DeviceB-erps-ring1-inst2] protected-vlan reference-instance 2

# 實例2使能ERPS協議。

[DeviceB-erps-ring1-inst2] instance enable

[DeviceB-erps-ring1-inst2] quit

[DeviceB-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceB] cfd enable

[DeviceB] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例1,該MA服務於VLAN 1。

[DeviceB] cfd service-instance 1 ma-id vlan-based md MD_A vlan 1

# 在服務實例1內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例1內的外向MEP 1002,並使能其CCM報文發送功能。

[DeviceB] cfd meplist 1001 1002 service-instance 1

[DeviceB] interface twenty-fivegige 1/0/1

[DeviceB-Twenty-FiveGigE1/0/1] cfd mep 1002 service-instance 1 outbound

[DeviceB-Twenty-FiveGigE1/0/1] cfd cc service-instance 1 mep 1002 enable

[DeviceB-Twenty-FiveGigE1/0/1] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例3,該MA服務於VLAN 3。

[DeviceB] cfd service-instance 3 ma-id vlan-based md MD_A vlan 3

# 在服務實例3內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例3內的外向MEP 3002,並使能其CCM報文發送功能。

[DeviceB] cfd meplist 3001 3002 service-instance 3

[DeviceB] interface twenty-fivegige 1/0/2

[DeviceB-Twenty-FiveGigE1/0/2] cfd mep 3002 service-instance 3 outbound

[DeviceB-Twenty-FiveGigE1/0/2] cfd cc service-instance 3 mep 3002 enable

[DeviceB-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例1中MEP 1002的CFD連續性檢測功能關聯的Track項1。

[DeviceB] track 1 cfd cc service-instance 1 mep 1002

# 配置ERPS環1實例1和實例2的端口Twenty-FiveGigE1/0/1通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceB] interface twenty-fivegige 1/0/1

[DeviceB-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 1

[DeviceB-Twenty-FiveGigE1/0/1] port erps ring 1 instance 2 track 1

[DeviceB-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceB-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例3中MEP 3002的CFD連續性檢測功能關聯的Track項2。

[DeviceB] track 2 cfd cc service-instance 3 mep 3002

# 配置ERPS環1實例1和實例2的端口Twenty-FiveGigE1/0/2通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceB] interface twenty-fivegige 1/0/2

[DeviceB-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 2

[DeviceB-Twenty-FiveGigE1/0/2] port erps ring 1 instance 2 track 2

[DeviceB-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceB-Twenty-FiveGigE1/0/2] quit

# 使能ERPS協議。

[DeviceB] erps enable

(3)     配置Device C

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

<DeviceC> system-view

[DeviceC] vlan 1 to 60

[DeviceC] stp region-configuration

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

[DeviceC-mst-region] instance 2 vlan 31 to 60

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

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

[DeviceC] interface twenty-fivegige 1/0/1

[DeviceC-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceC-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceC-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceC-Twenty-FiveGigE1/0/1] port link-type trunk

[DeviceC-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 60

[DeviceC-Twenty-FiveGigE1/0/1] quit

[DeviceC] interface twenty-fivegige 1/0/2

[DeviceC-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceC-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceC-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceC-Twenty-FiveGigE1/0/2] port link-type trunk

[DeviceC-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 60

[DeviceC-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環1。

[DeviceC] erps ring 1

# 配置ERPS環成員端口。

[DeviceC-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceC-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 創建ERPS實例1。

[DeviceC-erps-ring1] instance 1

# 配置控製VLAN。

[DeviceC-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceC-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceC-erps-ring1-inst1] instance enable

[DeviceC-erps-ring1-inst1] quit

[DeviceC-erps-ring1] quit

# 創建ERPS實例2。

[DeviceC-erps-ring1] instance 2

# 配置節點角色。

[DeviceC-erps-ring1-inst2] node-role owner rpl port0

# 配置控製VLAN。

[DeviceC-erps-ring1-inst2] control-vlan 110

# 配置保護VLAN。

[DeviceC-erps-ring1-inst2] protected-vlan reference-instance 2

# 實例2使能ERPS協議。

[DeviceC-erps-ring1-inst2] instance enable

[DeviceC-erps-ring1-inst2] quit

[DeviceC-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceC] cfd enable

[DeviceC] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例3,該MA服務於VLAN 3。

[DeviceC] cfd service-instance 3 ma-id vlan-based md MD_A vlan 3

# 在服務實例3內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例3內的外向MEP 3001,並使能其CCM報文發送功能。

[DeviceC] cfd meplist 3001 3002 service-instance 3

[DeviceC] interface twenty-fivegige 1/0/2

[DeviceC-Twenty-FiveGigE1/0/2] cfd mep 3001 service-instance 3 outbound

[DeviceC-Twenty-FiveGigE1/0/2] cfd cc service-instance 3 mep 3001 enable

[DeviceC-Twenty-FiveGigE1/0/2] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例4,該MA服務於VLAN 4。

[DeviceC] cfd service-instance 4 ma-id vlan-based md MD_A vlan 4

# 在服務實例4內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例4內的外向MEP 4001,並使能其CCM報文發送功能。

[DeviceC] cfd meplist 4001 4002 service-instance 4

[DeviceC] interface twenty-fivegige 1/0/1

[DeviceC-Twenty-FiveGigE1/0/1] cfd mep 4001 service-instance 4 outbound

[DeviceC-Twenty-FiveGigE1/0/1] cfd cc service-instance 4 mep 4001 enable

[DeviceC-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例3中MEP 3001的CFD連續性檢測功能關聯的Track項1。

[DeviceC] track 1 cfd cc service-instance 3 mep 3001

# 配置ERPS環1實例1和實例2的端口Twenty-FiveGigE1/0/2通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceC] interface twenty-fivegige 1/0/2

[DeviceC-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 1

[DeviceC-Twenty-FiveGigE1/0/2] port erps ring 1 instance 2 track 1

[DeviceC-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceC-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例4中MEP 4001的CFD連續性檢測功能關聯的Track項2。

[DeviceC] track 2 cfd cc service-instance 4 mep 4001

# 配置ERPS環1實例1和實例2的端口Twenty-FiveGigE1/0/1通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceC] interface twenty-fivegige 1/0/1

[DeviceC-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 2

[DeviceC-Twenty-FiveGigE1/0/1] port erps ring 1 instance 2 track 2

[DeviceC-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceC-Twenty-FiveGigE1/0/1] quit

# 使能ERPS協議。

[DeviceC] erps enable

(4)     配置Device D

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

<DeviceD> system-view

[DeviceD] vlan 1 to 60

[DeviceD] stp region-configuration

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

[DeviceD-mst-region] instance 2 vlan 31 to 60

[DeviceD-mst-region] active region-configuration

[DeviceD-mst-region] quit

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

[DeviceD] interface twenty-fivegige 1/0/1

[DeviceD-Twenty-FiveGigE1/0/1] link-delay up 0

[DeviceD-Twenty-FiveGigE1/0/1] link-delay down 0

[DeviceD-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceD-Twenty-FiveGigE1/0/1] port link-type trunk

[DeviceD-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 60

[DeviceD-Twenty-FiveGigE1/0/1] quit

[DeviceD] interface twenty-fivegige 1/0/2

[DeviceD-Twenty-FiveGigE1/0/2] link-delay up 0

[DeviceD-Twenty-FiveGigE1/0/2] link-delay down 0

[DeviceD-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceD-Twenty-FiveGigE1/0/2] port link-type trunk

[DeviceD-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 60

[DeviceD-Twenty-FiveGigE1/0/2] quit

# 創建ERPS環1。

[DeviceD] erps ring 1

# 配置ERPS環成員端口。

[DeviceD-erps-ring1] port0 interface twenty-fivegige 1/0/1

[DeviceD-erps-ring1] port1 interface twenty-fivegige 1/0/2

# 創建ERPS實例1。

[DeviceD-erps-ring1] instance 1

# 配置控製VLAN。

[DeviceD-erps-ring1-inst1] control-vlan 100

# 配置保護VLAN。

[DeviceD-erps-ring1-inst1] protected-vlan reference-instance 1

# 實例1使能ERPS協議。

[DeviceD-erps-ring1-inst1] instance enable

[DeviceD-erps-ring1-inst1] quit

# 創建ERPS實例2。

[DeviceD-erps-ring1] instance 2

# 配置節點角色。

[DeviceD-erps-ring1-inst2] node-role neighbor rpl port0

# 配置控製VLAN。

[DeviceD-erps-ring1-inst2] control-vlan 110

# 配置保護VLAN。

[DeviceD-erps-ring1-inst2] protected-vlan reference-instance 2

# 實例2使能ERPS協議。

[DeviceD-erps-ring1-inst2] instance enable

[DeviceD-erps-ring1-inst2] quit

[DeviceD-erps-ring1] quit

# 使能CFD功能,並創建級別為5的MD MD_A。

[DeviceD] cfd enable

[DeviceD] cfd md MD_A level 5

# 在MD_A中創建以VLAN編號為MA名稱的服務實例2,該MA服務於VLAN 2。

[DeviceD] cfd service-instance 2 ma-id vlan-based md MD_A vlan 2

# 在服務實例2內配置MEP列表,在端口Twenty-FiveGigE1/0/2上創建服務實例2內的外向MEP 2002,並使能其CCM報文發送功能。

[DeviceD] cfd meplist 2001 2002 service-instance 2

[DeviceD] interface twenty-fivegige 1/0/2

[DeviceD-Twenty-FiveGigE1/0/2] cfd mep 2002 service-instance 2 outbound

[DeviceD-Twenty-FiveGigE1/0/2] cfd cc service-instance 2 mep 2002 enable

[DeviceD-Twenty-FiveGigE1/0/2] quit

# 在MD_A中創建以VLAN編號為MA名稱的服務實例4,該MA服務於VLAN 4。

[DeviceD] cfd service-instance 4 ma-id vlan-based md MD_A vlan 4

# 在服務實例4內配置MEP列表,在端口Twenty-FiveGigE1/0/1上創建服務實例4內的外向MEP 4002,並使能其CCM報文發送功能。

[DeviceD] cfd meplist 4001 4002 service-instance 4

[DeviceD] interface twenty-fivegige 1/0/1

[DeviceD-Twenty-FiveGigE1/0/1] cfd mep 4002 service-instance 4 outbound

[DeviceD-Twenty-FiveGigE1/0/1] cfd cc service-instance 4 mep 4002 enable

[DeviceD-Twenty-FiveGigE1/0/1] quit

# 創建與服務實例2中MEP 2002的CFD連續性檢測功能關聯的Track項1。

[DeviceD] track 1 cfd cc service-instance 2 mep 2002

# 配置ERPS環1實例1和實例2的端口Twenty-FiveGigE1/0/2通過Track項1與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceD] interface twenty-fivegige 1/0/2

[DeviceD-Twenty-FiveGigE1/0/2] port erps ring 1 instance 1 track 1

[DeviceD-Twenty-FiveGigE1/0/2] port erps ring 1 instance 2 track 1

[DeviceD-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceD-Twenty-FiveGigE1/0/2] quit

# 創建與服務實例4中MEP 4002的CFD連續性檢測功能關聯的Track項2。

[DeviceD] track 2 cfd cc service-instance 4 mep 4002

# 配置ERPS環1實例1和實例2的端口Twenty-FiveGigE1/0/1通過Track項2與CFD的連續性檢測功能聯動,並重新開啟該端口。

[DeviceD] interface twenty-fivegige 1/0/1

[DeviceD-Twenty-FiveGigE1/0/1] port erps ring 1 instance 1 track 2

[DeviceD-Twenty-FiveGigE1/0/1] port erps ring 1 instance 2 track 2

[DeviceD-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceD-Twenty-FiveGigE1/0/1] quit

# 使能ERPS協議。

[DeviceD] erps enable

4. 驗證配置

# Device A上的ERPS環1的運行情況。

[Device A] display erps detail ring 1

 Ring ID               : 1

 Port0                 : Twenty-FiveGigE1/0/1

 Port1                 : Twenty-FiveGigE1/0/2

 Subring               : No

 Default MAC           : No

 

 Instance ID           : 1

 Node role             : Owner

 Node state            : Idle

 Connect(ring/instance): -

 Control VLAN          : 100

 Protected VLAN        : Reference-instance 1

 Guard timer           : 500 ms

 Hold-off timer        : 0 ms

 WTR timer             : 5 min

 Revertive operation   : Revertive

 Enable status         : Yes, Active status : Yes

 R-APS level           : 7

 Port                  PortRole                PortStatus

 ----------------------------------------------------------------------------

 Port0                 RPL                     Block

 Port1                 Non-RPL                 Up

 

 Instance ID           : 2

 Node role             : Normal

 Node state            : Idle

 Connect(ring/instance): -

 Control VLAN          : 100

 Protected VLAN        : Reference-instance 2

 Guard timer           : 500 ms

 Hold-off timer        : 0 ms

 WTR timer             : 5 min

 Revertive operation   : Revertive

 Enable status         : Yes, Active status : Yes

 R-APS level           : 7

 Port                  PortRole                PortStatus

 ----------------------------------------------------------------------------

 Port0                 Non-RPL                 Up

 Port1                 Non-RPL                 Up

本節點在Instance 1中為Owner節點,ERPS環處於Idle狀態,RPL端口阻塞,非RPL端口放開。在Instance 2中為Normal節點,ERPS環處於Idle狀態,非RPL端口放開。

1.19  ERPS常見故障處理

1.19.1  Owner節點收不到故障節點發送的SF報文

1. 故障現象

故障節點和Owner節點間鏈路正常,但Owner節點收不到故障節點發送的SF報文,RPL端口保持阻塞。

2. 故障分析

可能的原因有:

·     ERPS環上有節點沒有使能ERPS協議。

·     在同一ERPS環上的節點的環ID或相同實例的控製VLAN ID不同。

·     ERPS環上的端口處於非正常狀態。

3. 處理過程

·     使用display erps命令查看各個節點是否都配置並使能了ERPS協議。如果沒有則使用erps enable命令使能ERPS協議。

·     使用display erps detail命令查看各個環各個節點的端口鏈路狀態,如果端口處於關閉狀態,則先打開端口。

·     使用debugging erps命令,在各個節點上打開調試信息開關,並查看各個節點報文以及狀態是否倒換正常。

·     配置同一ERPS環上的節點的環ID或相同實例的控製VLAN ID相同。

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

BOB登陆
官網
聯係我們