一、组网需求

组网方案2需求

 1、4台S62-1、S62-2、S62-3和S62-4构成一个ERPS环4094,实现核心链路的冗余备份

 2、3台S62-4、S62-5和S62-6构成一个ERPS环4093,实现核心网络的冗余备份

 3、ERPS环4094和ERPS环4093共用一台设备S62-4

 4、vlan4094 作为ERPS环4094 的rps-vlan,vlan 4093作为ERPS环4093的rpl-vlan

 5、S62-1和S62-4通过AP口相连,AP口有多个成员接口

 6、S62-1和S62-4之间的AP链路作为ERPS环4094的RPL链路,S62-1的AP接口作为RPL-owner接口,S62-4的AP接口作为RPL接口。S62-4和S62-6之间的链路作为ERPS换4093的RPL链路,S62-4的接口作为RPL-owner接口,S62-6的接口作为RPL接口

(RPL链路负载阻塞整个环路,一个ERPS环只能有一个RPL链路,RPL链路有一个RPL-owner接口和RPL接口)

 7、设置WTR定时器为2分钟

 

二、组网拓扑

组网方案2

三、方案介绍

ERPS相切环-方案2:

ERPS相切环:

1)  S62-1、S62-2、S62-3和S62-4组成一个单ERPS 环4094

2)  S62-4、S62-5、S62-6组成一个单ERPS 环4093

3)  S62-1、S62-2、S62-3和S62-4是通过万M(Ten)接口相连

4)  S62-1通过Ten0/3接口与S62-2的Ten0/3接口建立二层链路

5)  S62-1通过Ten0/9接口、Ten0/10接口建立二层AP口,并与S62-4建立二层链路

6)  S62-2通过Ten0/5接口与S62-3的Ten0/5接口建立二层链路

7)  S62-3通过Ten0/7接口与S62-4的Ten0/7接口建立二层链路

8)  S62-4通过Ten0/9接口、Ten0/10接口建立二层AP口,并与S62-1建立二层链路

9)  S62-1、S62-2、S62-3和S62-4之间相连接口作为ERPS关联接口,通过ERPS协议构成一个ERPS 4094环

10) S62-1的AP口作为ERPS环4094的RPL-owner接口,S62-4的AP口作为ERPS环4094的RPL接口

11) S62-4通过Ten0/15接口和S62-5的Ten0/15接口建立二层链路

12) S62-5通过Ten0/17接口和S62-6的Ten0/17接口建立二层链路

13) S62-6通过Ten0/13接口和S62-4的Ten0/13接口建立二层链路

14) S62-4、S62-5和S62-6之间相连接口作为ERPS关联接口,通过ERPS协议构成一个ERPS 4093环

15) 62-4的ten0/13接口作为ERPS环4093的RPL-owner接口,62-6的Ten0/13作为ERPS换4093的RPL接口

16) 在经常出现CRC的链路开启RLDP协议

 

四、配置要点

4.1ERPS相切环的配置思路

1)  在S62-1和S62-6配置接口聚合,将有所设备上的ERPS需要关联的接口配置成trunk

2)  在S62-1上配shutdown一个erps关联接口,配置ERPS环4094,配置RPL-owner接口,开启ERPS功能,单独no shutdown ERPS关联的接口

3)  在S62-2上配shutdown一个erps关联接口,配置ERPS环4094,开启ERPS功能,单独no shutdown ERPS关联的接口

4)  在S62-3上配shutdown一个erps关联接口,配置ERPS环4094,开启ERPS功能,单独no shutdown ERPS关联的接口

5)  在S62-4上配shutdown一个erps关联接口,配置ERPS环4094,配置RPL接口,开启ERPS功能,单独no shutdown ERPS关联的接口

6)  在S62-4上配shutdown一个erps关联接口,配置ERPS环4093,配置RPL-onwer接口,开启ERPS功能,单独no shutdown ERPS关联的接口

7)  在S62-5上配shutdown一个erps关联接口,配置ERPS环4093,开启ERPS功能,单独no shutdown ERPS关联的接口

8)  在S62-5上配shutdown一个erps关联接口,配置ERPS环4093,配置RPL接口,开启ERPS功能,单独no shutdown ERPS关联的接口

注意:一个erps环必须有一条RPL链路,RPL链路的两个接口,一个为RPL-onwer接口,另一个为RPL接口

 

4.2故障链路RLDP的配置

在为非AP接口开启RPL链路检测功能,帮助检测发现链路是否存在CRC错误引起的丢包。RLDP对于检测到链路故障发出警告。

 

五、配置步骤  

5.1ERPS相切环配置

在S62-1配置

1)将ERPS环4094关联的接口AP128,ten0/3配置成trunk,并shutdown其中一个接口

 

#配置以太网环接口成trunk模式,shutdown其中一个接口

(先将一个ERPS接口shutdown,等ERPS配置好了,在单独no shutdown)

62-1(config)#int ten0/3

62-1(config-if-TenGigabitEthernet 0/3)#sw mode trunk

62-1(config-if-TenGigabitEthernet 0/3)#shutdown   //先shutdown一个接口

62-1(config-if-TenGigabitEthernet 0/3)#exit

62-1(config)#int range ten0/9-10

62-1(config-if-range)#port-group 128

62-1(config-if-range)#exit

62-1(config)#int ag 128

62-1(config-if-AggregatePort 128)#sw mode trunk

62-1(config-if-AggregatePort 128)#exit

62-1(config)#

 

2)配置ERPS环4094

#配置R-APS VLAN 4094。

62-1(config)#erps raps-vlan 4094      //创建ERPS vlan 4094

62-1(config-erps 4094)# ring-port west AggregatePort 128 east TenGigabitEthernet 0/3    //配置ERP环4094的ERPS关联的接口。

62-1(config-erps 4094)#rpl-port west rpl-owner    //配置rpl-onwer接口

62-1(config-erps 4094)#state enable            //开启局部环的ERPS功能

62-1(config-erps 4094)# timer wtr-time 2        //修改WTR定时器2分钟

62-1(config-erps 4094)#exit

62-1(config)#state enable                     //开启全局的ERPS功能

62-1(config)#int ten0/3

62-1(config-if-TenGigabitEthernet 0/3)#no shutdown  //单独no shutdown一个接口

 

在S62-2配置

#将ERPS环4094关联的接口Ten0/5,ten0/3配置成trunk,并shutdown其中一个接口

(先将一个ERPS接口shutdown,等ERPS配置好了,在单独no shutdown)

62-2(config)#int ten0/3

62-2(config-if-TenGigabitEthernet 0/3)#sw mode trunk

62-2(config-if-TenGigabitEthernet 0/3)#shutdown   //先shutdown一个接口

62-2(config-if-TenGigabitEthernet 0/3)#exit

62-2(config)#int ten0/5

62-2(config-if-TenGigabitEthernet 0/5)#sw mode trunk

62-2(config-if-TenGigabitEthernet 0/5)#exit

 

#配置R-APS VLAN 4094。

62-2(config)#erps raps-vlan 4094      //创建ERPS vlan 4094

62-2(config-erps 4094)# ring-port west TenGigabitEthernet 0/3 east TenGigabitEthernet 0/5    //配置ERP环4094的ERPS关联的接口。

62-2(config-erps 4094)#state enable            //开启局部环的ERPS功能

62-2(config-erps 4094)# timer wtr-time 2        //修改WTR定时器2分钟

62-2(config-erps 4094)#exit

62-2(config)#state enable                     //开启全局的ERPS功能

62-2(config)#int ten0/3

62-2(config-if-TenGigabitEthernet 0/3)#no shutdown   //单独no shutdown一个接口

 

 

在S62-3配置

#将ERPS环4094关联的接口Ten0/5,ten0/7配置成trunk,并shutdown其中一个接口

(先将一个ERPS接口shutdown,等ERPS配置好了,在单独no shutdown)

62-3(config)#int ten0/7

62-3(config-if-TenGigabitEthernet 0/7)#sw mode trunk

62-3(config-if-TenGigabitEthernet 0/7)#shutdown   //shutdown一个接口

62-3(config-if-TenGigabitEthernet 0/7)#exit

62-3(config)#int ten0/5

62-3(config-if-TenGigabitEthernet 0/5)#sw mode trunk

62-3(config-if-TenGigabitEthernet 0/5)#exit

 

#配置R-APS VLAN 4094。

62-3(config)#erps raps-vlan 4094      //创建ERPS vlan 4094

62-3(config-erps 4094)# ring-port west TenGigabitEthernet 0/7 east TenGigabitEthernet 0/5    //配置ERP环4094的ERPS关联的接口。

62-3(config-erps 4094)#state enable            //开启局部环的ERPS功能

62-3(config-erps 4094)# timer wtr-time 2        //修改WTR定时器2分钟

62-3(config-erps 4094)#exit

62-3(config)#state enable                     //开启全局的ERPS功能

62-3(config)#int ten0/7

62-3(config-if-TenGigabitEthernet 0/7)#no shutdown  //单独no shutdown一个接口

 

 

在S62-4配置

#将ERPS环4094关联的接口AP128,ten0/7配置成trunk,并shutdown其中一个接口

(先将一个ERPS接口shutdown,等ERPS配置好了,在单独no shutdown)

62-4(config)#int ten0/7

62-4(config-if-TenGigabitEthernet 0/7)#sw mode trunk

62-4(config-if-TenGigabitEthernet 0/7)#shutdown  //shutdown一个接口

62-4(config-if-TenGigabitEthernet 0/7)#exit

62-4(config)#int range ten0/9-10

62-4(config-if-range)#port-group 128

62-4(config-if-range)#exit

62-4(config)#int ag 128

62-4(config-if-AggregatePort 128)#sw mode trunk

62-4(config-if-AggregatePort 128)#exit

62-4(config)#

 

#配置ERPS环4094

#配置R-APS VLAN 4094。

62-4(config)#erps raps-vlan 4094      //创建ERPS vlan 4094

62-4(config-erps 4094)# ring-port west AggregatePort 128 east TenGigabitEthernet 0/7    //配置ERP环4094的ERPS关联的接口。

62-4(config-erps 4094)#rpl-port west           //配置rpl接口

62-4(config-erps 4094)#state enable            //开启局部环的ERPS功能

62-4(config-erps 4094)# timer wtr-time 2       //修改WTR定时器2分钟

62-4(config-erps 4094)#exit

62-4(config)#state enable                      //开启全局的ERPS功能

62-4(config)#int ten0/7

62-4(config-if-TenGigabitEthernet 0/7)#no shutdown   //单独no shutdown一个接口

 

#将ERPS环4093关联的接口Ten0/13,ten0/15配置成trunk,并shutdown其中一个接口

(先将一个ERPS接口shutdown,等ERPS配置好了,在单独no shutdown)

62-4(config)#int ten0/13

62-4(config-if-TenGigabitEthernet 0/13)#sw mode trunk

62-4(config-if-TenGigabitEthernet 0/13)#shutdown   //先shutdown一个接口

62-4(config-if-TenGigabitEthernet 0/13)#exit

62-4(config)#int ten0/15

62-4(config-if-TenGigabitEthernet 0/15)#sw mode trunk

62-4(config-if-TenGigabitEthernet 0/15)#shutdown   //shutdown一个接口

62-4(config-if-TenGigabitEthernet 0/15)#exit

 

#配置ERPS环4093

#配置R-APS VLAN 4093。

62-4(config)#erps raps-vlan 4093      //创建ERPS vlan 4093

62-4(config-erps 4093)# ring-port west TenGigabitEthernet 0/13 east TenGigabitEthernet 0/15   //配置ERP环4093的ERPS关联的接口。

62-4(config-erps 4093)#rpl-port west rpl-owner    //配置rpl-onwer接口

62-4(config-erps 4093)#state enable            //开启局部环的ERPS功能

62-4(config-erps 4093)# timer wtr-time 2       //修改WTR定时器2分钟

62-4(config-erps 4093)#exit

62-4(config)#state enable                      //开启全局的ERPS功能

62-4(config)#int ten0/13

62-4(config-if-TenGigabitEthernet 0/13)#no shutdown  //单独no shutdown一个接口

 

 

在S62-5配置

#将ERPS环4093关联的接口Ten0/17,ten0/15配置成trunk,并shutdown其中一个接口

(先将一个ERPS接口shutdown,等ERPS配置好了,在单独no shutdown)

62-5(config)#int ten0/17

62-5(config-if-TenGigabitEthernet 0/17)#sw mode trunk

62-5(config-if-TenGigabitEthernet 0/17)#shutdown   //先shutdown一个接口

62-5(config-if-TenGigabitEthernet 0/17)#exit

62-5(config)#int ten0/15

62-5(config-if-TenGigabitEthernet 0/15)#sw mode trunk

62-5(config-if-TenGigabitEthernet 0/15)#shutdown   //先shutdown一个接口

62-5(config-if-TenGigabitEthernet 0/15)#exit

 

#配置ERPS环4093

#配置R-APS VLAN 4093。

62-5(config)#erps raps-vlan 4093      //创建ERPS vlan 4093

62-5(config-erps 4093)# ring-port west TenGigabitEthernet 0/17 east TenGigabitEthernet 0/15   //配置ERP环4093的ERPS关联的接口。

62-5(config-erps 4093)#state enable            //开启局部环的ERPS功能

62-5(config-erps 4093)# timer wtr-time 2       //修改WTR定时器2分钟

62-5(config-erps 4093)#exit

62-5(config)#state enable                      //开启全局的ERPS功能

62-5(config)#int ten0/17

62-5(config-if-TenGigabitEthernet 0/17)#no shutdown

 

 

在S62-6配置

#将ERPS环4093关联的接口Ten0/17,ten0/13配置成trunk,并shutdown其中一个接口

(先将一个ERPS接口shutdown,等ERPS配置好了,在单独no shutdown)

62-6(config)#int ten0/17

62-6(config-if-TenGigabitEthernet 0/17)#sw mode trunk

62-6(config-if-TenGigabitEthernet 0/17)#shutdown   //先shutdown一个接口

62-6(config-if-TenGigabitEthernet 0/17)#exit

62-6(config)#int ten0/13

62-6(config-if-TenGigabitEthernet 0/13)#sw mode trunk

62-6(config-if-TenGigabitEthernet 0/13)#shutdown   //先shutdown一个接口

62-6(config-if-TenGigabitEthernet 0/13)#exit

 

#配置ERPS环4093

#配置R-APS VLAN 4093。

62-6(config)#erps raps-vlan 4093      //创建ERPS vlan 4093

62-6(config-erps 4093)# ring-port west TenGigabitEthernet 0/17 east TenGigabitEthernet 0/13   //配置ERP环4093的ERPS关联的接口。

62-6(config-erps 4093)#rpl-port west           //配置rpl接口

62-6(config-erps 4093)#state enable            //开启局部环的ERPS功能

62-6(config-erps 4093)# timer wtr-time 2       //修改WTR定时器2分钟

62-6(config-erps 4093)#exit

62-6(config)#state enable                      //开启全局的ERPS功能

62-6(config)#int ten0/17

62-6(config-if-TenGigabitEthernet 0/17)#no shutdown

 

5.2RLDP配置

在S62-3和S62-4之间的链路开启RLDP检测

 

S62-3设备

62-3(config)#int ten0/7

62-3(config-if-TenGigabitEthernet 0/7)#rldp port unidirection-detect warning  //开启rldp 单向链路检测,处理方式发出警告               

62-3(config-if-TenGigabitEthernet 0/7)#rldp port bidirection-detect warning

//开启rldp 双向链路检测,处理方式发出警告

62-3(config-if-TenGigabitEthernet 0/7)#exit

62-3(config)#rldp ena

62-3(config)# errdisable recovery interval 120  //配置rldp检测到错误,120s自动后重新检测

 

S62-4设备

62-4(config)#int ten0/7

62-4(config-if-TenGigabitEthernet 0/7)#rldp port unidirection-detect warning 

//开启rldp 单向链路检测,处理方式发出警告                   

62-4(config-if-TenGigabitEthernet 0/7)#rldp port bidirection-detect warning

//开启rldp 双向链路检测,处理方式发出警告   

62-4(config-if-TenGigabitEthernet 0/7)#exit

62-4(config)#rldp ena

62-4(config)# errdisable recovery interval 120  //配置rldp检测到错误,120s自动后重新检测

 

说明:运营商环境对链路的稳定性要求比较好,RLDP检测出链路丢包的处理方式推荐warning。不会对链路产生影响,发出的警告帮助客户发现类似CRC故障链路。不推荐在AP口使用RLDP检测,RLDP在AP口检测链路丢包处理方式只有shutdown-port,会将接口shutdown掉。

 

六、功能验证

ERPS环的所有设备都配置好了时候处于protection状态,等待2分钟恢复IDE状态

#在各个节点上执行show erps命令,确认配置。

查看62-1

62-1(config-erps 4094)#show erps

ERPS Information

Global Status               : Enabled

Link monitored by           : Not Oam

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

R-APS VLAN                  : 4094

Ring Status                 : Enabled

West Port                   : Ag128        (Blocking)   //可以看到处于IDE状态RPL-owner接口是被//阻塞(block)的

East Port                   : Te0/3        (Forwarding)    //IDE状态,非RPL-owner接口处于转发状态

RPL Port                    : West Port

Protected VLANs             : ALL

RPL Owner                   : Enabled

Holdoff Time                : 0 milliseconds

Guard Time                  : 500 milliseconds

WTR Time                    : 2 minutes

Current Ring State          : idle

62-1(config-erps 4094)# 

查看62-2

62-2#

62-2#show erps

ERPS Information

Global Status               : Enabled

Link monitored by           : Not Oam

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

R-APS VLAN                  : 4094

Ring Status                 : Enabled

West Port                   : Te0/5        (Forwarding)  //IDE状态,非RPL-owner接口处于转发状

East Port                   : Te0/3        (Forwarding)   

RPL Port                    : None

Protected VLANs             : ALL

RPL Owner                   : Disabled

Holdoff Time                : 0 milliseconds

Guard Time                  : 500 milliseconds

WTR Time                    : 2 minutes

Current Ring State          : idle

62-2# 

查看62-3

ERPS Information

Global Status               : Enabled

Link monitored by           : Not Oam

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

R-APS VLAN                  : 4094

Ring Status                 : Enabled

West Port                   : Te0/5        (Forwarding)  //IDE状态,非RPL-owner接口处于转发状

East Port                   : Te0/7        (Forwarding)

RPL Port                    : None

Protected VLANs             : ALL

RPL Owner                   : Disabled

Holdoff Time                : 0 milliseconds

Guard Time                  : 500 milliseconds

WTR Time                    : 2 minutes

Current Ring State          : idle

62-3# 

查看62-4

62-4(config)#show erps

ERPS Information

Global Status               : Enabled

Link monitored by           : Not Oam

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

R-APS VLAN                  : 4094

Ring Status                 : Enabled

West Port                   : Ag128        (Forwarding)  // IDE状态,RPL端口第一次配置处于block,//重新收敛后面都是Forwarding

East Port                   : Te0/7        (Forwarding)

RPL Port                    : West Port

Protected VLANs             : ALL

RPL Owner                   : Disabled

Holdoff Time                : 0 milliseconds

Guard Time                  : 500 milliseconds

WTR Time                    : 5 minutes

Current Ring State          : idle

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

R-APS VLAN                  : 4093

Ring Status                 : Enabled

West Port                   : Te0/13       (Blocking)   //IDE状态,非RPL-owner接口处于转发状

 

East Port                   : Te0/15       (Forwarding)  //处于IDE状态RPL-owner接口是被        //阻塞(block)的

 

RPL Port                    : West Port

Protected VLANs             : ALL

RPL Owner                   : Enabled

Holdoff Time                : 0 milliseconds

Guard Time                  : 500 milliseconds

WTR Time                    : 5 minutes

Current Ring State          : idle

62-4(config)#

查看62-5

62-5(config)#show erps

ERPS Information

Global Status               : Enabled

Link monitored by           : Not Oam

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

R-APS VLAN                  : 4093

Ring Status                 : Enabled

West Port                   : Te0/15       (Forwarding) //IDE状态,非RPL-owner接口处于转发状

East Port                   : Te0/17       (Forwarding)

RPL Port                    : None

Protected VLANs             : ALL

RPL Owner                   : Disabled

Holdoff Time                : 0 milliseconds

Guard Time                  : 500 milliseconds

WTR Time                    : 2 minutes

Current Ring State          : idle

62-5(config)# 

查看62-6

62-6(config-if-TenGigabitEthernet 0/24)#show erps

ERPS Information

Global Status               : Enabled

Link monitored by           : Not Oam

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

R-APS VLAN                  : 4093

Ring Status                 : Enabled

West Port                   : Te0/13       (Forwarding) //IDE状态,非RPL-owner接口处于转发状

East Port                   : Te0/17       (Forwarding)

RPL Port                    : West Port

Protected VLANs             : ALL

RPL Owner                   : Disabled

Holdoff Time                : 0 milliseconds

Guard Time                  : 500 milliseconds

WTR Time                    : 2 minutes

Current Ring State          : idle

 

 

6.2 RLDP的配置信息

在S62-3查看rldp配置信息

62-3#show rldp

rldp state         : enable

rldp hello interval: 3

rldp max hello     : 2

rldp local bridge  : 00d0.f822.33f8

port state      : normal

local bridge    : 00d0.f822.33f8

neighbor bridge : 00d0.f822.33ba

neighbor port   : TenGigabitEthernet 0/7

unidirection detect information:

     action: warning   //检测出问题,处于方式是发出警告

     state : normal    //当前状态

bidirection detect information :

     action: warning   //检测出问题,处于方式是发出警告

     state : normal    //当前状态

在S62-4查看rldp配置信息

62-4#

62-4#show rld

rldp state         : enable

rldp hello interval: 3

rldp max hello     : 2

rldp local bridge  : 00d0.f822.33ba

port state      : normal

local bridge    : 00d0.f822.33ba

neighbor bridge : 00d0.f822.33f8

neighbor port   : TenGigabitEthernet 0/7

unidirection detect information:

     action: warning    //检测出问题,处于方式是发出警告

     state : normal      //当前状态

 

bidirection detect information :

     action: warning

     state : normal

 

出现链路故障rldp 打印log警告

62-4(config)#*Jan 21 00:18:54: %RLDP-3-LINK_DETECT_ERROR: unidirection detection error detect on interface TenGigabitEthernet 0/7!

故障恢复log

62-4(config)#*Jan 21 00:19:01: %RLDP-3-LINK_DETECT_RECOVER: rldp recover interface TenGigabitEthernet 0/7 from unidirection error

 

七、所有设备的配置附件

     附件里面的内容包括show ver、show erps、show run等信息。

6台设备的配置

设备62-1

设备62-2

设备62-3

设备62-4

设备62-5

设备62-6