ring

Use ring to configure the node mode of the device, the role of the specified RRPP port, and the level of the RRPP ring.

Use undo ring to delete the RRPP ring.

Syntax

ring ring-id node-mode { { master | transit } [ primary-port interface-type interface-number ] [ secondary-port interface-type interface-number ] level level-value | { assistant-edge | edge } [ edge-port interface-type interface-number ] }

undo ring ring-id

Default

The device is not a node of the RRPP ring.

Views

RRPP domain view

Predefined user roles

network-admin

Parameters

ring-id: Specifies an RRPP ring by its ID in the range of 1 to 128.

master: Specifies the device as the master node of the RRPP ring.

transit: Specifies the device as the transit node of the RRPP ring.

primary-port: Specifies the port as a primary port.

interface-type interface-number: Specifies a port by its type and number.

secondary-port: Specifies the port as a secondary port.

level level-value: Specifies an RRPP ring level, 0 for the primary ring and 1 for the subring.

assistant-edge: Specifies the device as the assistant edge node of the RRPP ring.

edge: Specifies the device as the edge node of the RRPP ring.

edge-port: Specifies the edge port for the node.

Usage guidelines

The ID of an RRPP ring in a domain must be unique.

When an RRPP ring is activated, you cannot configure its RRPP ports.

When you configure the edge node and the assistant edge node, first configure the primary ring, and then the subrings.

The node mode, RRPP port role, and ring level settings of an RRPP ring cannot be modified after they are configured. To modify the settings, first remove the current settings.

Remove all subring configurations before you delete the primary ring configuration of the edge node or the assistant edge node. However, an active RRPP ring cannot be deleted.

When RRPP is enabled on a device, you must disable the RRPP ring before you can delete it. When RRPP is disabled on the device, you can directly delete the RRPP ring, as well as the setting of the ring enable command.

Examples

# Specify the device as the master node of primary ring 10 in RRPP domain 1. Specify Ten-GigabitEthernet 1/0/1 as the primary port and Ten-GigabitEthernet 1/0/2 as the secondary port.

<Sysname> system-view
[Sysname] rrpp domain 1
[Sysname-rrpp-domain1] control-vlan 100
[Sysname-rrpp-domain1] protected-vlan reference-instance 0 1 2
[Sysname-rrpp-domain1] ring 10 node-mode master primary-port ten-gigabitethernet 1/0/1 secondary-port ten-gigabitethernet 1/0/2 level 0

# Specify the device as the transit node of primary ring 10 in RRPP domain 1. Specify Ten-GigabitEthernet 1/0/1 as the primary port and Ten-GigabitEthernet 1/0/2 as the secondary port. Specify the device as the edge node of subring 20 in RRPP domain 1, and specify Ten-GigabitEthernet 1/0/3 as the edge port.

<Sysname> system-view
[Sysname] rrpp domain 1
[Sysname-rrpp-domain1] control-vlan 100
[Sysname-rrpp-domain1] protected-vlan reference-instance 0 1 2
[Sysname-rrpp-domain1] ring 10 node-mode transit primary-port ten-gigabitethernet 1/0/1 secondary-port ten-gigabitethernet 1/0/2 level 0
[Sysname-rrpp-domain1] ring 20 node-mode edge edge-port ten-gigabitethernet 1/0/3

Related commands

ring enable