protected-vlan
Use protected-vlan to configure protected VLANs for a smart link group.
Use undo protected-vlan to remove the protected VLAN configuration of the smart link group.
Syntax
protected-vlan reference-instance instance-id-list
undo protected-vlan [ reference-instance instance-id-list ]
Default
No protected VLAN is configured for a smart link group.
Views
Smart link group view
Predefined user roles
network-admin
Parameters
reference-instance instance-id-list: Specifies the MSTIs to be referenced in the form of instance-id-list = { instance-id [ to instance-id ] }&<1-10>, where instance-id is an MSTI ID in the range of 0 to 4094. An MSTI ID of 0 represents the common internal spanning tree (CIST). &<1-10> means that you can specify up to 10 MSTI IDs or ID ranges. You can use the display stp region-configuration command to display the instance-to-VLAN mappings.
Usage guidelines
If the reference-instance instance-id-list option is specified, the undo protected-vlan command removes configuration of VLANs mapped to the specified MSTIs. Otherwise, the command removes configuration of all protected VLANs.
Before assigning ports to a smart link group, configure protected VLANs for the smart link group.
You can remove the protected VLAN configuration of a smart link group when the group is empty but not after a member port is assigned to it.
Removing a smart link group also removes its protected VLAN configuration.
If the VLANs mapped to a referenced MSTI change, the protected VLANs also change.
The VLANs to which the member ports of a smart link group belong must be configured as the protected VLANs of the smart link group.
Examples
# Map VLANs 1 through 30 to MSTI 1, activate the MST region configuration, and configure the VLANs mapped to MSTI 1 as the protected VLANs of smart link group 1.
<Sysname> system-view [Sysname] stp region-configuration [Sysname-mst-region] instance 1 vlan 1 to 30 [Sysname-mst-region] active region-configuration [Sysname-mst-region] quit [Sysname] smart-link group 1 [Sysname-smlk-group1] protected-vlan reference-instance 1
Related commands
display stp region-configuration (Layer 2—LAN Switching Command Reference)
smart-link group