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.
protected-instance { all | { instance-id1 [ to instance-id2 ] &<1-10> } }
undo protected-instance { all | { instance-id1 [ to instance-id2 ] &<1-10> } }
Parameter | Description | Value |
---|---|---|
instance-id1 to instance-id2 | Specifies the ID of an ERP instance.
|
The value is an integer that ranges from 0 to 4094. |
all | Indicates all ERP instances. | - |
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
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.