华为CE交换机:配置ERPS多实例

配置ERPS多实例

组网需求

在ERPS组网中,一个物理环上只能配置一个ERPS环,也只能指定一个阻塞点。当ERPS环处于完整状态时,阻塞端口会阻止所有的用户报文通过,这导致所有用户报文在ERPS环上只能通过一条路径传输,阻塞端口另一侧的链路空闲,造成了带宽浪费。

图 ERPS单环多实例组网图所示,在DeviceA~DeviceD上配置两个ERPS实例,ERPS环1和ERPS环2,ERPS环1阻塞DeviceB的P1端口,ERPS环2阻塞DeviceA的P2端口,实现负载分担并提供链路备份。

图1 ERPS单环多实例组网图

华为CE交换机:配置ERPS多实例

本例中interface1、interface2分别代表100GE1/0/1、100GE1/0/2。

华为CE交换机:配置ERPS多实例

配置思路

采用如下的思路配置ERPS单环多实例:

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

  2. 创建ERPS环,并配置控制VLAN和保护实例。

  3. 将二层端口加入ERPS环并配置端口角色。

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

  5. 配置DeviceA~DeviceD二层转发功能。

操作步骤

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

    # 配置DeviceA。DeviceB、DeviceC、DeviceD的配置与DeviceA类似,详见配置脚本。

    <HUAWEI> system-view
    [~HUAWEI] sysname DeviceA
    [~HUAWEI] commit
    [~DeviceA] interface 100ge 1/0/1
    [*DeviceA-100GE1/0/1] portswitch
    [*DeviceA-100GE1/0/1] port link-type trunk
    [*DeviceA-100GE1/0/1] quit
    [*DeviceA] interface 100ge 1/0/2
    [*DeviceA-100GE1/0/2] portswitch
    [*DeviceA-100GE1/0/2] port link-type trunk
    [*DeviceA-100GE1/0/2] quit
    [*DeviceA-100GE1/0/2] commit

     

  2. 创建ERPS环1、ERPS环2并配置两个ERPS环的保护实例,配置ERPS环1的控制VLAN ID为10,ERPS环2的控制VLAN ID为20,ERPS环1传递VLAN100~VLAN200的数据报文,ERPS环2传递VLAN300~VLAN400的数据报文。 

    # 配置DeviceA。DeviceB、DeviceC、DeviceD的配置与DeviceA类似,详见配置脚本。

    [~DeviceA] erps ring 1
    [*DeviceA-erps-ring1] control-vlan 10
    [*DeviceA-erps-ring1] protected-instance 1
    [*DeviceA-erps-ring1] quit
    [*DeviceA] stp region-configuration
    [*DeviceA-mst-region] instance 1 vlan 10 100 to 200
    [*DeviceA-mst-region] quit
    [*DeviceA] erps ring 2
    [*DeviceA-erps-ring2] control-vlan 20
    [*DeviceA-erps-ring2] protected-instance 2
    [*DeviceA-erps-ring2] quit
    [*DeviceA] stp region-configuration
    [*DeviceA-mst-region] instance 2 vlan 20 300 to 400
    [*DeviceA-mst-region] quit
    [*DeviceA-mst-region] commit

     

  3. 将二层端口加入ERPS环并配置端口角色,分别将DeviceA的端口100GE1/0/1和DeviceB的端口100GE1/0/2配置为RPL owner。 

    # 配置DeviceA。

    [~DeviceA] interface 100ge 1/0/1
    [*DeviceA-100GE1/0/1] stp disable
    [*DeviceA-100GE1/0/1] erps ring 1
    [*DeviceA-100GE1/0/1] erps ring 2 rpl owner
    [*DeviceA-100GE1/0/1] quit
    [*DeviceA] interface 100ge 1/0/2
    [*DeviceA-100GE1/0/2] stp disable
    [*DeviceA-100GE1/0/2] erps ring 1
    [*DeviceA-100GE1/0/2] erps ring 2
    [*DeviceA-100GE1/0/2] quit
    [*DeviceA] commit
    # 配置DeviceB。

    [~DeviceB] interface 100ge 1/0/1
    [*DeviceB-100GE1/0/1] stp disable
    [*DeviceB-100GE1/0/1] erps ring 1
    [*DeviceB-100GE1/0/1] erps ring 2
    [*DeviceB-100GE1/0/1] quit
    [*DeviceB] interface 100ge 1/0/2
    [*DeviceB-100GE1/0/2] stp disable
    [*DeviceB-100GE1/0/2] erps ring 1 rpl owner
    [*DeviceB-100GE1/0/2] erps ring 2
    [*DeviceB-100GE1/0/2] quit
    [*DeviceB] commit

    # 配置DeviceC。DeviceD的配置与DeviceC类似,详见配置脚本。

    [~DeviceC] interface 100ge 1/0/1
    [*DeviceC-100GE1/0/1] stp disable
    [*DeviceC-100GE1/0/1] erps ring 1
    [*DeviceC-100GE1/0/1] erps ring 2
    [*DeviceC-100GE1/0/1] quit
    [*DeviceC] interface 100ge 1/0/2
    [*DeviceC-100GE1/0/2] stp disable
    [*DeviceC-100GE1/0/2] erps ring 1
    [*DeviceC-100GE1/0/2] erps ring 2
    [*DeviceC-100GE1/0/2] quit
    [*DeviceC] commit

     

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

    # 配置DeviceA。DeviceB、DeviceC、DeviceD的配置与DeviceA类似,详见配置脚本。

    [~DeviceA] erps ring 1
    [~DeviceA-erps-ring1] wtr-timer 6
    [*DeviceA-erps-ring1] guard-timer 100
    [*DeviceA-erps-ring1] quit
    [*DeviceA] erps ring 2
    [*DeviceA-erps-ring2] wtr-timer 6
    [*DeviceA-erps-ring2] guard-timer 100
    [*DeviceA-erps-ring2] quit
    [*DeviceA] commit

     

  5. 配置DeviceA~DeviceD二层转发功能。 

    # 配置DeviceA。DeviceB、DeviceC、DeviceD的配置与DeviceA类似,详见配置脚本。

    [~DeviceA] vlan batch 100 to 200 300 to 400
    [*DeviceA] interface 100ge 1/0/1
    [*DeviceA-100GE1/0/1] undo port trunk allow-pass vlan 1
    [*DeviceA-100GE1/0/1] port trunk allow-pass vlan 100 to 200 300 to 400
    [*DeviceA-100GE1/0/1] quit
    [*DeviceA] interface 100ge 1/0/2
    [*DeviceA-100GE1/0/2] undo port trunk allow-pass vlan 1
    [*DeviceA-100GE1/0/2] port trunk allow-pass vlan 100 to 200 300 to 400
    [*DeviceA-100GE1/0/2] quit
    [*DeviceA] commit

     

  6. 验证配置结果 

    # 在网络稳定后,在设备上执行display erps,查看设备加入的ERPS环的端口和环的概要信息。以DeviceB为例。

    [~DeviceB] display erps
    D : Discarding
    F : Forwarding
    R : RPL Owner
    N  : RPL Neighbour
    FS : Forced Device
    MS : Manual Device
    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)100GE1/0/1          (D,R)100GE1/0/2
       2       20          6          100  (F)100GE1/0/1          (F)100GE1/0/2
    --------------------------------------------------------------------------------
    

    # 在设备上执行display erps verbose,查看设备加入的ERPS环的端口和环的详细信息。以DeviceB为例。

    [~DeviceB] display erps verbose
    Ring ID                             : 1
    Description                         : Ring 1
    Control Vlan                        : 10
    Protected Instance                  : 1
    Service Vlan                        : 100 to 200
    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 Device Port                  : -
    Manual Device Port                  : -
    TC-Notify                           : -
    Time since last topology change     : 0 days 0h:35m:5s
     
    --------------------------------------------------------------------------------
    Port                Port Role     Port Status     Signal Status
    --------------------------------------------------------------------------------
    100GE1/0/1             Common        Forwarding      Non-failed
    100GE1/0/2             RPL Owner     Discarding      Non-failed
    
    Ring ID                             : 2
    Description                         : Ring 2
    Control Vlan                        : 20
    Protected Instance                  : 2
    Service Vlan                        : 300 to 400
    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 Device Port                  : -
    Manual Device Port                  : -
    TC-Notify                           : -
    Time since last topology change     : 0 days 0h:35m:30s
    --------------------------------------------------------------------------------
    Port                Port Role     Port Status     Signal Status
    --------------------------------------------------------------------------------
    100GE1/0/1             Common        Forwarding      Non-failed
    100GE1/0/2             Common        Forwarding      Non-failed

     

配置脚本

  • DeviceA

    #
    sysname DeviceA
    #
    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
    #
    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 100ge 1/0/1
     port link-type trunk
     undo port trunk allow-pass vlan 1
     port trunk allow-pass vlan 10 20 100 to 200 300 to 400
     stp disable
     erps ring 1
     erps ring 2 rpl owner
    #
    interface 100ge 1/0/2
     port link-type trunk
     undo port trunk allow-pass vlan 1
     port trunk allow-pass vlan 10 20 100 to 200 300 to 400
     stp disable
     erps ring 1
     erps ring 2
    #
    return
  • DeviceB

    #
    sysname DeviceB
    #
    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
    #
    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 100ge 1/0/1
     port link-type trunk
     undo port trunk allow-pass vlan 1
     port trunk allow-pass vlan 10 20 100 to 200 300 to 400
     stp disable
     erps ring 1
     erps ring 2
    #
    interface 100ge 1/0/2
     port link-type trunk
     undo port trunk allow-pass vlan 1
     port trunk allow-pass vlan 10 20 100 to 200 300 to 400
     stp disable
     erps ring 1 rpl owner
     erps ring 2
    #
    return
  • DeviceC

    #
    sysname DeviceC
    #
    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
    #
    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 100ge 1/0/1
     port link-type trunk
     undo port trunk allow-pass vlan 1
     port trunk allow-pass vlan 10 20 100 to 200 300 to 400
     stp disable
     erps ring 1
     erps ring 2
    #
    interface 100ge 1/0/2
     port link-type trunk
     undo port trunk allow-pass vlan 1
     port trunk allow-pass vlan 10 20 100 to 200 300 to 400
     stp disable
     erps ring 1
     erps ring 2
    #
    return
  • DeviceD

    #
    sysname DeviceD
    #
    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
    #
    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 100ge 1/0/1
     port link-type trunk
     undo port trunk allow-pass vlan 1
     port trunk allow-pass vlan 10 20 100 to 200 300 to 400
     stp disable
     erps ring 1
     erps ring 2
    #
    interface 100ge 1/0/2
     port link-type trunk
     undo port trunk allow-pass vlan 1
     port trunk allow-pass vlan 10 20 100 to 200 300 to 400
     stp disable
     erps ring 1
     erps ring 2
    #
    return
上一篇 NAT源IP地址无法转换排查流程图
下一篇 MyBatis轻松接入金仓数据库:从零搭建到生产实践