< Home

protected-instance (ERPS ring view)

Function

The protected-instance command configures Ethernet ring protection (ERP) instances in an ERPS ring.

The undo protected-instance command deletes ERP instances from an ERPS ring.

By default, no ERP instance is configured in an ERPS ring.

Format

protected-instance { all | { instance-id1 [ to instance-id2 ] &<1-10> } }

undo protected-instance { all | { instance-id1 [ to instance-id2 ] &<1-10> } }

Parameters

Parameter Description Value
instance-id1 to instance-id2 Specifies the ID of an ERP instance.
  • instance-id1 specifies the first ERP instance ID.
  • to vlan-id2 specifies the last ERP instance ID. The value of instance-id2 must be greater than the value of instance-id1. instance-id1 and instance-id2 identify a range of ERP instances. If to instance-id2 is not specified, only instance-id1 is specified.
The value is an integer that ranges from 0 to 4094.
all Indicates all ERP instances. -

Views

ERPS ring view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a device running ERPS, the VLAN where ERPS PDUs and data packets are transmitted must be mapped to an ERP instance. Otherwise, VLAN packets may cause broadcast storms on the ring network. As a result, the network may become unavailable.

Precautions

  • If the stp mode (system view) command is used to set the STP working mode to VLAN-based Spanning Tree (VBST), the ERP instance specified by the protected-instance command must be the created static instance.

  • If you run the protected-instance command multiple times in the same ERPS ring, multiple ERP instances are configured.

  • If ports have been added to the ERPS ring, the ERP instance cannot be modified. To delete the configured ERP instance, run the undo erps ring command in the interface view or the undo port command in the ERPS ring view to delete ports from the ERPS ring, and run the undo protected-instance command to delete the ERP instance.

Follow-up Procedure

Configure the mapping between protected instances and VLANs. The specific procedures are as follows:
  1. Run the stp region-configuration command to enter the MST region view.
  2. Run the instance instance-id vlan { vlan-id [ to vlan-id ] } &<1-10> command to configure the mapping relationship between the protected instance and the VLAN.

    The parameter instance-id in this command must the same as the parameter instance-id in the protected-instance command.

  3. Run the active region-configuration command to activate the protected instance and the mapping relationship between the protected instance and the VLAN.

Example

# Configure ERP instance 5 in ERPS ring 1.

<HUAWEI> system-view
[HUAWEI] erps ring 1
[HUAWEI-erps-ring1] protected-instance 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >