The ring node-mode command configures the node mode and specifies the interfaces for nodes.
The undo ring command deletes an RRPP ring.
ring ring-id node-mode { master | transit } primary-port interface-type interface-number secondary-port interface-type interface-number level level-value
ring ring-id node-mode { assistant-edge | edge } common-port interface-type interface-number edge-port interface-type interface-number
undo ring ring-id
Parameter |
Description |
Value |
---|---|---|
ring ring-id |
Specifies the ID of an RRPP ring to be created or deleted. |
The value is an integer that ranges from 1 to 64. |
master |
Specifies the current device as the master node on the RRPP ring to be created. You need to specify the primary and secondary interfaces on the master node, and the level of the ring. |
- |
transit |
Specifies the current device as a transit node on the RRPP ring to be created. You need to specify the primary and secondary interfaces on the transit node, and the level of the ring. |
- |
primary-port |
Specifies the primary interface on the node. |
- |
interface-type interface-number |
Specifies the type and number of an interface.
|
- |
secondary-port |
Specifies the secondary interface of the node. |
- |
level-value |
Specifies the level on an RRPP ring. |
The value can be 0 or 1.
|
assistant-edge |
Specifies the current device as the assistant edge node on the RRPP ring to be created. |
- |
edge |
Specifies the current device as the edge node on the RRPP ring to be created. |
- |
common-port interface-type interface-number |
Specifies the common interface of the sub-ring and major
ring.
|
- |
edge-port interface-type interface-number |
Specifies the edge interface of the sub-ring.
|
- |
Usage Scenario
RRPP specifies devices and interfaces on the ring network as nodes and interfaces of different roles on the RRPP ring to implement RRPP functions.
Prerequisites
An RRPP domain has been created using the rrpp domain command, and STP has been enabled using the stp disable command on the interfaces that want to join the RRPP domain.
# Configure the master node of Ring 10 in Domain 1, with GE0/0/5 as the primary interface and GE0/0/6 as the secondary interface.
<HUAWEI> system-view [HUAWEI] rrpp domain 1 [HUAWEI-rrpp-domain-region1] control-vlan 100 [HUAWEI-rrpp-domain-region1] protected-vlan reference-instance 0 [HUAWEI-rrpp-domain-region1] ring 10 node-mode master primary-port gigabitethernet 0/0/5 secondary-port gigabitethernet 0/0/6 level 0
# Configure the transit node of Ring 10 in Domain 1, with GE0/0/5 as the primary interface and GE0/0/6 as the secondary interface.
<HUAWEI> system-view [HUAWEI] rrpp domain 1 [HUAWEI-rrpp-domain-region1] control-vlan 100 [HUAWEI-rrpp-domain-region1] protected-vlan reference-instance 0 [HUAWEI-rrpp-domain-region1] ring 10 node-mode transit primary-port gigabitethernet 0/0/5 secondary-port gigabitethernet 0/0/6 level 0
# Configure the master node of Ring 20 in Domain 1, with GE0/0/5 as the primary interface and GE0/0/6 as the secondary interface.
<HUAWEI> system-view [HUAWEI] rrpp domain 1 [HUAWEI-rrpp-domain-region1] control-vlan 100 [HUAWEI-rrpp-domain-region1] protected-vlan reference-instance 0 [HUAWEI-rrpp-domain-region1] ring 20 node-mode master primary-port gigabitethernet 0/0/5 secondary-port gigabitethernet 0/0/6 level 1
# Configure the transit node of Ring 20 in Domain 1, with GE0/0/5 as the primary interface and GE0/0/6 as the secondary interface.
<HUAWEI> system-view [HUAWEI] rrpp domain 1 [HUAWEI-rrpp-domain-region1] control-vlan 100 [HUAWEI-rrpp-domain-region1] protected-vlan reference-instance 0 [HUAWEI-rrpp-domain-region1] ring 20 node-mode transit primary-port gigabitethernet 0/0/5 secondary-port gigabitethernet 0/0/6 level 1
# Delete Ring 10.
<HUAWEI> system-view [HUAWEI] rrpp domain 1 [HUAWEI-rrpp-domain-region1] undo ring 10 enable [HUAWEI-rrpp-domain-region1] undo ring 10