spanning-tree instance vlan


spanning-tree instance <INSTANCE-ID> vlan <VLAN-ID>

no spanning-tree instance <INSTANCE-ID> vlan <VLAN-ID>


Creates a new instance with VLANs mapped or maps VLANs to an existing instance.

Each instance must have at least one VLAN mapped to it. When VLANs are mapped to an instance, they are automatically unmapped from the instance they were mapped to before. Any MSTP instance can have all the VLANs configured on the switch.

The no form of this command removes the specified VLAN from the MSTP instance.

Command context




Specifies the MSTP instance number. Range: 1 to 64.


Specifies a VLAN ID number.


Administrators or local user group members with execution rights for this command.


Mapping VLAN 1 to instance 1:

switch(config)# spanning-tree instance 1 vlan 1

Removing VLAN 1 from instance 1:

switch(config)# no spanning-tree instance 1 vlan 1