instance
Function
The instance command maps a VLAN to a spanning tree instance.
The undo instance command deletes the mapping between a VLAN and a spanning tree instance.
By default, all VLANs are mapped to CIST, that is, instance 0.
Format
instance instance-id vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>
undo instance instance-id [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ]
Parameters
Parameter | Description | Value |
---|---|---|
instance-id | Specifies the number of a spanning tree instance. | The value is an integer ranging from 0 to 4094. Value 0 refers to CIST. |
vlan vlan-id1 | Specifies a start VLAN ID. | The value is an integer ranging from 1 to 4094. The start VLAN ID must be smaller than the end VLAN ID. |
to vlan-id2 | Specifies an end VLAN ID. | The value is an integer that ranges from 1 to 4094. |
Usage Guidelines
Usage Scenario
MSTP divides a switching network into multiple regions, each of which has multiple spanning trees that are independent of each other. Each spanning tree is called an MSTI and each region is called an MST region.
- MST region name
- Mappings between MSTIs and VLANs
- MST region revision level
The instance command is used to set mappings between spanning tree instances and VLANs.
Precautions
When using the undo instance command, note the following points:
After the mapping between specified VLANs and a specified spanning tree instance is deleted, these VLANs will be mapped to a CIST, namely, instance 0.
If no VLAN is specified, all VLANs that have established mappings with the spanning tree instance will be mapped to a CIST.
A VLAN cannot be mapped to different spanning tree instances. If the instance command is run several times, the latest configuration overrides the previous one.
Run the active region-configuration command to activate the MST region so that the changed configurations can take effect.