spanning-tree instance vlan
Syntax
spanning-tree instance <INSTANCE-ID> vlan <VLAN-ID>
no spanning-tree instance <INSTANCE-ID> vlan <VLAN-ID>
Description
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
config
Parameters
<INSTANCE-ID>
Specifies the MSTP instance number. Range: 1-64.
<VLAN-ID>
Specifies the VLAN ID number. Range: 1 - 4094.
Authority
Administrators
Examples
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