您的当前位置:首页正文

ERPS配置举例

2020-05-18 来源:步旅网
配置ERPS单环多实例示例

以ERPS单环多实例组网为例,重点介绍如何配置ERPS功能,帮助您配置ERPS基本功能。

组网需求

以太网交换网络中为了进行链路备份,提高网络可靠性,通常会使用冗余链路。但是使用冗余链路会在交换网络上产生环路,导致广播风暴以及MAC地址表不稳定等故障现象,从而导致用户通信质量较差,甚至通信中断。

为了解决使用冗余链路引起的环路问题,可以在组成环网的设备上部署ERPS协议,ERPS协议是ITU-T定义的一种二层破环协议标准,且收敛速度快,可以满足收敛速度达到电信级可靠性要求。如图1所示,以部署多实例的ERPS环为例,LSW1~LSW4组成环形组网,位于汇聚层,汇聚环完成业务的二层汇聚外,同时接入上级三层网络进行业务处理。汇聚环运行ERPS协议,提供汇聚环的二层冗余保护倒换功能。在LSW1~LSW4上配置两个ERPS实例ERPS环1和ERPS环2,ERPS环1阻塞LSW2的P1端口,ERPS环2阻塞LSW1的P2端口,实现负载分担并提供链路备份。

图1 ERPS多实例组网图

配置思路

采用如下的思路配置ERPS环:

1. 配置加入ERPS环的所有端口类型为Trunk型。 2. 创建ERPS环,并配置控制VLAN和保护实例。 3. 将二层端口加入ERPS环并配置端口角色。

4. 配置ERPS环的Guard Timer和WTR Timer定时器。 5. 配置LSW1~LSW4二层转发功能。

数据准备

为完成此配置例,需准备如下的数据:   

ERPS环ID、控制VLAN ID和保护实例ID。 Guard Timer和WTR Timer定时器大小。 二层转发VLAN ID。

操作步骤

1. 配置加入ERPS环的所有端口类型为Trunk型。

# 配置LSW1。 system-view [HUAWEI] sysname LSW1

[LSW1] interface gigabitethernet 0/0/1

[LSW1-GigabitEthernet0/0/1] port link-type trunk [LSW1-GigabitEthernet0/0/1] quit [LSW1] interface gigabitethernet 0/0/2

[LSW1-GigabitEthernet0/0/2] port link-type trunk [LSW1-GigabitEthernet0/0/2] quit # 配置LSW2。 system-view [HUAWEI] sysname LSW2

[LSW2] interface gigabitethernet 0/0/1

[LSW2-GigabitEthernet0/0/1] port link-type trunk [LSW2-GigabitEthernet0/0/1] quit [LSW2] interface gigabitethernet 0/0/2

[LSW2-GigabitEthernet0/0/2] port link-type trunk [LSW2-GigabitEthernet0/0/2] quit # 配置LSW3。 system-view [HUAWEI] sysname LSW3

[LSW3] interface gigabitethernet 0/0/1

[LSW3-GigabitEthernet0/0/1] port link-type trunk [LSW3-GigabitEthernet0/0/1] quit [LSW3] interface gigabitethernet 0/0/2

[LSW3-GigabitEthernet0/0/2] port link-type trunk [LSW3-GigabitEthernet0/0/2] quit # 配置LSW4。 system-view [HUAWEI] sysname LSW4

[LSW4] interface gigabitethernet 0/0/1

[LSW4-GigabitEthernet0/0/1] port link-type trunk [LSW4-GigabitEthernet0/0/1] quit [LSW4] interface gigabitethernet 0/0/2

[LSW4-GigabitEthernet0/0/2] port link-type trunk [LSW4-GigabitEthernet0/0/2] quit

2. 创建ERPS环1、ERPS环2并配置两个ERPS环的保护实例,配置ERPS环1的控制VLAN ID

为10,ERPS环2的控制VLAN ID为20,ERPS环1传递VLAN100~VLAN200的数据报文,ERPS环2传递VLAN300~VLAN400的数据报文。 # 配置LSW1。 [LSW1] erps ring 1

[LSW1-erps-ring1] control-vlan 10 [LSW1-erps-ring1] protected-instance 1 [LSW1-erps-ring1] quit

[LSW1] stp region-configuration

[LSW1-mst-region] instance 1 vlan 10 100 to 200 [LSW1-mst-region] active region-configuration [LSW1-mst-region] quit [LSW1] erps ring 2

[LSW1-erps-ring2] control-vlan 20 [LSW1-erps-ring2] protected-instance 2 [LSW1-erps-ring2] quit

[LSW1] stp region-configuration

[LSW1-mst-region] instance 2 vlan 20 300 to 400 [LSW1-mst-region] active region-configuration [LSW1-mst-region] quit # 配置LSW2。 [LSW2] erps ring 1

[LSW2-erps-ring1] control-vlan 10 [LSW2-erps-ring1] protected-instance 1 [LSW2-erps-ring1] quit

[LSW2] stp region-configuration

[LSW2-mst-region] instance 1 vlan 10 100 to 200 [LSW2-mst-region] active region-configuration [LSW2-mst-region] quit [LSW2] erps ring 2

[LSW2-erps-ring2] control-vlan 20 [LSW2-erps-ring2] protected-instance 2 [LSW2-erps-ring2] quit

[LSW2] stp region-configuration

[LSW2-mst-region] instance 2 vlan 20 300 to 400 [LSW2-mst-region] active region-configuration [LSW2-mst-region] quit # 配置LSW3。 [LSW3] erps ring 1

[LSW3-erps-ring1] control-vlan 10 [LSW3-erps-ring1] protected-instance 1 [LSW3-erps-ring1] quit

[LSW3] stp region-configuration

[LSW3-mst-region] instance 1 vlan 10 100 to 200 [LSW3-mst-region] active region-configuration [LSW3-mst-region] quit [LSW3] erps ring 2

[LSW3-erps-ring2] control-vlan 20 [LSW3-erps-ring2] protected-instance 2 [LSW3-erps-ring2] quit

[LSW3] stp region-configuration

[LSW3-mst-region] instance 2 vlan 20 300 to 400 [LSW3-mst-region] active region-configuration [LSW3-mst-region] quit # 配置LSW4。 [LSW4] erps ring 1

[LSW4-erps-ring1] control-vlan 10 [LSW4-erps-ring1] protected-instance 1 [LSW4-erps-ring1] quit

[LSW4] stp region-configuration

[LSW4-mst-region] instance 1 vlan 10 100 to 200 [LSW4-mst-region] active region-configuration [LSW4-mst-region] quit [LSW4] erps ring 2

[LSW4-erps-ring2] control-vlan 20 [LSW4-erps-ring2] protected-instance 2 [LSW4-erps-ring2] quit

[LSW4] stp region-configuration

[LSW4-mst-region] instance 2 vlan 20 300 to 400 [LSW4-mst-region] active region-configuration [LSW4-mst-region] quit

3. 将二层端口加入ERPS环并配置端口角色,分别将LSW1的端口0/0/1和LSW2的端口0/0/2

配置为RPL owner。 # 配置LSW1。

[LSW1] interface gigabitethernet 0/0/1 [LSW1-GigabitEthernet0/0/1] stp disable [LSW1-GigabitEthernet0/0/1] erps ring 1

[LSW1-GigabitEthernet0/0/1] erps ring 2 rpl owner [LSW1-GigabitEthernet0/0/1] quit [LSW1] interface gigabitethernet 0/0/2 [LSW1-GigabitEthernet0/0/2] stp disable [LSW1-GigabitEthernet0/0/2] erps ring 1 [LSW1-GigabitEthernet0/0/2] erps ring 2 [LSW1-GigabitEthernet0/0/2] quit # 配置LSW2。

[LSW2] interface gigabitethernet 0/0/1 [LSW2-GigabitEthernet0/0/1] stp disable [LSW2-GigabitEthernet0/0/1] erps ring 1 [LSW1-GigabitEthernet0/0/1] erps ring 2 [LSW2-GigabitEthernet0/0/1] quit [LSW2] interface gigabitethernet 0/0/2 [LSW2-GigabitEthernet0/0/2] stp disable

[LSW2-GigabitEthernet0/0/2] erps ring 1 rpl owner (被阻塞的端口) [LSW1-GigabitEthernet0/0/2] erps ring 2 [LSW2-GigabitEthernet0/0/2] quit # 配置LSW3。

[LSW3] interface gigabitethernet 0/0/1 [LSW3-GigabitEthernet0/0/1] stp disable [LSW3-GigabitEthernet0/0/1] erps ring 1 [LSW3-GigabitEthernet0/0/1] erps ring 2 [LSW3-GigabitEthernet0/0/1] quit [LSW3] interface gigabitethernet 0/0/2 [LSW3-GigabitEthernet0/0/2] stp disable [LSW3-GigabitEthernet0/0/2] erps ring 1 [LSW3-GigabitEthernet0/0/2] erps ring 2 [LSW3-GigabitEthernet0/0/2] quit # 配置LSW4。

[LSW4] interface gigabitethernet 0/0/1 [LSW4-GigabitEthernet0/0/1] stp disable

[LSW4-GigabitEthernet0/0/1] erps ring 1 [LSW4-GigabitEthernet0/0/1] erps ring 2 [LSW4-GigabitEthernet0/0/1] quit [LSW4] interface gigabitethernet 0/0/2 [LSW4-GigabitEthernet0/0/2] stp disable [LSW4-GigabitEthernet0/0/2] erps ring 1 [LSW4-GigabitEthernet0/0/2] erps ring 2 [LSW4-GigabitEthernet0/0/2] quit

4. 配置ERPS环的Guard Timer和WTR Timer定时器。

# 配置LSW1。 [LSW1] erps ring 1

[LSW1-erps-ring1] wtr-timer 6 [LSW1-erps-ring1] guard-timer 100 [LSW1-erps-ring1] quit [LSW1] erps ring 2

[LSW1-erps-ring2] wtr-timer 6 [LSW1-erps-ring2] guard-timer 100 [LSW1-erps-ring2] quit # 配置LSW2。 [LSW2] erps ring 1

[LSW2-erps-ring1] wtr-timer 6 [LSW2-erps-ring1] guard-timer 100 [LSW2-erps-ring1] quit [LSW2] erps ring 2

[LSW2-erps-ring2] wtr-timer 6 [LSW2-erps-ring2] guard-timer 100 [LSW2-erps-ring2] quit # 配置LSW3。 [LSW3] erps ring 1

[LSW3-erps-ring1] wtr-timer 6 [LSW3-erps-ring1] guard-timer 100 [LSW3-erps-ring1] quit [LSW3] erps ring 2

[LSW3-erps-ring2] wtr-timer 6 [LSW3-erps-ring2] guard-timer 100 [LSW3-erps-ring2] quit # 配置LSW4。 [LSW4] erps ring 1

[LSW4-erps-ring1] wtr-timer 6 [LSW4-erps-ring1] guard-timer 100 [LSW4-erps-ring1] quit [LSW4] erps ring 2

[LSW4-erps-ring2] wtr-timer 6 [LSW4-erps-ring2] guard-timer 100 [LSW4-erps-ring2] quit 5. 配置LSW1~LSW4二层转发功能。

# 配置LSW1。

[LSW1] vlan batch 100 to 200 300 to 400 [LSW1] interface gigabitethernet 0/0/1

[LSW1-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 200 300 to 400 [LSW1-GigabitEthernet0/0/1] quit [LSW1] interface gigabitethernet 0/0/2

[LSW1-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 to 200 300 to 400 [LSW1-GigabitEthernet0/0/2] quit # 配置LSW2。

[LSW2] vlan batch 100 to 200 300 to 400 [LSW2] interface gigabitethernet 0/0/1

[LSW2-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 200 300 to 400 [LSW2-GigabitEthernet0/0/1] quit [LSW2] interface gigabitethernet 0/0/2

[LSW2-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 to 200 300 to 400 [LSW2-GigabitEthernet0/0/2] quit # 配置LSW3。

[LSW3] vlan batch 100 to 200 300 to 400 [LSW3] interface gigabitethernet 0/0/1

[LSW3-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 200 300 to 400 [LSW3-GigabitEthernet0/0/1] quit [LSW3] interface gigabitethernet 0/0/2

[LSW3-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 to 200 300 to 400 [LSW3-GigabitEthernet0/0/2] quit # 配置LSW4。

[LSW4] vlan batch 100 to 200 300 to 400 [LSW4] interface gigabitethernet 0/0/1

[LSW4-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 to 200 300 to 400 [LSW4-GigabitEthernet0/0/1] quit [LSW4] interface gigabitethernet 0/0/2

[LSW4-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 to 200 300 to 400 [LSW4-GigabitEthernet0/0/2] quit 6. 验证配置结果

上述配置成功后,执行以下操作,验证配置结果。以LSW2为例。 

在LSW2上执行display erps,查看LSW2加入的ERPS环的端口和环的概要信息。 [LSW2] display erps D : Discarding F : Forwarding R : RPL Owner N : RPL Neighbour FS : Forced Switch MS : Manual Switch

Total number of rings configured = 2

Ring Control WTR Timer Guard Timer Port 1 Port 2 ID VLAN (min) (csec)

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

1 10 6 100 (F)GE0/0/1 (D,R)GE0/0/2 2 20 6 100 (D)GE0/0/1 (F)GE0/0/2 -------------------------------------------------------------------------------- 

在LSW2上执行display erps verbose,查看LSW2加入的ERPS环的端口和环的详细信息。

[LSW2] display erps verbose

Ring ID : 1 Description : Ring 1 Control Vlan : 10 Protected Instance : 1

WTR Timer Setting (min) : 6 Running (s) : 0 Guard Timer Setting (csec) : 100 Running (csec) : 0 Holdoff Timer Setting (deciseconds) : 0 Running (deciseconds) : 0 WTB Timer Running (csec) : 0 Ring State : Idle RAPS_MEL : 7

Revertive Mode : Revertive R-APS Channel Mode : - Version : 1 Sub-ring : No Forced Switch Port : -

Manual Switch Port : - TC-Notify : -

Time since last topology change : 0 days 0h:35m:5s

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

Port Port Role Port Status Signal Status --------------------------------------------------------------------------------

GE0/0/1 Common Forwarding Non-failed GE0/0/2 RPL Owner Discarding Non-failed

Ring ID : 2 Description : Ring 2 Control Vlan : 20 Protected Instance : 2

WTR Timer Setting (min) : 6 Running (s) : 0 Guard Timer Setting (csec) : 100 Running (csec) : 0 Holdoff Timer Setting (deciseconds) : 0 Running (deciseconds) : 0 WTB Timer Running (csec) : 0 Ring State : Pending RAPS_MEL : 7

Revertive Mode : Revertive R-APS Channel Mode : - Version : 1 Sub-ring : No Forced Switch Port : - Manual Switch Port : - TC-Notify : -

Time since last topology change : 0 days 0h:35m:30s

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

Port Port Role Port Status Signal Status --------------------------------------------------------------------------------

GE0/0/1 Common Discarding Non-failed GE0/0/2 Common Forwarding Non-failed

配置文件

  

LSW1的配置文件 #

sysname LSW1

                                

#

vlan batch 10 20 100 to 200 300 to 400 #

stp region-configuration instance 1 vlan 10 100 to 200 instance 2 vlan 20 300 to 400 active region-configuration #

erps ring 1 control-vlan 10 protected-instance 1 wtr-timer 6 guard-timer 100 erps ring 2 control-vlan 20 protected-instance 2 wtr-timer 6 guard-timer 100 #

interface GigabitEthernet0/0/1 port link-type trunk

port trunk allow-pass vlan 10 20 100 to 200 300 to 400 stp disable erps ring 1

erps ring 2 rpl owner #

interface GigabitEthernet0/0/2 port link-type trunk

port trunk allow-pass vlan 10 20 100 to 200 300 to 400 stp disable erps ring 1 erps ring 2 # return

     

LSW2的配置文件 #

sysname LSW2 #

vlan batch 10 20 100 to 200 300 to 400 #

                             

stp region-configuration instance 1 vlan 10 100 to 200 instance 2 vlan 20 300 to 400 active region-configuration #

erps ring 1 control-vlan 10 protected-instance 1 wtr-timer 6 guard-timer 100 erps ring 2 control-vlan 20 protected-instance 2 wtr-timer 6 guard-timer 100 #

interface GigabitEthernet0/0/1 port link-type trunk

port trunk allow-pass vlan 10 20 100 to 200 300 to 400 stp disable erps ring 1 erps ring 2 #

interface GigabitEthernet0/0/2 port link-type trunk

port trunk allow-pass vlan 10 20 100 to 200 300 to 400 stp disable

erps ring 1 rpl owner erps ring 2 # return

        

LSW3的配置文件 #

sysname LSW3 #

vlan batch 10 20 100 to 200 300 to 400 #

stp region-configuration instance 1 vlan 10 100 to 200 instance 2 vlan 20 300 to 400

                          

active region-configuration #

erps ring 1 control-vlan 10 protected-instance 1 wtr-timer 6 guard-timer 100 erps ring 2 control-vlan 20 protected-instance 2 wtr-timer 6 guard-timer 100 #

interface GigabitEthernet0/0/1 port link-type trunk

port trunk allow-pass vlan 10 20 100 to 200 300 to 400 stp disable erps ring 1 erps ring 2 #

interface GigabitEthernet0/0/2 port link-type trunk

port trunk allow-pass vlan 10 20 100 to 200 300 to 400 stp disable erps ring 1 erps ring 2 # return

           

LSW4的配置文件 #

sysname LSW4 #

vlan batch 10 20 100 to 200 300 to 400 #

stp region-configuration instance 1 vlan 10 100 to 200 instance 2 vlan 20 300 to 400 active region-configuration #

erps ring 1

                       

control-vlan 10 protected-instance 1 wtr-timer 6 guard-timer 100 erps ring 2 control-vlan 20 protected-instance 2 wtr-timer 6 guard-timer 100 #

interface GigabitEthernet0/0/1 port link-type trunk

port trunk allow-pass vlan 10 20 100 to 200 300 to 400 stp disable erps ring 1 erps ring 2 #

interface GigabitEthernet0/0/2 port link-type trunk

port trunk allow-pass vlan 10 20 100 to 200 300 to 400 stp disable erps ring 1 erps ring 2 # return

因篇幅问题不能全部显示,请点此查看更多更全内容