< Home

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.

NOTE:

instance-id ranges from 0 to 4094. Each process supports a maximum of 65 instances.

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.

NOTE:
  • VBST maps one VLAN to one instance. Therefore, this parameter cannot be specified when the spanning tree protocol is VBST.

  • The 1:1 mapping between MSTIs and VLANs are used only by the switch to determine the VBST forwarding status. This does not mean that VBST supports multi-instance. instance in other commands cannot be specified when VBST is running.

The value is an integer that ranges from 1 to 4094.

Views

MST region view

Default Level

2: Configuration level

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.

Two switching devices belong to the same MST region only when they have the following same configurations:
  • 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.

If the instance command is run more than once, all configurations take effect.

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.

To map the MUX VLAN to a spanning tree instance, you are advised to configure the principal VLAN, subordinate group VLAN, and subordinate separate VLAN in the MUX VLAN in the same spanning tree instance.

Example

# Map VLAN 2 to spanning tree instance 1.

<HUAWEI> system-view
[HUAWEI] stp region-configuration
[HUAWEI-mst-region] instance 1 vlan 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >