Configuring protected VLANs

Configure the same protected VLAN for all nodes of an ERPS instance. To implement load balancing, configure different protected VLANs for different ERPS instances.

Protected VLANs are configured by referencing MSTIs. The protected VLAN configuration method varies by the spanning tree mode:

For more information about MSTI and PVST, see Layer 2—LAN Switching Configuration Guide.

To configure protected VLANs:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter MST region view.

stp region-configuration

This step is not required if the device is operating in PVST mode.

For more information about this command, see Layer 2—LAN Switching Command Reference.

3. Map VLANs to MSTIs.

  • Method 1:
    i
    nstance instance-id vlan vlan-list

  • Method 2:vlan-mapping modulo modulo

By default, all VLANs are mapped to MSTI 0 (CIST).

This step is not required if the device is operating in PVST mode.

For more information about these commands, see Layer 2—LAN Switching Command Reference.

4. Activate the MST region configuration.

active region-configuration

This step is not required if the device is operating in PVST mode.

For more information about this command, see Layer 2—LAN Switching Command Reference.

5. (Optional.) Display the mapping between VLANs and MSTIs.

display stp region-configuration

Available in any view.

The output of the command includes VLAN-to-instance mappings.

For more information about this command, see Layer 2—LAN Switching Command Reference.

6. Return to system view.

quit

This step is not required if the device is operating in PVST mode.

7. Enter ERPS ring view.

erps ring ring-id

N/A

8. Enable ERPS instance view.

instance instance-id

N/A

9. Configure the protected VLANs.

protected-vlan reference-instance instance-id-list

By default, an ERPS instance does not have protected VLANs.