A ring is the basic ERPS unit. After an ERPS ring is configured, ERPS runs to block redundant links and eliminate loops on Layer 2 networks.
Configure a control VLAN for the ERPS ring. A control VLAN is different from a data VLAN that transmits service packets. On ERPS rings, a control VLAN is used to transmit Ring Auto Protection Switching (R-APS) Protocol Data Units (PDUs), also called the ERPS protocol packets. A control VLAN does not transmit service packets, enhancing ERPS security.
All devices on an ERPS ring must use the same control VLAN. Different ERPS rings cannot have the same control VLAN.
Add Layer 2 ports to the ERPS rings and specify Port Role.
No spanning tree protocol is enabled on the port. If a spanning tree protocol has been enabled for a port, run the stp disable command in the interface view to disable the spanning tree protocol.
The port is not a Layer 3 port. If the port is a Layer 3 port, run the portswitch command to switch the port to the Layer 2 mode.
A control VLAN and an ERP instance have been configured for the ERPS ring to which the port will be added.
A ring can either has STP or ERPS enabled. If you enable ERPS, the control VLAN and data VLAN must be mapped to an Ethernet Ring Protection (ERP) instance. Otherwise, a loop may occur because STP is disabled.
The system view is displayed.
An ERPS ring is created, and the ERPS ring view is displayed.
An ERPS ring can be deleted only if it does not have any port. If you attempt to delete an ERPS ring that has a port, the system prompts a deletion failure. Before deleting an ERPS ring that has a port, run the undo erps ring command in the interface view of the port or the undo port command in the ERPS ring view to remove the port from the ERPS ring. Then run the undo erps ring command to delete the ERPS ring.
If only one port is added to the ERPS ring, the port is set to the Discarding state.
A description is configured for the ERPS ring.
A control VLAN is configured for the ERPS ring.
The control VLAN specified by vlan-id must not be one that has been created or used in Smart Link protocol, VLAN mapping, VLAN stacking, port trunk allow-pass, or port default vlan applications.
The control VLAN for an ERPS ring cannot be modified after a port is added to the ring. Before deleting the control VLAN for an ERPS ring that has a port, run the undo erps ring command in the interface view of the port or the undo port command in the ERPS ring view to remove the port from the ERPS ring. Then run the undo control-vlan command to delete the control VLAN.
If an ERPS ring does not have any port, you can run the control-vlan command more than once, but only the latest configuration takes effect.
After a control VLAN is configured, the vlan batch vlan-id1 [ to vlan-id2 ] &<1-10> command, instead of the control-vlan command, is saved in the configuration file.
After a port is added to an ERPS ring that has a control VLAN configured, the port is automatically added to the control VLAN, and the port trunk allow-pass vlan vlan-id command configuration is automatically generated in the interface view of this port in the configuration file.
An ERP instance is configured for the ERPS ring.
If you run the protected-instance command for an ERPS ring several times, all the configured ERP instances take effect.
ERP instances for an ERPS ring cannot be modified after a port is added to the ring. Before deleting an ERP instance for an ERPS ring that has a port, run the undo erps ring command in the interface view of the port or the undo port command in the ERPS ring view to remove the port from the ERPS ring. Then run the undo protected-instance command to delete the ERP instance.
Configure the mapping between the instance and VLANs in the MST region view.
The MST region view is displayed.
VLANs are mapped to an MSTI.
A VLAN cannot be mapped to multiple MSTIs. If you map a VLAN that has already been mapped to an MSTI to another MSTI, the original mapping will be canceled.
The vlan-mapping modulo modulo command configures the mapping between MSTIs and VLANs based on a default algorithm. However, the mapping configured using this command cannot always meet the actual demand. Therefore, running this command is not recommended.
Configure the mapping between the instance and VLANs in the VLAN instance view.
The VLAN instance view is displayed.
Run instance instance-id vlan { vlan-id1 [ to vlan-id2 ] }&<1-10>
The vlan instance command and the stp region-configuration command are mutually exclusive. If the mapping between an MSTI and VLANs has been configured in the MST region view displayed by the stp region-configuration command, you must delete the configured mapping before using the vlan instance command.
The configured mapping is displayed.
As MAC address updates cannot be separately sent currently, configuring the direct link between two upstream nodes as the RPL is not recommended.
Before changing the port role, run the shutdown command to shut down the port. Then change the port role and run the undo shutdown command to enable the port.
The configuration is committed.