• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

H3C交换机 典型配置举例-6W100

53-RRPP典型配置举例

本章节下载 53-RRPP典型配置举例  (445.65 KB)

53-RRPP典型配置举例


1 RRPP典型配置举例

1.1  简介

本章主要介绍了通过在以太网环上配置RRPP功能,可以实现在以太网环完整时能够防止数据环路引起的广播风暴,而当以太网环上一条链路断开时能迅速恢复环网上各个节点之间的通信通路,使网络具备较高的收敛速度。

1.2  使用限制

·     不建议在RRPP端口上启用以太网OAM远端环回功能,否则可能引起短时间的广播风暴。仅S5820X&S5800系列以太网交换机和S5500-EI&S5500-SI系列以太网交换机支持以太网OAM远端环回功能。

·     控制VLAN上不能运行QinQ(802.1Q in 802.1Q)和VLAN映射功能,否则RRPP协议报文无法正常收发。

·     RRPP端口的端口类型只能是二层以太网端口或二层聚合接口,但当二层以太网端口是二层聚合组、业务环回组或Smart Link组的成员端口时除外。

·     接入RRPP环的端口必须关闭STP功能,且不能开启Smart Link功能。

·     接入RRPP环的端口不能配置为镜像组的目的端口。

·     为了以提高RRPP的拓扑变化收敛速度,建议在RRPP端口上不要配置端口的物理连接状态up/down抑制时间。

1.3  RRPP单环拓扑典型配置举例

1.3.1  适用产品和版本

表1-1 配置适用的产品与软件版本关系

产品

软件版本

S10500系列以太网交换机

Release 1120系列,Release 1130系列,Release 1200系列

S5820X&S5800系列以太网交换机

Release 1808

S5830系列以太网交换机

Release 1115,Release 1118

S5500-EI&S5500-SI系列以太网交换机

Release 2220

 

1.3.2  组网需求

图1-1所示,多个小区用户接入汇聚层网络,该汇聚层网络采用环网结构。

现要求在该环网上配置RRPP功能,实现:

·     当Ring 1物理连接完整时,各节点之间能够通信且不会存在数据环路引起的广播风暴。

·     当Ring 1上一条链路断开后,能迅速恢复环网上各个节点之间的通信通路,具备较高的收敛速度。

·     当Ring 1上断开的链路恢复后,该链路能够重新承载数据流量,且环网不存在环路现象。

图1-1 RRPP单环拓扑组网示意图

 

1.3.3  配置思路

由于主节点是环网状态主动检测机制的发起者和网络拓扑发生改变后执行操作的决策者,需要选择性能较强大的设备作为主节点,本案例选择Device A作为主节点。

1.3.4  配置注意事项

·     为避免由于关闭STP功能而造成的环路问题,请在完成环网内所有设备的RRPP配置后,再进行环网的完全连接。

·     为了激活当前设备的RRPP域,必须同时开启RRPP协议和RRPP环。

·     为了确保端口对RRPP协议报文的处理优先于数据报文,请将所有接入RRPP环的端口的信任模式配置为信认报文的802.1p优先级。对于S5820X&S5800、S5500-EI&S5500-SI系列以太网交换机,配置方法为在以太网端口视图下执行qos trust dot1p命令;对于S10500系列以太网交换机,配置方法为在以太网端口视图下执行undo qos trust命令(缺省情况下为信任报文的802.1p优先级,可以无需配置)。

1.3.5  配置步骤

(1)     配置Device A

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceA> system-view

[DeviceA] vlan 2 to 30

 Please wait... Done.

[DeviceA] stp region-configuration

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

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceA] interface gigabitethernet 1/0/1

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

[DeviceA-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceA-GigabitEthernet1/0/1] quit

[DeviceA] interface gigabitethernet 1/0/2

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

[DeviceA-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceA-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceA] rrpp domain 1

 Info: Create a new domain.

[DeviceA-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环1的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceA-rrpp-domain1] ring 1 enable

[DeviceA-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceA] rrpp enable

(2)     配置Device B

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceB> system-view

[DeviceB] vlan 2 to 30

 Please wait... Done.

[DeviceB] stp region-configuration

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

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceB] interface gigabitethernet 1/0/1

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

[DeviceB-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/1] quit

[DeviceB] interface gigabitethernet 1/0/2

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

[DeviceB-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceB] rrpp domain 1

 Info: Create a new domain.

[DeviceB-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceB-rrpp-domain1] ring 1 enable

[DeviceB-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceB] rrpp enable

(3)     配置Device C和Device D

Device C、Device D的配置与Device B完全相同,配置过程略。

1.3.6  验证配置

S5830、S5500-EI&S5500-SI系列以太网交换机不支持RRPP快速检测,显示信息中不会出现RRPP快速检测相关内容。

 

# 当Ring 1物理连接完整时,显示Ring 1上Device A的详细信息。

<DeviceA> display rrpp verbose domain 1 ring 1

Domain ID     : 1

Control VLAN  : Major 4092    Sub 4093

Protected VLAN: Reference Instance 1

Hello Timer   : 1  sec  Fail Timer : 3  sec

Fast Detection Status: Disable

Fast Hello Timer: 200 ms     Fast Fail Timer: 600 ms

Ring ID       : 1

Ring Level    : 0

Node Mode     : Master

Ring State    : Complete

Enable Status : Yes    Active Status: Yes

Primary port  : GE1/0/1                    Port status: UP

Secondary port: GE1/0/2                    Port status: BLOCKED

上述信息表明,Ring 1的物理连接是完整的,Device A的GE1/0/2处于阻塞状态,该端口禁止数据报文通过。

# 当将Device B的GigabitEthernet1/0/2执行shutdown操作后,显示Ring 1上Device A和Device B的详细信息。

<DeviceA> display rrpp verbose domain 1 ring 1

Domain ID     : 1

Control VLAN  : Major 4092    Sub 4093

Protected VLAN: Reference Instance 1

Hello Timer   : 1  sec  Fail Timer : 3  sec

Fast Detection Status: Disable

Fast Hello Timer: 200 ms     Fast Fail Timer: 600 ms

Ring ID       : 1

Ring Level    : 0

Node Mode     : Master

Ring State    : Failed

Enable Status : Yes    Active Status: Yes

Primary port  : GE1/0/1                    Port status: UP

Secondary port: GE1/0/2                    Port status: UP

上述信息表明,Ring 1的物理连接是处于断裂状态,Device A的GigabitEthernet1/0/2端口状态变为UP,该端口允许数据报文通过。

<DeviceB> display rrpp verbose domain 1 ring 1

Domain ID     : 1

Control VLAN  : Major 4092    Sub 4093

Protected VLAN: Reference Instance 1

Hello Timer   : 1  sec  Fail Timer : 3  sec

Fast Detection Status: Disable

Fast Hello Timer: 200 ms     Fast Fail Timer: 600 ms

Ring ID       : 1

Ring Level    : 0

Node Mode     : Transit

Ring State    : -

Enable Status : Yes    Active Status: Yes

Primary port  : GE1/0/1                    Port status: UP

Secondary port: GE1/0/2                    Port status: Down

上述信息表明,Device B的GigabitEthernet1/0/2处于Down状态。

# 当将Device B的GigabitEthernet1/0/2执行undo shutdown操作后,显示Ring 1上Device A和Device B的详细信息。

<DeviceA> display rrpp verbose domain 1 ring 1

Domain ID     : 1

Control VLAN  : Major 4092    Sub 4093

Protected VLAN: Reference Instance 1

Hello Timer   : 1  sec  Fail Timer : 3  sec

Fast Detection Status: Disable

Fast Hello Timer: 200 ms     Fast Fail Timer: 600 ms

Ring ID       : 1

Ring Level    : 0

Node Mode     : Master

Ring State    : Complete

Enable Status : Yes    Active Status: Yes

Primary port  : GE1/0/1                    Port status: UP

Secondary port: GE1/0/2                    Port status: BLOCKED

上述信息表明,Ring 1的物理连接恢复完整,Device A的GigabitEthernet1/0/2又变为阻塞状态,该端口禁止数据报文通过。

<DeviceB> display rrpp verbose domain 1 ring 1

Domain ID     : 1

Control VLAN  : Major 4092    Sub 4093

Protected VLAN: Reference Instance 1

Hello Timer   : 1  sec  Fail Timer : 3  sec

Fast Detection Status: Disable

Fast Hello Timer: 200 ms     Fast Fail Timer: 600 ms

Ring ID       : 1

Ring Level    : 0

Node Mode     : Transit

Ring State    : -

Enable Status : Yes    Active Status: Yes

Primary port  : GE1/0/1                    Port status: UP

Secondary port: GE1/0/2                    Port status: UP

上述信息表明,Device B的GigabitEthernet1/0/2又重新恢复为UP状态,该端口允许数据报文通过。

1.3.7  配置文件

说明

S5500-SI系列交换机不支持port link-mode bridge命令。

 

·     Device A

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 1 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

#

rrpp enable

#

·     Device BDevice CDevice D

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

#

rrpp enable

#

1.4  RRPP相交环拓扑典型配置举例

1.4.1  适用产品和版本

表1-2 配置适用的产品与软件版本关系

产品

软件版本

S10500系列以太网交换机

Release 1120系列,Release 1130系列,Release 1200系列

S5820X&S5800系列以太网交换机

Release 1808

S5830系列以太网交换机

Release 1115,Release 1118

S5500-EI&S5500-SI系列以太网交换机

Release 2220

 

1.4.2  组网需求

图1-2所示,接入层设备Device E以环网形式接入汇聚层,汇聚层也采用环网结构。

现要求在该环网上配置RRPP功能,实现:

·     当Ring 1或Ring 2物理连接完整时,该环的各节点之间能够通信且不会存在数据环路引起的广播风暴。

·     当Ring 1或Ring 2上一条链路断开后,能迅速恢复环网上各个节点之间的通信通路,具备较高的收敛速度。

·     当Ring 1或Ring 2上断开的链路恢复后,该链路能够重新承载数据流量,且环网不存在环路现象。

图1-2 RRPP相交环拓扑组网示意图

 

1.4.3  配置思路

·     主环需要透传子环的保护VLAN和控制VLAN内的流量,需要有较强的数据传输能力。本案例选择Ring 1作为该RRPP域的主环,Ring 2则作为子环。

·     对于主环而言,需要选择性能较强大的设备作为主节点;对于子环而言,选择除两环的公共节点外的设备作为主节点。本案例选择Device A作为Ring 1的主节点和Device B作为Ring 2的主节点。

1.4.4  配置注意事项

·     为避免由于关闭STP功能而造成的环路问题,请在完成环网内所有设备的RRPP配置后,再进行环网的完全连接。

·     为了激活当前设备的RRPP域,必须同时开启RRPP协议和RRPP环。

·     为避免子环的Hello报文在主环上形成环路,在子环的主节点上开启子环之前,请先在主环的主节点上开启主环。在边缘节点和辅助边缘节点上,需对主环和子环分别进行操作:开启子环前必须先开启主环。

·     为了确保端口对RRPP协议报文的处理优先于数据报文,请将所有接入RRPP环的端口的信任模式配置为信认报文的802.1p优先级。对于S5820X&S5800、S5500-EI&S5500-SI系列以太网交换机,配置方法为在以太网端口视图下执行qos trust dot1p命令;对于S10500系列以太网交换机,配置方法为在以太网端口视图下执行undo qos trust命令(缺省情况下为信任报文的802.1p优先级,可以无需配置)。

1.4.5  配置步骤

(1)     配置Device A

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceA> system-view

[DeviceA] vlan 2 to 30

 Please wait... Done.

[DeviceA] stp region-configuration

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

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceA] interface gigabitethernet 1/0/1

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

[DeviceA-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceA-GigabitEthernet1/0/1] quit

[DeviceA] interface gigabitethernet 1/0/2

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

[DeviceA-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceA-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceA] rrpp domain 1

 Info: Create a new domain.

[DeviceA-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环1的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceA-rrpp-domain1] ring 1 enable

[DeviceA-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceA] rrpp enable

(2)     配置Device B

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceB> system-view

[DeviceB] vlan 2 to 30

 Please wait... Done.

[DeviceB] stp region-configuration

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

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

# 分别在端口GigabitEthernet1/0/1、GigabitEthernet1/0/2和GigabitEthernet1/0/3上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceB] interface gigabitethernet 1/0/1

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

[DeviceB-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/1] quit

[DeviceB] interface gigabitethernet 1/0/2

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

[DeviceB-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/2] quit

[DeviceB] interface gigabitethernet 1/0/3

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

[DeviceB-GigabitEthernet1/0/3] qos trust dot1p

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

[DeviceB-GigabitEthernet1/0/3] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/3] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceB] rrpp domain 1

 Info: Create a new domain.

[DeviceB-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceB-rrpp-domain1] ring 1 enable

# 配置本设备为子环2的边缘节点,边缘端口为GigabitEthernet1/0/3,并开启该环。

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

[DeviceB-rrpp-domain1] ring 2 enable

[DeviceB-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceB] rrpp enable

(3)     配置Device C

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceC> system-view

[DeviceC] vlan 2 to 30

 Please wait... Done.

[DeviceC] stp region-configuration

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

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

# 分别在端口GigabitEthernet1/0/1、GigabitEthernet1/0/2和GigabitEthernet1/0/3上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceC] interface gigabitethernet 1/0/1

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

[DeviceC-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceC-GigabitEthernet1/0/1] quit

[DeviceC] interface gigabitethernet 1/0/2

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

[DeviceC-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceC-GigabitEthernet1/0/2] quit

[DeviceC] interface gigabitethernet 1/0/3

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

[DeviceC-GigabitEthernet1/0/3] qos trust dot1p

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

[DeviceC-GigabitEthernet1/0/3] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceC-GigabitEthernet1/0/3] quit

# 创建RRPP1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN

[DeviceC] rrpp domain 1

 Info: Create a new domain.

[DeviceC-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceC-rrpp-domain1] ring 1 enable

# 配置本设备为子环2的辅助边缘节点,边缘端口为GigabitEthernet1/0/3,并开启该环。

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

[DeviceC-rrpp-domain1] ring 2 enable

[DeviceC-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceC] rrpp enable

(4)     配置Device D

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceD> system-view

[DeviceD] vlan 2 to 30

 Please wait... Done.

[DeviceD] stp region-configuration

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

[DeviceD-mst-region] active region-configuration

[DeviceD-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceD] interface gigabitethernet 1/0/1

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

[DeviceD-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceD-GigabitEthernet1/0/1] quit

[DeviceD] interface gigabitethernet 1/0/2

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

[DeviceD-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceD-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceD] rrpp domain 1

 Info: Create a new domain.

[DeviceD-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceD-rrpp-domain1] ring 1 enable

[DeviceD-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceD] rrpp enable

(5)     配置Device E

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceE> system-view

[DeviceE] vlan 2 to 30

 Please wait... Done.

[DeviceE] stp region-configuration

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

[DeviceE-mst-region] active region-configuration

[DeviceE-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceE] interface gigabitethernet 1/0/1

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

[DeviceE-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceE-GigabitEthernet1/0/1] quit

[DeviceE] interface gigabitethernet 1/0/2

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

[DeviceE-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceE-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceE] rrpp domain 1

 Info: Create a new domain.

[DeviceE-rrpp-domain1] control-vlan 4092

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

# 配置本设备为子环2的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceE-rrpp-domain1] ring 2 enable

[DeviceE-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceE] rrpp enable

1.4.6  验证配置

配置完成后,用户可以使用display rrpp verbose命令查看各设备上RRPP的配置和运行情况。具体方法请参见“1.3.6  验证配置”。

1.4.7  配置文件

说明

S5500-SI系列交换机不支持port link-mode bridge命令。

 

·     Device A

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 1 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

#

rrpp enable

#

·     Device B

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

 ring 2 node-mode edge edge-port GigabitEthernet1/0/3

 ring 2 enable

#

rrpp enable

#

·     Device C

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

 ring 2 node-mode assistant-edge edge-port GigabitEthernet1/0/3

 ring 2 enable

#

rrpp enable

#

·     Device D

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

#

rrpp enable

#

·     Device E

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 2 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 1

 ring 2 enable

#

rrpp enable

#

1.5  RRPP双边双归属环拓扑典型配置举例

1.5.1  适用产品和版本

表1-3 配置适用的产品与软件版本关系

产品

软件版本

S10500系列以太网交换机

Release 1120系列,Release 1130系列,Release 1200系列

S5820X&S5800系列以太网交换机

Release 1808

S5830系列以太网交换机

Release 1115,Release 1118

S5500-EI&S5500-SI系列以太网交换机

Release 2220

 

1.5.2  组网需求

1-17所示,多台接入层设备以环网形式接入汇聚层,汇聚层也采用环网结构。

现要求在该环网上配置RRPP功能,能够使较为复杂的组网具有以下功能:

·     当以太网环完整时,各环的节点之间能够通信且不会存在数据环路引起的广播风暴。

·     当以太网环上一条链路断开时能迅速恢复环网上各个节点之间的通信通路,具备较高的收敛速度。

·     当以太网环上断开的链路恢复后,该链路能够重新承载数据流量,且环网不存在环路现象。

图1-3 RRPP双边双归属环拓扑组网示意图

 

1.5.3  配置思路

·     当某个RRPP域内存在多个环公共相交于某个环时,选择公共环作为主环,其他环作为子环。本案例选择Ring 1作为主环,Ring 2~5作为子环。

·     对于主环而言,需要选择性能较强大的设备作为主节点;对于子环而言,选择除公共节点外的设备作为主节点。本案例选择Device A作为Ring 1的主节点,选择Device E、Device F、Device G和Device H作为各自子环的主节点。

1.5.4  配置注意事项

·     为避免由于关闭STP功能而造成的环路问题,请在完成环网内所有设备的RRPP配置后,再进行环网的完全连接。

·     为了激活当前设备的RRPP域,必须同时开启RRPP协议和RRPP环。

·     为避免子环的Hello报文在主环上形成环路,在子环的主节点上开启子环之前,请先在主环的主节点上开启主环。在边缘节点和辅助边缘节点上,需对主环和子环分别进行操作:开启子环前必须先开启主环。

·     为了确保端口对RRPP协议报文的处理优先于数据报文,请将所有接入RRPP环的端口的信任模式配置为信认报文的802.1p优先级。对于S5820X&S5800、S5500-EI&S5500-SI系列以太网交换机,配置方法为在以太网端口视图下执行qos trust dot1p命令;对于S10500系列以太网交换机,配置方法为在以太网端口视图下执行undo qos trust命令(缺省情况下为信任报文的802.1p优先级,可以无需配置)。

1.5.5  配置步骤

(1)     配置Device A

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceA> system-view

[DeviceA] vlan 2 to 30

 Please wait... Done.

[DeviceA] stp region-configuration

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

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 分别在端口GigabitEthernet1/0/1~GigabitEthernet1/0/4上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceA] interface gigabitethernet 1/0/1

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

[DeviceA-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceA-GigabitEthernet1/0/1] quit

[DeviceA] interface gigabitethernet 1/0/2

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

[DeviceA-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceA-GigabitEthernet1/0/2] quit

[DeviceA] interface gigabitethernet 1/0/3

[DeviceA-GigabitEthernet1/0/3] undo stp enable

[DeviceA-GigabitEthernet1/0/3] qos trust dot1p

[DeviceA-GigabitEthernet1/0/3] port link-type trunk

[DeviceA-GigabitEthernet1/0/3] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceA-GigabitEthernet1/0/3] quit

[DeviceA] interface gigabitethernet 1/0/4

[DeviceA-GigabitEthernet1/0/4] undo stp enable

[DeviceA-GigabitEthernet1/0/4] qos trust dot1p

[DeviceA-GigabitEthernet1/0/4] port link-type trunk

[DeviceA-GigabitEthernet1/0/4] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceA-GigabitEthernet1/0/4] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceA] rrpp domain 1

 Info: Create a new domain.

[DeviceA-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环Ring 1的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceA-rrpp-domain1] ring 1 enable

# 配置本设备为子环Ring 2的边缘节点,边缘端口为GigabitEthernet1/0/4,并开启该环。

[DeviceA-rrpp-domain1] ring 2 node-mode edge edge-port gigabitethernet 1/0/4

[DeviceA-rrpp-domain1] ring 2 enable

# 配置本设备为子环Ring 3的边缘节点,边缘端口为GigabitEthernet1/0/3,并开启该环。

[DeviceA-rrpp-domain1] ring 3 node-mode edge edge-port gigabitethernet 1/0/3

[DeviceA-rrpp-domain1] ring 3 enable

[DeviceA-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceA] rrpp enable

(2)     配置Device B

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceB> system-view

[DeviceB] vlan 2 to 30

 Please wait... Done.

[DeviceB] stp region-configuration

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

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

# 分别在端口GigabitEthernet1/0/1~GigabitEthernet1/0/4上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceB] interface gigabitethernet 1/0/1

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

[DeviceB-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/1] quit

[DeviceB] interface gigabitethernet 1/0/2

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

[DeviceB-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/2] quit

[DeviceB] interface gigabitethernet 1/0/3

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

[DeviceB-GigabitEthernet1/0/3] qos trust dot1p

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

[DeviceB-GigabitEthernet1/0/3] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/3] quit

[DeviceB] interface gigabitethernet 1/0/4

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

[DeviceB-GigabitEthernet1/0/4] qos trust dot1p

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

[DeviceB-GigabitEthernet1/0/4] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/4] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceB] rrpp domain 1

 Info: Create a new domain.

[DeviceB-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环Ring 1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceB-rrpp-domain1] ring 1 enable

# 配置本设备为子环Ring 2的辅助边缘节点,边缘端口为GigabitEthernet1/0/4,并开启该环。

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

[DeviceB-rrpp-domain1] ring 2 enable

# 配置本设备为子环Ring 3的辅助边缘节点,边缘端口为GigabitEthernet1/0/3,并开启该环。

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

[DeviceB-rrpp-domain1] ring 3 enable

[DeviceB-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceB] rrpp enable

(3)     配置Device C

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceC> system-view

[DeviceC] vlan 2 to 30

 Please wait... Done.

[DeviceC] stp region-configuration

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

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

# 分别在端口GigabitEthernet1/0/1~GigabitEthernet1/0/4上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceC] interface gigabitethernet 1/0/1

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

[DeviceC-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceC-GigabitEthernet1/0/1] quit

[DeviceC] interface gigabitethernet 1/0/2

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

[DeviceC-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceC-GigabitEthernet1/0/2] quit

[DeviceC] interface gigabitethernet 1/0/3

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

[DeviceC-GigabitEthernet1/0/3] qos trust dot1p

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

[DeviceC-GigabitEthernet1/0/3] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceC-GigabitEthernet1/0/3] quit

[DeviceC] interface gigabitethernet 1/0/4

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

[DeviceC-GigabitEthernet1/0/4] qos trust dot1p

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

[DeviceC-GigabitEthernet1/0/4] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceC-GigabitEthernet1/0/4] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceC] rrpp domain 1

 Info: Create a new domain.

[DeviceC-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环Ring 1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceC-rrpp-domain1] ring 1 enable

# 配置本设备为子环Ring 4的辅助边缘节点,边缘端口为GigabitEthernet1/0/3,并开启该环。

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

[DeviceC-rrpp-domain1] ring 4 enable

# 配置本设备为子环Ring 5的辅助边缘节点,边缘端口为GigabitEthernet1/0/4,并开启该环。

[DeviceC-rrpp-domain1] ring 5 node-mode assistant-edge edge-port gigabitethernet 1/0/4

[DeviceC-rrpp-domain1] ring 5 enable

[DeviceC-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceC] rrpp enable

(4)     配置Device D

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceD> system-view

[DeviceD] vlan 2 to 30

 Please wait... Done.

[DeviceD] stp region-configuration

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

[DeviceD-mst-region] active region-configuration

[DeviceD-mst-region] quit

# 分别在端口GigabitEthernet1/0/1~GigabitEthernet1/0/4上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceD] interface gigabitethernet 1/0/1

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

[DeviceD-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceD-GigabitEthernet1/0/1] quit

[DeviceD] interface gigabitethernet 1/0/2

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

[DeviceD-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceD-GigabitEthernet1/0/2] quit

[DeviceD] interface gigabitethernet 1/0/3

[DeviceD-GigabitEthernet1/0/3] undo stp enable

[DeviceD-GigabitEthernet1/0/3] qos trust dot1p

[DeviceD-GigabitEthernet1/0/3] port link-type trunk

[DeviceD-GigabitEthernet1/0/3] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceD-GigabitEthernet1/0/3] quit

[DeviceD] interface gigabitethernet 1/0/4

[DeviceD-GigabitEthernet1/0/4] undo stp enable

[DeviceD-GigabitEthernet1/0/4] qos trust dot1p

[DeviceD-GigabitEthernet1/0/4] port link-type trunk

[DeviceD-GigabitEthernet1/0/4] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceD-GigabitEthernet1/0/4] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceD] rrpp domain 1

 Info: Create a new domain.

[DeviceD-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环Ring 1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceD-rrpp-domain1] ring 1 enable

# 配置本设备为子环Ring 4的边缘节点,边缘端口为GigabitEthernet1/0/3,并开启该环。

[DeviceD-rrpp-domain1] ring 4 node-mode edge edge-port gigabitethernet 1/0/3

[DeviceD-rrpp-domain1] ring 4 enable

# 配置本设备为子环Ring 5的边缘节点,边缘端口为GigabitEthernet1/0/4,并开启该环。

[DeviceD-rrpp-domain1] ring 5 node-mode edge edge-port gigabitethernet 1/0/4

[DeviceD-rrpp-domain1] ring 5 enable

[DeviceD-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceD] rrpp enable

(5)     配置Device E

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceE> system-view

[DeviceE] vlan 2 to 30

 Please wait... Done.

[DeviceE] stp region-configuration

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

[DeviceE-mst-region] active region-configuration

[DeviceE-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceE] interface gigabitethernet 1/0/1

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

[DeviceE-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceE-GigabitEthernet1/0/1] quit

[DeviceE] interface gigabitethernet 1/0/2

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

[DeviceE-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceE-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceE] rrpp domain 1

 Info: Create a new domain.

[DeviceE-rrpp-domain1] control-vlan 4092

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

# 配置本设备为子环Ring 2的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceE-rrpp-domain1] ring 2 enable

[DeviceE-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceE] rrpp enable

(6)     配置Device F

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceF> system-view

[DeviceF] vlan 2 to 30

 Please wait... Done.

[DeviceF] stp region-configuration

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

[DeviceF-mst-region] active region-configuration

[DeviceF-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceF] interface gigabitethernet 1/0/1

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

[DeviceF-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceF-GigabitEthernet1/0/1] quit

[DeviceF] interface gigabitethernet 1/0/2

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

[DeviceF-GigabitEthernet1/0/2] qos trust dot1p

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

[DeviceF-GigabitEthernet1/0/2] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceF-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceF] rrpp domain 1

 Info: Create a new domain.

[DeviceF-rrpp-domain1] control-vlan 4092

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

# 配置本设备为子环Ring 3的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceF-rrpp-domain1] ring 3 enable

[DeviceF-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceF] rrpp enable

(7)     配置Device G

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceG> system-view

[DeviceG] vlan 2 to 30

 Please wait... Done.

[DeviceG] stp region-configuration

[DeviceG-mst-region] instance 1 vlan 2 to 30

[DeviceG-mst-region] active region-configuration

[DeviceG-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceG] interface gigabitethernet 1/0/1

[DeviceG-GigabitEthernet1/0/1] undo stp enable

[DeviceG-GigabitEthernet1/0/1] qos trust dot1p

[DeviceG-GigabitEthernet1/0/1] port link-type trunk

[DeviceG-GigabitEthernet1/0/1] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceG-GigabitEthernet1/0/1] quit

[DeviceG] interface gigabitethernet 1/0/2

[DeviceG-GigabitEthernet1/0/2] undo stp enable

[DeviceG-GigabitEthernet1/0/2] qos trust dot1p

[DeviceG-GigabitEthernet1/0/2] port link-type trunk

[DeviceG-GigabitEthernet1/0/2] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceG-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceG] rrpp domain 1

 Info: Create a new domain.

[DeviceG-rrpp-domain1] control-vlan 4092

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

# 配置本设备为子环Ring 4的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

[DeviceG-rrpp-domain1] ring 4 node-mode master primary-port gigabitethernet 1/0/1 secondary-port gigabitethernet 1/0/2 level 1

[DeviceG-rrpp-domain1] ring 4 enable

[DeviceG-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceG] rrpp enable

(8)     配置Device H

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceH> system-view

[DeviceH] vlan 2 to 30

 Please wait... Done.

[DeviceH] stp region-configuration

[DeviceH-mst-region] instance 1 vlan 2 to 30

[DeviceH-mst-region] active region-configuration

[DeviceH-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceH] interface gigabitethernet 1/0/1

[DeviceH-GigabitEthernet1/0/1] undo stp enable

[DeviceH-GigabitEthernet1/0/1] qos trust dot1p

[DeviceH-GigabitEthernet1/0/1] port link-type trunk

[DeviceH-GigabitEthernet1/0/1] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceH-GigabitEthernet1/0/1] quit

[DeviceH] interface gigabitethernet 1/0/2

[DeviceH-GigabitEthernet1/0/2] undo stp enable

[DeviceH-GigabitEthernet1/0/2] qos trust dot1p

[DeviceH-GigabitEthernet1/0/2] port link-type trunk

[DeviceH-GigabitEthernet1/0/2] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceH-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceH] rrpp domain 1

 Info: Create a new domain.

[DeviceH-rrpp-domain1] control-vlan 4092

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

# 配置本设备为子环Ring 5的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

[DeviceH-rrpp-domain1] ring 5 node-mode master primary-port gigabitethernet 1/0/1 secondary-port gigabitethernet 1/0/2 level 1

[DeviceH-rrpp-domain1] ring 5 enable

[DeviceH-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceH] rrpp enable

1.5.6  验证配置

配置完成后,用户可以使用display rrpp verbose命令查看各设备上RRPP的配置和运行情况。具体方法请参见“1.3.6  验证配置”。

1.5.7  配置文件

说明

S5500-SI系列交换机不支持port link-mode bridge命令。

 

·     Device A

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/4

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 1 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

 ring 2 node-mode edge edge-port GigabitEthernet1/0/4

 ring 2 enable

 ring 3 node-mode edge edge-port GigabitEthernet1/0/3

 ring 3 enable

#

rrpp enable

#

·     Device B

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/4

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

 ring 2 node-mode assistant-edge edge-port GigabitEthernet1/0/4

 ring 2 enable

 ring 3 node-mode assistant-edge edge-port GigabitEthernet1/0/3

 ring 3 enable

#

rrpp enable

#

·     Device C

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/4

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

 ring 4 node-mode assistant-edge edge-port GigabitEthernet1/0/3

 ring 4 enable

 ring 5 node-mode assistant-edge edge-port GigabitEthernet1/0/4

 ring 5 enable

#

rrpp enable

#

·     Device D

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/4

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

 ring 4 node-mode edge edge-port GigabitEthernet1/0/3

 ring 4 enable

 ring 5 node-mode edge edge-port GigabitEthernet1/0/4

 ring 5 enable

#

rrpp enable

#

·     Device E

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 2 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 1

 ring 2 enable

#

rrpp enable

#

·     Device F

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 3 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 1

 ring 3 enable

#

rrpp enable

#

·     Device G

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 4 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 1

 ring 4 enable

#

rrpp enable

#

·     Device H

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 5 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 1

 ring 5 enable

#

rrpp enable

#

1.6  RRPP相交环负载分担拓扑典型配置举例

1.6.1  适用产品和版本

表1-4 配置适用的产品与软件版本关系

产品

软件版本

S10500系列以太网交换机

Release 1120系列,Release 1130系列,Release 1200系列

S5820X&S5800系列以太网交换机

Release 1808

S5830系列以太网交换机

Release 1115,Release 1118

S5500-EI&S5500-SI系列以太网交换机

Release 2220

 

1.6.2  组网需求

图1-4所示,两个接入层网络以环网形式通过相同的两台设备接入汇聚层,汇聚层网络也采用环网结构。

现要求在该环网上配置RRPP功能,实现:

·     具有一般RRPP相交环的高可靠性和较强的收敛性能。

·     流量的负载分担,即不同VLAN的流量沿不同的路径进行转发(VLAN 12的流量沿Ring 1和Ring 2所在的网络进行转发,VLAN 11的流量沿Ring 1和Ring 3所在的网络进行转发)。

·     减少Edge-Hello报文的收发数量。

图1-4 RRPP相交环负载分担拓扑组网示意图

 

1.6.3  配置思路

·     为了实现不同VLAN的流量沿不同的路径进行转发,要求通过在同一个环网上配置多个RRPP域,使不同RRPP域发送不同VLAN的流量。本案例将Ring 1和Ring 3配置为Domain 1的主环和子环,将Ring 1和Ring 2配置为Domain 2的主环和子环。

·     主环需要透传子环的保护VLAN和控制VLAN内的流量,需要有较强的数据传输能力。本案例选择Ring 1作为Domain 1和Domain 2的主环,Ring 2和Ring 3则作为各自RRPP域内的子环。

·     对于主环而言,需要选择性能较强大的设备作为主节点;对于子环而言,选择除公共节点外的设备作为主节点。本案例选择Device A作为Ring 1的主节点,选择Device E和Device F、作为各自子环的主节点。

·     为了减少Edge-Hello报文的收发数量,用户可以采用环组机制,即将具有相同边缘节点/辅助边缘节点配置的一组子环加入环组。本案例将Ring 2和Ring 3加入同一个环组内。

1.6.4  配置注意事项

·     为避免由于关闭STP功能而造成的环路问题,请在完成环网内所有设备的RRPP配置后,再进行环网的完全连接。

·     为了激活当前设备的RRPP域,必须同时开启RRPP协议和RRPP环。

·     为避免子环的Hello报文在主环上形成环路,在子环的主节点上开启子环之前,请先在主环的主节点上开启主环。在边缘节点和辅助边缘节点上,需对主环和子环分别进行操作:开启子环前必须先开启主环。

·     如果需要将激活的环加入环组,需要按照下述顺序进行操作:先在辅助边缘节点将环加入环组,再在边缘节点将环加入环组。

·     边缘节点环组和对应的辅助边缘节点环组的配置和激活状态必须相同。

·     为了确保端口对RRPP协议报文的处理优先于数据报文,请将所有接入RRPP环的端口的信任模式配置为信认报文的802.1p优先级。对于S5820X&S5800、S5500-EI&S5500-SI系列以太网交换机,配置方法为在以太网端口视图下执行qos trust dot1p命令;对于S10500系列以太网交换机,配置方法为在以太网端口视图下执行undo qos trust命令(缺省情况下为信任报文的802.1p优先级,可以无需配置)。

1.6.5  配置步骤

(1)     配置Device A

# 创建VLAN 11和12,将VLAN 11和12分别映射到MSTI 1和MSTI 2上,并激活MST域的配置。

<DeviceA> system-view

[DeviceA] vlan 11 to 12

 Please wait... Done.

[DeviceA] stp region-configuration

[DeviceA-mst-region] instance 1 vlan 11

[DeviceA-mst-region] instance 2 vlan 12

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 分别在端口GigabitEthernet1/0/1GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,将端口配置为Trunk端口,禁止VLAN 1通过、允许VLAN 1112通过,并配置其缺省VLANVLAN 11

[DeviceA] interface gigabitethernet 1/0/1

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

[DeviceA-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceA-GigabitEthernet1/0/1] quit

[DeviceA] interface gigabitethernet 1/0/2

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

[DeviceA-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceA-GigabitEthernet1/0/2] quit

# 创建RRPP1,将VLAN 100配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN

[DeviceA] rrpp domain 1

 Info: Create a new domain.

[DeviceA-rrpp-domain1] control-vlan 100

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

# 在RRPP域1内配置本设备为主环1的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceA-rrpp-domain1] ring 1 enable

[DeviceA-rrpp-domain1] quit

# 创建RRPP域2,将VLAN 105配置为该域的控制VLAN,并将MSTI 2所映射的VLAN配置为该域的保护VLAN。

[DeviceA] rrpp domain 2

 Info: Create a new domain.

[DeviceA-rrpp-domain2] control-vlan 105

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

# 在RRPP域2内配置本设备为主环1的主节点,主端口为GigabitEthernet1/0/2,副端口为GigabitEthernet1/0/1,并开启该环。

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

[DeviceA-rrpp-domain2] ring 1 enable

[DeviceA-rrpp-domain2] quit

# 开启RRPP协议。

[DeviceA] rrpp enable

(2)     配置Device B

# 创建VLAN 11和12,将VLAN 11和12分别映射到MSTI 1和MSTI 2上,并激活MST域的配置。

<DeviceB> system-view

[DeviceB] vlan 11 to 12

 Please wait... Done.

[DeviceB] stp region-configuration

[DeviceB-mst-region] instance 1 vlan 11

[DeviceB-mst-region] instance 2 vlan 12

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

# 分别在端口GigabitEthernet1/0/1GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,将端口配置为Trunk端口,禁止VLAN 1通过、允许VLAN 1112通过,并配置其缺省VLANVLAN 11

[DeviceB] interface gigabitethernet 1/0/1

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

[DeviceB-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceB-GigabitEthernet1/0/1] quit

[DeviceB] interface gigabitethernet 1/0/2

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

[DeviceB-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceB-GigabitEthernet1/0/2] quit

# 在端口GigabitEthernet1/0/3上关闭STP功能,配置端口信任报文的802.1p优先级,将端口配置为Trunk端口,禁止VLAN 1通过、允许VLAN 12通过,并配置其缺省VLANVLAN 12

[DeviceB] interface gigabitethernet 1/0/3

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

[DeviceB-GigabitEthernet1/0/3] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceB-GigabitEthernet1/0/3] quit

# 在端口GigabitEthernet1/0/4上关闭STP功能,配置端口信任报文的802.1p优先级,将端口配置为Trunk端口,禁止VLAN 1通过、允许VLAN 11通过,并配置其缺省VLANVLAN 11

[DeviceB] interface gigabitethernet 1/0/4

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

[DeviceB-GigabitEthernet1/0/4] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceB-GigabitEthernet1/0/4] quit

# 创建RRPP域1,将VLAN 100配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceB] rrpp domain 1

 Info: Create a new domain.

[DeviceB-rrpp-domain1] control-vlan 100

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

# RRPP1内配置本设备为主环1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceB-rrpp-domain1] ring 1 enable

# 在RRPP域1内配置本设备为子环3的辅助边缘节点,边缘端口为GigabitEthernet1/0/4,并开启该环。

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

[DeviceB-rrpp-domain1] ring 3 enable

[DeviceB-rrpp-domain1] quit

# 创建RRPP域2,将VLAN 105配置为该域的控制VLAN,并将MSTI 2所映射的VLAN配置为该域的保护VLAN。

[DeviceB] rrpp domain 2

 Info: Create a new domain.

[DeviceB-rrpp-domain2] control-vlan 105

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

# RRPP2内配置本设备为主环1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceB-rrpp-domain2] ring 1 enable

# 在RRPP域2内配置本设备为子环2的辅助边缘节点,边缘端口为GigabitEthernet1/0/3,并开启该环。

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

[DeviceB-rrpp-domain2] ring 2 enable

[DeviceB-rrpp-domain2] quit

# 开启RRPP协议。

[DeviceB] rrpp enable

(3)     配置Device C

# 创建VLAN 11和12,将VLAN 11和12分别映射到MSTI 1和MSTI 2上,并激活MST域的配置。

<DeviceC> system-view

[DeviceC] vlan 11 to 12

 Please wait... Done.

[DeviceC] stp region-configuration

[DeviceC-mst-region] instance 1 vlan 11

[DeviceC-mst-region] instance 2 vlan 12

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

# 分别在端口GigabitEthernet1/0/1GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,将端口配置为Trunk端口,禁止VLAN 1通过、允许VLAN 1112通过,并配置其缺省VLANVLAN 11

[DeviceC] interface gigabitethernet 1/0/1

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

[DeviceC-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceC-GigabitEthernet1/0/1] quit

[DeviceC] interface gigabitethernet 1/0/2

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

[DeviceC-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceC-GigabitEthernet1/0/2] quit

# 在端口GigabitEthernet1/0/3上关闭STP功能,配置端口信任报文的802.1p优先级,将端口配置为Trunk端口,禁止VLAN 1通过、允许VLAN 12通过,并配置其缺省VLANVLAN 12

[DeviceC] interface gigabitethernet 1/0/3

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

[DeviceC-GigabitEthernet1/0/3] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceC-GigabitEthernet1/0/3] quit

# 在端口GigabitEthernet1/0/4上关闭STP功能,配置端口信任报文的802.1p优先级,将端口配置为Trunk端口,禁止VLAN 1通过、允许VLAN 11通过,并配置其缺省VLANVLAN 11

[DeviceC] interface gigabitethernet 1/0/4

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

[DeviceC-GigabitEthernet1/0/4] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceC-GigabitEthernet1/0/4] quit

# 创建RRPP1,将VLAN 100配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN

[DeviceC] rrpp domain 1

 Info: Create a new domain.

[DeviceC-rrpp-domain1] control-vlan 100

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

# RRPP1内配置本设备为主环1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceC-rrpp-domain1] ring 1 enable

# RRPP1内配置本设备为子环3的边缘节点,边缘端口为GigabitEthernet1/0/4,并开启该环。

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

[DeviceC-rrpp-domain1] ring 3 enable

[DeviceC-rrpp-domain1] quit

# 创建RRPP2,将VLAN 105配置为该域的控制VLAN,并将MSTI 2所映射的VLAN配置为该域的保护VLAN

[DeviceC] rrpp domain 2

 Info: Create a new domain.

[DeviceC-rrpp-domain2] control-vlan 105

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

# RRPP2内配置本设备为主环1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceC-rrpp-domain2] ring 1 enable

# RRPP2内配置本设备为子环2的边缘节点,边缘端口为GigabitEthernet1/0/3,并开启该环。

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

[DeviceC-rrpp-domain2] ring 2 enable

[DeviceC-rrpp-domain2] quit

# 开启RRPP协议。

[DeviceC] rrpp enable

(4)     配置Device D

# 创建VLAN 11和12,将VLAN 11和12分别映射到MSTI 1和MSTI 2上,并激活MST域的配置。

<DeviceD> system-view

[DeviceD] vlan 11 to 12

 Please wait... Done.

[DeviceD] stp region-configuration

[DeviceD-mst-region] instance 1 vlan 11

[DeviceD-mst-region] instance 2 vlan 12

[DeviceD-mst-region] active region-configuration

[DeviceD-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,将端口配置为Trunk端口,禁止VLAN 1通过、允许VLAN 1112通过,并配置其缺省VLANVLAN 11

[DeviceD] interface gigabitethernet 1/0/1

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

[DeviceD-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceD-GigabitEthernet1/0/1] quit

[DeviceD] interface gigabitethernet 1/0/2

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

[DeviceD-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceD-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 100配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceD] rrpp domain 1

 Info: Create a new domain.

[DeviceD-rrpp-domain1] control-vlan 100

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

# 在RRPP域1内配置本设备为主环1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceD-rrpp-domain1] ring 1 enable

[DeviceD-rrpp-domain1] quit

# 创建RRPP域2,将VLAN 105配置为该域的控制VLAN,并将MSTI 2所映射的VLAN配置为该域的保护VLAN。

[DeviceD] rrpp domain 2

 Info: Create a new domain.

[DeviceD-rrpp-domain2] control-vlan 105

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

# 在RRPP域2内配置本设备为主环1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceD-rrpp-domain2] ring 1 enable

[DeviceD-rrpp-domain2] quit

# 开启RRPP协议。

[DeviceD] rrpp enable

(5)     配置Device E

# 创建VLAN 12,将VLAN 12映射到MSTI 2上,并激活MST域的配置。

<DeviceE> system-view

[DeviceE] vlan 12

 Please wait... Done.

[DeviceE-vlan12] quit

[DeviceE] stp region-configuration

[DeviceE-mst-region] instance 2 vlan 12

[DeviceE-mst-region] active region-configuration

[DeviceE-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,将端口配置为Trunk端口,禁止VLAN 1通过、允许VLAN 12通过,并配置其缺省VLAN为VLAN 12。

[DeviceE] interface gigabitethernet 1/0/1

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

[DeviceE-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceE-GigabitEthernet1/0/1] quit

[DeviceE] interface gigabitethernet 1/0/2

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

[DeviceE-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceE-GigabitEthernet1/0/2] quit

# 创建RRPP域2,将VLAN 105配置为该域的控制VLAN,并将MSTI 2所映射的VLAN配置为该域的保护VLAN。

[DeviceE] rrpp domain 2

 Info: Create a new domain.

[DeviceE-rrpp-domain2] control-vlan 105

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

# 在RRPP域2内配置本设备为子环2的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceE-rrpp-domain2] ring 2 enable

[DeviceE-rrpp-domain2] quit

# 开启RRPP协议。

[DeviceE] rrpp enable

(6)     配置Device F

# 创建VLAN 11,将VLAN 11映射到MSTI 1上,并激活MST域的配置。

<DeviceF> system-view

[DeviceF] vlan 11

 Please wait... Done.

[DeviceF-vlan11] quit

[DeviceF] stp region-configuration

[DeviceF-mst-region] instance 1 vlan 11

[DeviceF-mst-region] active region-configuration

[DeviceF-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,将端口配置为Trunk端口,禁止VLAN 1通过、允许VLAN 11通过,并配置其缺省VLANVLAN 11

[DeviceF] interface gigabitethernet 1/0/1

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

[DeviceF-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceF-GigabitEthernet1/0/1] quit

[DeviceF] interface gigabitethernet 1/0/2

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

[DeviceF-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

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

 Please wait... Done.

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

[DeviceF-GigabitEthernet1/0/2] quit

# 创建RRPP1,将VLAN 100配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN

[DeviceF] rrpp domain 1

 Info: Create a new domain.

[DeviceF-rrpp-domain1] control-vlan 100

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

# 在RRPP域1内配置本设备为子环3的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceF-rrpp-domain1] ring 3 enable

[DeviceF-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceF] rrpp enable

(7)     完成以上配置后,在Device B和Device C上分别配置RRPP环组

# 在Device B上创建RRPP环组1,并为其配置子环。

[DeviceB] rrpp ring-group 1

[DeviceB-rrpp-ring-group1] domain 2 ring 2

[DeviceB-rrpp-ring-group1] domain 1 ring 3

# 在Device C上创建RRPP环组1,并为其配置子环。

[DeviceC] rrpp ring-group 1

[DeviceC-rrpp-ring-group1] domain 2 ring 2

[DeviceC-rrpp-ring-group1] domain 1 ring 3

1.6.6  验证配置

说明

S5830、S5500-EI&S5500-SI系列以太网交换机不支持RRPP快速检测,显示信息中不会出现RRPP快速检测相关内容。

 

1. 查看RRPP相交环的高可靠性和较强的收敛性能

配置完成后,用户可以使用display rrpp verbose命令查看各设备上RRPP的配置和运行情况。具体方法请参见“1.3.6  验证配置”。

2. 查看是否实现流量的负载分担

# 显示RRPP的摘要信息。

<DeviceA> display rrpp brief

Flags for Node Mode :

M –- Master , T -- Transit , E -- Edge , A -- Assistant-Edge

 

RRPP Protocol Status: Enable

Number of RRPP Domains: 2

 

Domain ID     : 1

Control VLAN  : Major 100    Sub 101

Protected VLAN: Reference Instance 1

Hello Timer   : 1  sec  Fail Timer : 3  sec

Fast Detection Status: Disable

Fast Hello Timer: 200 ms     Fast Fail Timer: 600 ms

 Ring  Ring   Node  Primary/Common             Secondary/Edge             Enable

 ID    Level  Mode  Port                       Port                       Status

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

 1     0      M     GE1/0/1                    GE1/0/2                    Yes

 

Domain ID     : 2

Control VLAN  : Major 105    Sub 106

Protected VLAN: Reference Instance 2

Hello Timer   : 1  sec  Fail Timer : 3  sec

Fast Detection Status: Disable

Fast Hello Timer: 200 ms     Fast Fail Timer: 600 ms

 Ring  Ring   Node  Primary/Common             Secondary/Edge             Enable

 ID    Level  Mode  Port                       Port                       Status

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

 1     0      M     GE1/0/1                    GE1/0/2                    Yes

上述信息表明,MSTI 1所映射的VLAN为RRPP域1的保护VLANMSTI 2所映射的VLAN为RRPP域2的保护VLAN,而本案例配置了MSTI 1所映射的VLANVLAN 11MSTI 2所映射的VLANVLAN 12,所以VLAN 11VLAN 12的流量仅能够在各自的RRPP域内转发,从而实现流量的负载分担。

3. 查看环组配置是否生效

# 显示所有RRPP环组的配置信息。

<DeviceB> display rrpp ring-group

Ring Group 1:

Domain 1 Ring 3

Domain 2 Ring 2

Domain 1 Ring 3 is the sending ring

上述信息表明,RRPP环组1已经生效,只有Device B上的Ring 3发送Edge-Hello报文了。

1.6.7  配置文件

说明

S5500-SI系列交换机不支持port link-mode bridge命令。

 

·     Device A

#

vlan 11 to 12

#

stp region-configuration

 instance 1 vlan 11

 instance 2 vlan 12

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11 to 12

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11 to 12

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 100

 protected-vlan reference-instance 1

 ring 1 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

#

rrpp domain 2

 control-vlan 105

 protected-vlan reference-instance 1

 ring 1 node-mode master primary-port GigabitEthernet1/0/2 secondary-port GigabitEthernet1/0/1 level 0

 ring 1 enable

#

rrpp enable

#

·     Device B

#

vlan 11 to 12

#

stp region-configuration

 instance 1 vlan 11

 instance 2 vlan 12

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11 to 12

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11 to 12

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 12

 port trunk pvid vlan 12

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/4

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 100

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

 ring 3 node-mode assistant-edge edge-port GigabitEthernet1/0/4

 ring 3 enable

#

rrpp domain 2

 control-vlan 105

 protected-vlan reference-instance 2

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

 ring 2 node-mode assistant-edge edge-port GigabitEthernet1/0/3

 ring 2 enable

#

rrpp ring-group 1

 domain 2 ring 2

 domain 1 ring 3

#

rrpp enable

#

·     Device C

#

vlan 11 to 12

#

stp region-configuration

 instance 1 vlan 11

 instance 2 vlan 12

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11 to 12

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11 to 12

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 12

 port trunk pvid vlan 12

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/4

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 100

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

 ring 3 node-mode edge edge-port GigabitEthernet1/0/4

 ring 3 enable

#

rrpp domain 2

 control-vlan 105

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

 ring 2 node-mode edge edge-port GigabitEthernet1/0/3

 ring 2 enable

#

rrpp ring-group 1

 domain 2 ring 2

 domain 1 ring 3

#

rrpp enable

#

·     Device D

#

vlan 11 to 12

#

stp region-configuration

 instance 1 vlan 11

 instance 2 vlan 12

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11 to 12

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11 to 12

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 100

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

#

rrpp domain 2

 control-vlan 105

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

#

rrpp enable

#

·     Device E

#

vlan 12

#

stp region-configuration

 instance 2 vlan 12

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 12

 port trunk pvid vlan 12

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 12

 port trunk pvid vlan 12

 stp disable

 qos trust dot1p

#

rrpp domain 2

 control-vlan 105

 protected-vlan reference-instance 2

 ring 2 node-mode master primary-port GigabitEthernet1/0/2 secondary-port GigabitEthernet1/0/1 level 1

 ring 2 enable

#

rrpp enable

#

·     Device F

#

vlan 11

#

stp region-configuration

 instance 1 vlan 11

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11

 port trunk pvid vlan 11

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 100

 protected-vlan reference-instance 1

 ring 3 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 1

 ring 3 enable

#

rrpp enable

#

1.7  RRPP快速检测典型配置举例

1.7.1  适用产品和版本

表1-5 配置适用的产品与软件版本关系

产品

软件版本

S10500系列以太网交换机

Release 1120系列,Release 1130系列,Release 1200系列

S5820X&S5800系列以太网交换机

Release 1808

 

1.7.2  组网需求

表1-5所示,多个小区用户接入汇聚层网络,该汇聚层网络采用RRPP环网结构,其中Device B和Device C不支持RRPP。

现要求在该环网上配置RRPP快速检测功能,解决在RRPP的实际运用中,环网中存在某些设备由于不支持RRPP协议而无法感知到这些设备之间的链路故障,而只能通过RRPP超时机制进行链路切换,导致流量中断时间过长,不能满足用户毫秒级切换的问题。通过配置RRPP快速检测功能,使该环网同样具有高可靠性和较强的收敛性能。

图1-5 RRPP快速检测组网示意图

 

1.7.3  配置思路

·     由于主节点是环网状态主动检测机制的发起者和网络拓扑发生改变后执行操作的决策者,需要选择性能较强大的设备作为主节点,本案例选择Device A作为主节点。

·     如果要在一台不支持RRPP的设备上透传RRPP协议报文,为了避免其它VLAN的报文可能通过透传进入控制VLAN,从而对RRPP环产生冲击,应保证该设备上只有接入RRPP环的那两个端口允许该RRPP环所对应控制VLAN的报文通过。

1.7.4  配置注意事项

·     当S10500系列以太网交换机安装了EB类单板后,才能支持RRPP快速检测功能。

·     S5800系列交换机支持RRPP快速检测功能,S5820X系列交换机不支持RRPP快速检测。需要特别说明的是,S5820X系列交换机与S5800系列交换机混合堆叠形成的IRF虚拟设备支持RRPP快速检测。

·     为避免由于关闭STP功能而造成的环路问题,请在完成环网内所有设备的RRPP配置后,再进行环网的完全连接。

·     为了激活当前设备的RRPP域,必须同时开启RRPP协议和RRPP环。

·     为了确保端口对RRPP协议报文的处理优先于数据报文,请将所有接入RRPP环的端口的信任模式配置为信认报文的802.1p优先级。对于S5820X&S5800系列以太网交换机,配置方法为在以太网端口视图下执行qos trust dot1p命令;对于S10500系列以太网交换机,配置方法为在以太网端口视图下执行undo qos trust命令(缺省情况下为信任报文的802.1p优先级,可以无需配置)。

1.7.5  配置步骤

(1)     配置Device A

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceA> system-view

[DeviceA] vlan 2 to 30

 Please wait... Done.

[DeviceA] stp region-configuration

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

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceA] interface gigabitethernet 1/0/1

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

[DeviceA-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceA-GigabitEthernet1/0/1] quit

[DeviceA] interface gigabitethernet 1/0/2

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

[DeviceA-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceA-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceA] rrpp domain 1

 Info: Create a new domain.

[DeviceA-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环1的主节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceA-rrpp-domain1] ring 1 enable

# 开启快速检测功能。

[DeviceA-rrpp-domain1] fast-detection enable

[DeviceA-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceA] rrpp enable

(2)     配置Device B

# 创建VLAN 2~30、VLAN 4092和4093。

<DeviceB> system-view

[DeviceB] vlan 2 to 30

 Please wait... Done.

[DeviceB] vlan 4092 to 4093

 Please wait... Done.

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30、4092和4093通过。

[DeviceB] interface gigabitethernet 1/0/1

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

[DeviceB-GigabitEthernet1/0/1] qos trust dot1p

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

[DeviceB-GigabitEthernet1/0/1] port trunk permit vlan 2 to 30 4092 4093

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/1] quit

[DeviceB] interface gigabitethernet 1/0/2

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

[DeviceB-GigabitEthernet1/0/2] qos trust dot1p

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

[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan 2 to 30 4092 4093

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/2] quit

(3)     配置Device C

# 创建VLAN 2~30、VLAN 4092和4093。

<DeviceC> system-view

[DeviceC] vlan 2 to 30

 Please wait... Done.

[DeviceC] vlan 4092 to 4093

 Please wait... Done.

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30、4092和4093通过。

[DeviceC] interface gigabitethernet 1/0/1

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

[DeviceC-GigabitEthernet1/0/1] qos trust dot1p

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

[DeviceC-GigabitEthernet1/0/1] port trunk permit vlan 2 to 30 4092 4093

 Please wait... Done.

[DeviceC-GigabitEthernet1/0/1] quit

[DeviceC] interface gigabitethernet 1/0/2

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

[DeviceC-GigabitEthernet1/0/2] qos trust dot1p

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

[DeviceC-GigabitEthernet1/0/2] port trunk permit vlan 2 to 30 4092 4093

 Please wait... Done.

[DeviceB-GigabitEthernet1/0/2] quit

(4)     配置Device D

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceD] system-view

[DeviceD] vlan 2 to 30

 Please wait... Done.

[DeviceD] stp region-configuration

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

[DeviceD-mst-region] active region-configuration

[DeviceD-mst-region] quit

# 分别在端口GigabitEthernet1/0/1和GigabitEthernet1/0/2上关闭STP功能,配置端口信任报文的802.1p优先级,并将端口配置为Trunk端口且允许VLAN 2~30通过。

[DeviceD] interface gigabitethernet 1/0/1

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

[DeviceD-GigabitEthernet1/0/1] qos trust dot1p

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

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

 Please wait... Done.

[DeviceD-GigabitEthernet1/0/1] quit

[DeviceD] interface gigabitethernet 1/0/2

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

[DeviceD-GigabitEthernet1/0/2] qos trust dot1p

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

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

 Please wait... Done.

[DeviceD-GigabitEthernet1/0/2] quit

# 创建RRPP域1,将VLAN 4092配置为该域的控制VLAN,并将MSTI 1所映射的VLAN配置为该域的保护VLAN。

[DeviceD] rrpp domain 1

 Info: Create a new domain.

[DeviceD-rrpp-domain1] control-vlan 4092

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

# 配置本设备为主环1的传输节点,主端口为GigabitEthernet1/0/1,副端口为GigabitEthernet1/0/2,并开启该环。

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

[DeviceD-rrpp-domain1] ring 1 enable

[DeviceD-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceD] rrpp enable

1.7.6  验证配置

配置完成后,用户可以使用display rrpp verbose命令查看Device A和Device D上RRPP的配置和运行情况。具体方法请参见“1.3.6  验证配置”。

1.7.7  配置文件

·     Device A

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 fast-detection enable

 ring 1 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

#

rrpp enable

#

·     Device B

#

vlan 2 to 30

#

vlan 4092 to 4093

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30 4092 to 4093

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30 4092 to 4093

 stp disable

 qos trust dot1p

#

·     Device C

#

vlan 2 to 30

#

vlan 4092 to 4093

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30 4092 to 4093

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30 4092 to 4093

 stp disable

 qos trust dot1p

#

·     Device D

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 qos trust dot1p

#

rrpp domain 1

 control-vlan 4092

 protected-vlan reference-instance 1

 ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0

 ring 1 enable

#

rrpp enable

#

1.8  RRPP与Smart Link混合组网典型配置举例

1.8.1  适用产品和版本

Device A、Device B、Device C和Device D需支持RRPP,适用产品及版本请参见表1-1;Device E需要支持Smart Link,适用产品及版本请参见表1-6

表1-6 配置适用的产品与软件版本关系

产品

软件版本

S10500系列以太网交换机

Release 1120系列,Release 1130系列,Release 1200系列

S5820X&S5800系列以太网交换机

Release 1808

S5830系列以太网交换机

Release 1115,Release 1118

S5500-EI&S5500-SI系列以太网交换机

Release 2220

 

1.8.2  组网需求

图1-6所示,接入层设备Device E不支持RRPP,采用Smart Link双上行组网接入汇聚层网络,汇聚层网络采用RRPP环网结构。

现要求在该环网上使用RRPP与Smart Link混合组网功能,解决Device E由于不支持RRPP而无法采用RRPP相交环的方式来提高接入层可靠性的问题。通过在环网上配置RRPP功能,在Device E上配置Smart Link功能,能够实现接入层和汇聚层的可靠性和较高的收敛性能。

图1-6 RRPP与Smart Link混合组网示意图

 

1.8.3  配置思路

关于RRPP单环拓扑的配置思路的详细内容,请参见“1.3.3  配置思路”。

1.8.4  配置注意事项

·     关于RRPP单环拓扑的配置注意事项的详细内容,请参见“1.3.4  配置注意事项”。

·     配置Smart Link组的成员端口时,需先手工关闭该端口,再关闭该端口的STP功能,待Smart Link组配置完成后,再开启该端口,以避免形成环路,导致广播风暴。

·     配置Device C和Device D时,建议在其与Smart Link组的成员端口直接相连的端口上关闭STP功能,以免由于网络拓扑改变时端口状态尚未迁移到Forwarding(转发状态)而导致Flush报文被丢弃。

·     为了保证Device C和Device D能够正常地接收到Flush报文并进行处理,需要在Device C和Device D上开启的接收处理Flush报文功能的控制VLAN和在Smart Link设备上开启的发送Flush报文功能的控制VLAN相同。

1.8.5  配置步骤

(1)     RRPP单环配置步骤

Device A、Device B、Device C和Device D已经完成RRPP单环配置,具体配置步骤请参见“1.3.5  配置步骤”。

(2)     配置Device E

# 创建VLAN 2~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceE> system-view

[DeviceE] vlan 2 to 30

 Please wait... Done.

[DeviceE] stp region-configuration

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

[DeviceE-mst-region] active region-configuration

[DeviceE-mst-region] quit

# 分别关闭端口GigabitEthernet1/0/1GigabitEthernet1/0/2,在这两个端口上分别关闭STP功能,并将端口配置为Trunk端口且允许VLAN 230通过。

[DeviceE] interface gigabitethernet 1/0/1

[DeviceE-GigabitEthernet1/0/1] shutdown

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

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

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

 Please wait... Done.

[DeviceE-GigabitEthernet1/0/1] quit

[DeviceE] interface gigabitethernet 1/0/2

[DeviceE-GigabitEthernet1/0/2] shutdown

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

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

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

 Please wait... Done.

[DeviceE-GigabitEthernet1/0/2] quit

# 创建Smart Link1,并配置其保护VLANMSTI 1所映射的VLAN

[DeviceE] smart-link group 1

[DeviceE-smlk-group1] protected-vlan reference-instance 1

# 配置Smart Link1的主端口为GigabitEthernet1/0/1,从端口为GigabitEthernet1/0/2

[DeviceE-smlk-group1] port gigabitethernet 1/0/1 master

[DeviceE-smlk-group1] port gigabitethernet 1/0/2 slave

# Smart Link1中开启发送Flush报文的功能,并指定发送Flush报文的控制VLANVLAN 10

[DeviceE-smlk-group1] flush enable control-vlan 10

[DeviceE-smlk-group1] quit

# 重新开启端口GigabitEthernet1/0/1GigabitEthernet1/0/2

[DeviceE] interface gigabitethernet 1/0/1

[DeviceE-GigabitEthernet1/0/1] undo shutdown

[DeviceE-GigabitEthernet1/0/1] quit

[DeviceE] interface gigabitethernet 1/0/2

[DeviceE-GigabitEthernet1/0/2] undo shutdown

[DeviceE-GigabitEthernet1/0/2] quit

(3)     配置Device C

# 在端口GigabitEthernet1/0/3上关闭STP功能,将该端口配置为Trunk端口且允许VLAN 230通过,使能接收Flush报文的功能,并指定接收Flush报文的控制VLANVLAN 10

[DeviceC] interface gigabitethernet 1/0/3

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

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

[DeviceC-GigabitEthernet1/0/3] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceC-GigabitEthernet1/0/3] smart-link flush enable control-vlan 10

[DeviceC-GigabitEthernet1/0/3] quit

(4)     配置Device D

# 在端口GigabitEthernet1/0/3上关闭STP功能,将该端口配置为Trunk端口且允许VLAN 230通过,使能接收Flush报文的功能,并指定接收Flush报文的控制VLANVLAN 10

[DeviceD] interface gigabitethernet 1/0/3

[DeviceD-GigabitEthernet1/0/3] undo stp enable

[DeviceD-GigabitEthernet1/0/3] port link-type trunk

[DeviceD-GigabitEthernet1/0/3] port trunk permit vlan 2 to 30

 Please wait... Done.

[DeviceD-GigabitEthernet1/0/3] smart-link flush enable control-vlan 10

[DeviceD-GigabitEthernet1/0/3] quit

1.8.6  验证配置

1. 查看RRPP单环的高可靠性和较强的收敛性能

配置完成后,用户可以使用display rrpp verbose命令查看各设备上RRPP的配置和运行情况。具体方法请参见“1.3.6  验证配置”。

2. 查看Smart Link组

# 查看Device C上Smart Link组1的信息。

[DeviceE] display smart-link group 1

 Smart link group 1 information:

 Device ID: 000f-e23d-5af0

 Preemption mode: NONE

 Preemption delay: 1(s)

 Control VLAN: 10

 Protected VLAN: Reference Instance 1

 Member                     Role    State    Flush-count Last-flush-time

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

 GigabitEthernet1/0/1       MASTER  ACTVIE   5           16:37:20 2013/02/21

 

 GigabitEthernet1/0/2       SLAVE   STANDBY  1           17:45:20 2013/02/21

# 查看Device D上收到的Flush报文信息。

[DeviceD] display smart-link flush

 Received flush packets                             : 5

 Receiving interface of the last flush packet       : GigabitEthernet1/0/3

 Receiving time of the last flush packet            : 16:25:21 2013/02/21

 Device ID of the last flush packet                 : 000f-e23d-5af0

 Control VLAN of the last flush packet              : 10

1.8.7  配置文件

说明

S5500-SI系列交换机不支持port link-mode bridge命令。

 

Device A~Device D已经完成RRPP单环配置,具体配置文件请参见“1.3.7  配置文件”。

·     Device C

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 smart-link flush enable control-vlan 10

#

·     Device D

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 smart-link flush enable control-vlan 10

#

·     Device E

#

vlan 2 to 30

#

stp region-configuration

 instance 1 vlan 2 to 30

 active region-configuration

#

smart-link group 1

 protected-vlan reference-instance 1

 flush enable control-vlan 10

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 port smart-link group 1 master

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 2 to 30

 stp disable

 port smart-link group 1 slave

#

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们