- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
05-MSTP Commands | 192.47 KB |
l The models listed in this document are not applicable to all regions. Please consult your local sales office for the models applicable to your region.
l Support of the H3C WA series WLAN access points (APs) for commands may vary by AP model. For more information, see Feature Matrix.
l The interface types and the number of interfaces vary by AP model.
Support for MSTP depends on your AP model.
MSTP Configuration Commands
active region-configuration
Syntax
active region-configuration
View
MST region view
Default Level
2: System level
Parameters
None
Description
Use the active region-configuration command to activate your MST region configuration.
The configuration of MST region–related parameters, especially the VLAN-to-instance mapping table, will cause MSTP to launch a new spanning tree calculation process, which may result in network topology instability. To reduce the possibility of topology instability caused by configuration, MSTP will not immediately launch a new spanning tree calculation process when processing MST region–related configurations; instead, such configurations will take effect only after you activate the MST region–related parameters using this command, or enable MSTP using the stp enable command in the case that MSTP is not enabled.
Before running this command, it is recommended that you use the check region-configuration command to check whether the MST region configurations to be activated are correct. You should run this command only if the MST region configurations to be activated are correct.
Related commands: instance, region-name, revision-level, vlan-mapping modulo, and check region-configuration.
Examples
# Map VLAN 2 to MSTI 1 and activate MST region configuration.
<Sysname> system-view
[Sysname] stp region-configuration
[Sysname-mst-region] instance 1 vlan 2
[Sysname-mst-region] active region-configuration
check region-configuration
Syntax
check region-configuration
View
MST region view
Default Level
2: System level
Parameters
None
Description
Use the check region-configuration command to view MST region configuration information not activated yet, including the region name, revision level, and VLAN-to-instance mapping settings.
Two or more MSTP bridges belong to the same MST region only if they are configured with the same format selector, MST region name, the same VLAN-to-instance mapping entries in the MST region and the same MST region revision level, and they are interconnected via a physical link.
Before activating the configurations of an MST region, it is recommended that you use this command to check whether the MST region configurations are correct. You should activate the MST region configurations only if the MST region configurations to be activated are correct.
Related commands: instance, region-name, revision-level, vlan-mapping modulo, and active region-configuration.
Examples
# View MST region configurations that are not yet activated.
<Sysname> system-view
[Sysname] stp region-configuration
[Sysname-mst-region] check region-configuration
Admin Configuration
Format selector :0
Region name :000fe26a58ed
Revision level :0
Instance Vlans Mapped
0 1 to 9, 11 to 4094
15 10
Table 1-1 check region-configuration command output description
Field |
Description |
Format selector |
Format selector of the MST region, which defaults to 0 and is not configurable |
Region name |
MST region name |
Revision level |
Revision level of the MST region |
Instance Vlans Mapped |
VLAN-to-instance mappings in the MST region |
display stp
Syntax
display stp [ instance instance-id ] [ interface interface-list ] [ brief ]
View
Any view
Default Level
1: Monitor level
Parameters
instance instance-id: Displays the status and statistics information of a particular MSTI. The minimum value of instance-id is 0, representing the common internal spanning tree (CIST), and the value range of instance-id is 0 to 15.
interface interface-list: Displays the MSTP status and statistics information on the ports specified by a port list, in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 ports or port ranges.
brief: Displays brief MSTP status and statistics information.
Description
Use the display stp command to view the MSTP status information and statistics information.
Based on the MSTP status information and statistics information, you can analyze and maintain the network topology or check whether MSTP is working normally.
If you do not specify any MSTI or port, this command will display the MSTP information of all MSTIs on all ports. The displayed information is sorted by MSTI ID and by port name in each MSTI.
If you specify an MSTI but not a port, this command will display the MSTP information on all ports in that MSTI. The displayed information is sorted by port name.
If you specify some ports but not an MSTI, this command will display the MSTP information of all MSTIs on the specified ports. The displayed information is sorted by MSTI ID, and by port name in each MSTI.
If you specify both an MSTI ID and a port list, this command will display the MSTP information on the specified ports in the specified MSTI. The displayed information is sorted by port name.
The MSTP status information includes:
l CIST global parameters: Protocol work mode, bridge priority in the CIST, MAC address, hello time, max age, forward delay, maximum hops, common root of the CIST, external path cost from the bridge to the CIST common root, regional root, the internal path cost from the bridge to the regional root, CIST root port of the bridge, and status of the BPDU guard function (enabled or disabled).
l CIST port parameters: Port status, role, priority, path cost, designated bridge, designated port, edge port/non-edge port, whether connecting to a point-to-point link, maximum transmission rate (transmit limit), status of the root guard function (enabled or disabled), BPDU format, boundary port/non-boundary port, hello time, max age, forward delay, message age, remaining hops, and whether rapid state transition enabled for designated ports.
l MSTI global parameters: MSTI ID, bridge priority of the MSTI, regional root, internal path cost, MSTI root port, and master bridge.
l MSTI port parameters: Port status, role, priority, path cost, designated bridge, designated port, remaining hops, and whether rapid state transition enabled (for designated ports).
The statistics information includes:
l The number of TCN BPDUs, configuration BPDUs, RST BPDUs and MST BPDUs sent from each port
l The number of TCN BPDUs, configuration BPDUs, RST BPDUs, MST BPDUs and wrong BPDUs received on each port
l The number of BPDUs discarded on each port
Related commands: reset stp.
Examples
# View the brief MSTP status and statistics information.
<Sysname> display stp instance 0 interface ethernet 1/0/1 to ethernet 1/0/2 brief
MSTID Port Role STP State Protection
0 Ethernet1/0/1 ALTE DISCARDING LOOP
0 Ethernet1/0/2 DESI FORWARDING NONE
Table 1-2 display stp brief command output description
Field |
Description |
MSTID |
MSTI ID in the MST region |
Port |
Port name, corresponding to each MSTI |
Role |
Port role, which can be one of the following: l ALTE: The port is an alternate port l BACK: The port is a backup port l ROOT: The port is a root port l DESI: The port is a designated port l MAST: The port is a master port l DISA: The port is disabled |
STP State |
MSTP status on the port, which can be: l FORWARDING: The port learns MAC addresses and forwards user traffic l DISCARDING: The port does not learn MAC addresses or forward user traffic l LEARNING: The port learns MAC addresses but does not forward user traffic |
Protection |
Protection type on the port, which can be: l ROOT: Root guard l LOOP: Loop guard l BPDU: BPDU guard l NONE: No protection |
# View the MSTP status and statistics information.
<Sysname> display stp
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge :32768.000f-e200-2200
Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :0.00e0-fc0e-6554 / 200200
CIST RegRoot/IRPC :32768.000f-e200-2200 / 0
CIST RootPortId :128.48
BPDU-Protection :disabled
Bridge Config-
Digest-Snooping :disabled
TC or TCN received :2
Time since last TC :0 days 0h:5m:42s
----[Port1(Ethernet1/0/1)][FORWARDING]----
Port Protocol :enabled
Port Role :CIST Designated Port
Port Priority :128
Port Cost(Legacy) :Config=auto / Active=200
Desg. Bridge/Port :32768.000f-e200-2200 / 128.2
Port Edged :Config=disabled / Active=disabled
Point-to-point :Config=auto / Active=true
Transmit Limit :10 packets/hello-time
Protection Type :None
MST BPDU Format :Config=auto / Active=legacy
Port Config-
Digest-Snooping :disabled
Rapid transition :false
Num of Vlans Mapped :1
PortTimes :Hello 2s MaxAge 20s FwDly 15s MsgAge 2s RemHop 20
BPDU Sent :186
TCN: 0, Config: 0, RST: 0, MST: 186
BPDU Received :0
TCN: 0, Config: 0, RST: 0, MST: 0
-------[MSTI 1 Global Info]-------
MSTI Bridge ID :0.000f-e23e-9ca4
MSTI RegRoot/IRPC :0.000f-e23e-9ca4 / 0
MSTI RootPortId :0.0
MSTI Root Type :PRIMARY root
Master Bridge :32768.000f-e23e-9ca4
Cost to Master :0
TC received :0
# View the MSTP status and statistics information when STP is not enabled.
<Sysname> display stp
Protocol Status :disabled
Protocol Std. :IEEE 802.1s
Version :3
CIST Bridge-Prio. :32768
MAC address :000f-e200-8048
Max age(s) :20
Forward delay(s) :15
Hello time(s) :2
Max hops :20
Table 1-3 display stp command output description
Field |
Description |
CIST Bridge |
CIST bridge ID |
Bridge Times |
Major parameters for the bridge: l Hello: Hello timer l MaxAge: Max Age timer l FWDly: Forward delay timer l Max Hop: Max hops within the MST region |
CIST Root/ERPC |
CIST root and external path cost |
CIST RegRoot/IRPC |
CIST regional root and internal path cost |
CIST RootPortId |
CIST root port ID |
BPDU-Protection |
Indicates whether the BPDU guard function is enabled globally. |
Bridge Config- Digest-Snooping |
Indicates whether Digest Snooping is enabled globally on the bridge. |
TC or TCN received |
Number of received TC/TCN packets |
Time since last TC |
Time since the latest topology change |
[FORWARDING] |
The port learns MAC addresses and forwards user traffic |
[DISCARDING] |
The port does not learn MAC addresses or forward user traffic |
[LEARNING] |
The port learns MAC addresses but does not forward user traffic |
Port Protocol |
Indicates whether STP is enabled on the port |
Port Role |
Port role, which can be Alternate, Backup, Root, Designated, Master, or Disabled |
Port Cost(Legacy) |
Path cost of the port. The field in the brackets indicates the standard used for port path cost calculation, which can be legacy, dot1d-1998, or dot1t. Config indicates the configured value, and Active indicates the actual value. |
Desg. Bridge/Port |
Designated bridge ID and port ID of the port The port ID displayed is insignificant for a port that does not support port priority. |
Port Edged |
Indicates whether the port is an edge port. Config indicates the configured value, and Active indicates the actual value. |
Point-to-point |
Indicates whether the port is connected to a point-to-point link. Config indicates the configured value, and Active indicates the actual value. |
Transmit Limit |
The maximum number of packets sent within each Hello time |
Protection Type |
Protection type on the port, which can be one of the following: l Root: Root guard l Loop: Loop guard l BPDU: BPDU guard l None: No protection |
MST BPDU Format |
Format of the MST BPDUs that the port can send, which can be legacy or 802.1s. Config indicates the configured value, and Active indicates the actual value. |
Port Config- Digest-Snooping |
Indicates whether digest snooping is enabled on the port. |
Rapid transition |
Indicates whether the current port rapidly transitions to the forwarding state. |
Num of Vlans Mapped |
Number of VLANs mapped to the current MSTI |
PortTimes |
Major parameters for the port: l Hello: Hello timer l MaxAge: Max Age timer l FWDly: Forward delay timer l MsgAge: Message Age timer l Remain Hop: Remaining hops |
BPDU Sent |
Statistics on sent BPDUs |
BPDU Received |
Statistics on received BPDUs |
MSTI RegRoot/IRPC |
MSTI regional root/internal path cost |
MSTI RootPortId |
MSTI root port ID |
MSTI Root Type |
MSTI root type, which can be primary root or secondary root |
Master Bridge |
MSTI root bridge ID |
Cost to Master |
Path cost from the MSTI to the master bridge |
TC received |
Number of received TC BPDUs |
Protocol Status |
MSTP protocol status |
Protocol Std. |
MSTP protocol standard |
Version |
MSTP protocol version |
CIST Bridge-Prio. |
Bridge priority in the CIST |
MAC address |
MAC address of the bridge |
Max age(s) |
Aging timer for BPDUs (in seconds) |
Forward delay(s) |
Port state transition delay (in seconds) |
Hello time(s) |
Interval for the root bridge to send BPDUs (in seconds) |
Max hops |
Maximum hops in the MSTI |
display stp abnormal-port
Syntax
display stp abnormal-port
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display stp abnormal-port command to view the information about abnormally blocked ports.
Any of the following reasons may cause a port to be abnormally blocked:
l Root guard function
l Loop guard function
l MSTP BPDU format incompatibility protection function
Examples
# View information about abnormally blocked ports.
<Sysname> display stp abnormal-port
MSTID Blocked Port Reason
1 Ethernet1/0/1 ROOT-Protected
2 Ethernet1/0/2 LOOP-Protected
Table 1-4 display stp abnormal-port command output description
Field |
Description |
MSTID |
ID of the MSTI to which an abnormally blocked port belongs |
Blocked Port |
Name of an abnormally blocked port |
Reason |
Reason that caused abnormal blocking of the port. l ROOT-Protected: root guard function l LOOP-Protected: loop guard function l Formatcompatibility-Protected: MSTP BPDU format incompatibility protection function |
display stp down-port
Syntax
display stp down-port
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display stp down-port command to display the information about ports blocked by STP protection functions.
These functions include:
l BPDU guard function
l MSTP BPDU format frequent change protection function
Examples
# View the information about ports blocked by STP protection functions.
<Sysname> display stp down-port
Down Port Reason
Ethernet1/0/1 BPDU-Protected
Ethernet1/0/2 Formatfrequency-Protected
Table 1-5 display stp down-port command output description
Field |
Description |
Down Port |
Name of a blocked port |
Reason |
Reason that caused the port to be blocked. l BPDU-Protected: BPDU attack guard function l Formatfrequency-Protected: MSTP BPDU format frequent change protection function |
display stp history
Syntax
display stp [ instance instance-id ] history
View
Any view
Default Level
0: Visit level
Parameters
instance instance-id: Displays the historical port role calculation information of a particular MSTI. The minimum value of instance-id is 0, representing the common internal spanning tree (CIST), and the value range of instance-id is 0 to 15.
Description
Use the display stp history command to view the historical port role calculation information of the specified MSTI or all MSTIs.
If you do not specify an MSTI ID, this command will display the historical port role calculation information of all MSTIs. The displayed information is sequenced by MSTI ID, and by port role calculation time in each MSTI.
If you specify an MSTI ID, this command will display the historical port role calculation information of only this specified MSTI by the sequence of port role calculation time.
Examples
# View the historical port role calculation information of the card on slot 1 in MSTI 2.
<Sysname> display stp instance 2 history slot 1
--------------- STP slot 1 history trace ---------------
------------------- Instance 2 ---------------------
Port Ethernet1/0/1
Role change : ROOT->DESI (Aged)
Time : 2008/08/08 00:22:56
Port priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.1
Port Ethernet1/0/2
Role change : ALTER->ROOT
Time : 2008/08/08 00:22:56
Port priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.2
Table 1-6 display stp history command output description
Field |
Description |
Port |
Port name |
Role change |
A role change of the port (“Age” means that the change was caused by expiry of the received configuration BPDU) |
Time |
Time of port role calculation |
Port priority |
Port priority |
display stp region-configuration
Syntax
display stp region-configuration
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display stp region-configuration command to view the currently effective configuration information of the MST region, including the region name, revision level, and VLAN-to-instance mappings.
Related commands: instance, region-name, revision-level, and vlan-mapping modulo.
Examples
# View the currently effective MST region configuration information.
<Sysname> display stp region-configuration
Oper Configuration
Format selector :0
Region name :hello
Revision level :0
Instance Vlans Mapped
0 21 to 4094
1 1 to 10
2 11 to 20
Table 1-7 display stp region-configuration command output description
Field |
Description |
Format selector |
MSTP-defined format selector, which defaults to 0 and is not configurable |
Region name |
MST region name |
Revision level |
Revision level of the MST region, which can be configured using the revision-level command and defaults to 0. |
Instance Vlans Mapped |
VLAN-to-instance mappings in the MST region |
display stp root
Syntax
display stp root
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display stp root command to view the root bridge information of all MSTIs.
Examples
# View the root bridge information of all MSTIs.
<Sysname> display stp root
MSTID Root Bridge ID ExtPathCost IntPathCost Root Port
0 0.00e0-fc0e-6554 200200 0 Ethernet1/0/1
Table 1-8 display stp root command output description
Field |
Description |
MSTID |
MSTI ID |
Root Bridge ID |
Root bridge ID |
ExtPathCost |
External path cost. The bridge can automatically calculate the default path cost of a port, or alternatively, you can use the stp cost command to configure the path cost of a port. |
IntPathCost |
Internal path cost. The bridge can automatically calculate the default path cost of a port, or alternatively, you can use the stp cost command to configure the path cost of a port. |
Root Port |
Root port name (displayed only if a port of the current bridge is the root port of MSTIs) |
display stp tc
Syntax
display stp [ instance instance-id ] tc
View
Any view
Default Level
0: Visit level
Parameters
instance instance-id: Displays the statistics of TC/TCN BPDUs received and sent by all ports in the specified MSTI. The minimum value of instance-id is 0, representing the common internal spanning tree (CIST), and the value range of instance-id is 0 to 15.
Description
Use the display stp tc command to view the statistics of TC/TCN BPDUs received and sent by all ports in an MSTI or all MSTIs.
If you do not specify an MSTI ID, this command will display the statistics of TC/TCN BPDUs received and sent by all ports in all MSTIs. The displayed information is sorted by MSTI ID and by port name in each MSTI.
If you specify an MSTI ID, this command will display the statistics of TC/TCN BPDUs received and sent by all ports in the specified MSTI, in port name order.
Examples
# View the statistics of TC/TCN BPDUs received and sent by all ports in MSTI 0.
<Sysname> display stp instance 0 tc
MSTID Port Receive Send
0 Ethernet1/0/1 6 4
0 Ethernet1/0/2 0 2
Table 1-9 display stp tc command output description
Field |
Description |
MSTID |
MSTI ID in the MST region |
Port |
Port name |
Receive |
Number of TC/TCN BPDUs received on each port |
Send |
Number of TC/TCN BPDUs sent by each port |
instance
Syntax
instance instance-id vlan vlan-list
undo instance instance-id [ vlan vlan-list ]
View
MST region view
Default Level
2: System level
Parameters
instance-id: MSTI ID. The minimum value is 0, representing the CIST, and the value range is 0 to 15.
vlan vlan-list: Specifeis a VLAN list in the format of vlan-list = { vlan-id [ to vlan-id2 }&<1-10>, in which vlan-id represents the VLAN ID and ranges from 1 to 4094. &<1-10> indicates you can specify up to 10 VLAN IDs or VLAN ID ranges.
Description
Use the instance command to map the specified VLAN(s) to the specified MSTI.
Use the undo instance command to remap the specified VLAN(s) or all VLANs to the CIST (MSTI 0).
By default, all VLANs are mapped to the CIST.
Notice that:
l If you specify no VLAN in the undo instance command, all VLANs mapped to the specified MSTI will be remapped to the CIST.
l You cannot map the same VLAN to different MSTIs. If you map a VLAN that has been mapped to an MSTI to a new MSTI, the old mapping will be automatically removed.
l After configuring the VLAN-to-instance mapping, you need to run the active region-configuration command to activate the VLAN-to-instance mapping.
Related commands: display stp region-configuration, check region-configuration, and active region-configuration.
Examples
# Map VLAN 2 to MSTI 1.
<Sysname> system-view
[Sysname] stp region-configuration
[Sysname-mst-region] instance 1 vlan 2
region-name
Syntax
region-name name
undo region-name
View
MST region view
Default Level
2: System level
Parameters
name: MST region name, a string of 1 to 32 characters.
Description
Use the region-name command to configure the MST region name.
Use the undo region-name command to restore the default.
By default, the MST region name of a bridge is its MAC address.
The MST region name, the VLAN-to-instance mapping table and the MSTP revision level of a bridge jointly determine the MST region to which the bridge belongs.
After configuring the MST region name, you need to run the active region-configuration command to activate the configured MST region name.
Related commands: instance, revision-level, vlan-mapping modulo, display stp region-configuration, check region-configuration, and active region-configuration.
Examples
# Set the MST region name of the AP to hello.
<Sysname> system-view
[Sysname] stp region-configuration
[Sysname-mst-region] region-name hello
reset stp
Syntax
reset stp [ interface interface-list ]
View
User view
Default Level
1: Monitor level
Parameters
interface interface-list: Specifies a port list, in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 ports or port ranges.
Description
Use the reset stp command to clear the MSTP statistics information.
The MSTP statistics information includes the numbers of TCN BPDUs, configuration BPDUs, RST BPDUs and MST BPDUs sent/received through the specified ports (STP BPDUs and TCN BPDUs are counted only for the CIST).
This command clears the spanning tree-related statistics information on the specified port(s) if you specify the interface-list argument; otherwise, this command clears the spanning tree-related statistics on all ports.
Related commands: display stp.
Examples
# Clear the spanning tree-related statistics information on ports Ethernet 1/0/1 through Ethernet 1/0/2.
<Sysname> reset stp interface ethernet 1/0/1 to ethernet 1/0/2
revision-level
Syntax
revision-level level
undo revision-level
View
MST region view
Default Level
2: System level
Parameters
level: MSTP revision level, in the range of 0 to 65535.
Description
Use the region-level command to configure the MSTP revision level of your AP.
Use the undo region-level command to restore the default MSTP revision level.
By default, the MSTP revision level is 0.
The MSTP revision level, the MST region name and the VLAN-to-instance mapping table of a bridge jointly determine the MST region to which the bridge belongs. When the MST region name and VLAN-to-instance mapping table are both the same for two MST regions, you can still tell them apart by their MSTP revision levels.
After configuring this command, you need to run the active region-configuration command to activate the configured MST region level.
Related commands: instance, region-name, vlan-mapping modulo, display stp region-configuration, check region-configuration, and active region-configuration.
Examples
# Set the MSTP revision level of the MST region to 5.
<Sysname> system-view
[Sysname] stp region-configuration
[Sysname-mst-region] revision-level 5
stp bpdu-protection
Syntax
stp bpdu-protection
undo stp bpdu-protection
View
System view
Default Level
2: System level
Parameters
None
Description
Use the stp bpdu-protection command to enable the BPDU guard function for the AP.
Use the undo stp bpdu-protection command to disable the BPDU guard function for the AP.
By default, the BPDU guard function is disabled.
Examples
# Enable the BPDU guard function for the AP.
<Sysname> system-view
[Sysname] stp bpdu-protection
stp bridge-diameter
Syntax
stp bridge-diameter diameter
undo stp bridge-diameter
View
System view
Default Level
2: System level
Parameters
diameter: Specifies the switched network diameter, in the range of 2 to 7.
Description
Use the stp bridge-diameter command to specify the network diameter, namely the maximum possible number of stations between any two terminal devices on the switched network.
Use the undo stp bridge-diameter command to restore the default.
By default, the network diameter of the switched network is 7.
An appropriate setting of hello time, forward delay and max age can speed up network convergence. The values of these timers are related to the network size. You can set these three timers indirectly by setting the network diameter. Based on the network diameter you configured, MSTP automatically sets an optimal hello time, forward delay, and max age for the bridge. With the network diameter set to 7 (the default), the three timer are also set to their defaults.
This configuration must be configured on the root bridge and is effective for the CIST only, not for MSTIs.
Related commands: stp timer forward-delay, stp timer hello, and stp timer max-age.
Examples
# Set the network diameter of the switched network to 5.
<Sysname> system-view
[Sysname] stp bridge-diameter 5
stp compliance
Syntax
stp compliance { auto | dot1s | legacy }
undo stp compliance
View
Ethernet interface view, port group view, WLAN Mesh interface view
Default Level
2: System level
Parameters
auto: Configures the port(s) to recognize the MSTP BPDU format automatically and accordingly determine the format of MSTP BPDUs to send.
dot1s: Configures the port(s) to receive and send only standard-format (802.1s-compliant) MSTP BPDUs.
legacy: Configures the port(s) to receive and send only compatible-format MSTP BPDUs.
Description
Use the stp compliance command to configure the mode the specified port(s) will use to recognize and send MSTP BPDUs.
Use the undo stp compliance command to restore the system default.
By default, a port automatically recognizes the formats of received MSTP packets and determines the formats of MSTP packets to be sent based on the recognized formats.
Configured in Ethernet interface view or WLAN mesh interface view, the setting takes effect on the current interface only. Configured in port group view, the setting takes effect on all ports in the port group.
Examples
# Configure Ethernet 1/0/1 to receive and send only standard-format (802.1s) MSTP packets.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp compliance dot1s
stp config-digest-snooping
Syntax
stp config-digest-snooping
undo stp config-digest-snooping
View
System view, Ethernet interface view, port group view, WLAN Mesh interface view
Default Level
2: System level
Parameters
None
Description
Use the stp config-digest-snooping command to enable Digest Snooping.
Use the undo stp config-digest-snooping command to disable Digest Snooping.
The feature is disabled by default.
Configured in system view, the setting takes effect globally. Configured in interface view, the setting takes effect on the current port only. Configured in port group view, the setting takes effect on all ports in the port group.
To make Digest Snooping take effect, you must enable it both globally and on ports connected to other vendors’ network devices. It is recommended that you enable the feature on all associated ports first and then globally, making the feature take effect on all associated ports at the same time to minimize the impact, and disable the feature globally to disable it on all associated ports.
Related commands: display stp.
Examples
# Enable Digest Snooping on Ethernet 1/0/1 and then globally.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp config-digest-snooping
[Sysname-Ethernet1/0/1] quit
[Sysname] stp config-digest-snooping
stp cost
Syntax
stp [ instance instance-id ] cost cost
undo stp [ instance instance-id ] cost
View
Ethernet interface view, port group view, WLAN Mesh interface view
Default Level
2: System level
Parameters
instance instance-id: Sets the path cost of the port(s) in a particular MSTI. The minimum value of instance-id is 0, representing the CIST, and the value range of instance-id is 0 to 15.
cost: Path cost of the port, the effective range of which depends on the path cost calculation standard adopted.
l With the IEEE 802.1d-1998 standard selected for path cost calculation, the cost argument ranges from 1 to 65535.
l With the IEEE 802.1t standard selected for path cost calculation, the cost argument ranges from 1 to 200000000.
l With the private standard selected for path cost calculation, the cost argument ranges from 1 to 200000.
Description
Use the stp cost command to set the path cost of the port(s) in the specified MSTI or all MSTIs.
Use the undo stp cost command to restore the system default.
By default, the AP automatically calculates the path costs of ports in each MSTI based on the corresponding standard.
l Configured in interface view, the setting takes effect on the current port only. Configured in port group view, the setting takes effect on all ports in the port group.
l Path cost is an important factor in spanning tree calculation. Setting different path costs for a port in MSTIs allows VLAN traffic flows to be forwarded along different physical links, thus achieving VLAN-based load balancing.
l The path cost setting of a port can affect the role selection of the port. When the path cost of a port is changed, MSTP will re-compute the role of the port and initiate a state transition.
Related commands: display stp.
Examples
# Set the path cost of port Ethernet 1/0/1 in MSTI 2 to 200.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp instance 2 cost 200
stp edged-port
Syntax
stp edged-port { enable | disable }
undo stp edged-port
View
Ethernet interface view, port group view, WLAN Mesh interface view
Default Level
2: System level
Parameters
enable: Configures the current port(s) to be an edge port or edge ports.
disable: Configures the current port(s) to be a non-edge port or non-edge ports.
Description
Use the stp edged-port command to configure the port(s) to be an edge or non-edge port (or ports).
Use the undo stp edged-port command to restore the default.
All ports are non-edge ports by default.
Configured in interface view, the setting takes effect on the current port only. Configured in port group view, the setting takes effect on all ports in the port group.
If a port directly connects to a user terminal rather than another bridge or a shared LAN segment, this port is regarded as an edge port. When the network topology changes, an edge port will not cause a temporary loop. Therefore, configuring a port as an edge port can enable the port to transition to the forwarding state rapidly. It is recommended that you configure a port directly connecting to a user terminal as an edge port to enable it to transition to the forwarding state rapidly.
Normally, configuration BPDUs from other bridges cannot reach an edge port because it does not connect to any other bridge. Before the BPDU guard function is enabled, if a port receives a configuration BPDU, the port is working actually as a non-edge port even if you have configured it as an edge port.
Examples
# Configure Ethernet 1/0/1 as an edge port.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp edged-port enable
stp enable
Syntax
stp enable
undo stp enable
View
System view, Ethernet interface view, port group view, WLAN Mesh interface view
Default Level
2: System level
Parameters
None
Description
Use the stp enable command to enable MSTP globally or on the port(s).
Use the undo stp enable command to disable MSTP globally or on the port(s).
By default, MSTP is disabled globally. After MSTP is enabled globally, MSTP is enabled for all ports.
Configured in system view, the setting takes effect for the AP globally. Configured in interface view, the setting takes effect on the current port only. Configured in port group view, the setting takes effect on all ports in the port group.
To control MSTP flexibly, you can disable the MSTP feature for certain ports so that they will not take part in spanning tree calculation and thus to save the AP’s CPU resources.
After you enable MSTP, the AP determines whether to work in STP-compatible mode, in RSTP mode or in MSTP mode according to your MSTP work mode setting.
After being enabled, MSTP dynamically maintains spanning tree status of the corresponding VLANs based on the received configuration BPDUs. After being disabled, it stops maintaining the spanning tree status.
Related commands: stp mode.
Examples
# Enable MSTP globally.
<Sysname> system-view
[Sysname] stp enable
# Disable MSTP on port Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] undo stp enable
stp loop-protection
Syntax
stp loop-protection
undo stp loop-protection
View
Ethernet interface view, port group view, WLAN Mesh interface view
Default Level
2: System level
Parameters
None
Description
Use the stp loop-protection command to enable the loop guard function on the port(s).
Use the undo stp loop-protection command to restore the system default.
By default, loop guard is disabled.
Examples
# Enable the loop guard function on Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp loop-protection
stp max-hops
Syntax
stp max-hops hops
undo stp max-hops
View
System view
Default Level
2: System level
Parameters
hops: Maximum hops, in the range of 1 to 40
Description
Use the stp max-hops command to set the maximum hops of the MST region on the AP.
Use the undo stp max-hops command to restore the maximum hops to the default setting.
By default, the maximum number of hops of an MST region is 20.
Related commands: display stp.
Examples
# Set the maximum hops of the MST region to 35.
<Sysname> system-view
[Sysname] stp max-hops 35
stp mcheck
Syntax
stp mcheck
View
System view, Ethernet interface view, WLAN Mesh interface view
Default Level
2: System level
Parameters
None
Description
Use the stp mcheck command to perform the mCheck operation globally or on the current port.
If a port on a bridge running MSTP (or RSTP) connects to a bridge running STP, this port will automatically migrate to the STP-compatible mode. However, it will not be able to migrate automatically back to the MSTP (or RSTP) mode, but will remain in the STP-compatible mode under the following circumstances:
l The bridge running STP is shut down or removed.
l The bridge running STP migrates to the MSTP (or RSTP) mode.
By then, you can perform an mCheck operation to force the port to migrate to the MSTP (or RSTP) mode.
The AP works in STP-compatible, RSTP, or MSTP mode depending on the MSTP mode setting.
The stp mcheck command is meaningful only when the AP works in RSTP or MSTP mode.
Configured in system view, the setting takes effect globally. Configured in Ethernet interface view or WLAN mesh interface view, the setting takes effect on the current interface only. Configured in port group view, the setting takes effect on all member ports in the port group.
Related commands: stp mode.
Examples
# Perform mCheck on Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp mcheck
stp mode
Syntax
stp mode { stp | rstp | mstp }
undo stp mode
View
System view
Default Level
2: System level
Parameters
stp: Sets the STP-compatible mode for the AP.
rstp: Sets the RSTP mode for the AP.
mstp: Sets the MSTP mode for the AP.
Description
Use the stp mode command to set the MSTP work mode for the AP.
Use the undo stp mode command to restore the MSTP work mode to the default setting.
By default, an MSTP bridge works in MSTP mode.
Related commands: stp mcheck and stp enable.
Examples
# Configure the MSTP bridge to work in STP-compatible mode.
<Sysname> system-view
[Sysname] stp mode stp
stp no-agreement-check
Syntax
stp no-agreement-check
undo stp no-agreement-check
View
Ethernet interface view, port group view, WLAN Mesh interface view
Default Level
2: System level
Parameters
None
Description
Use the stp no-agreement-check command to enable No Agreement Check on the port(s).
Use the undo stp no-agreement-check command to disable No Agreement Check on the port(s).
By default, No Agreement Check is disabled.
To use the No Agreement Check feature, enable it on the root port.
Examples
# Enable No Agreement Check on Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp no-agreement-check
stp pathcost-standard
Syntax
stp pathcost-standard { dot1d-1998 | dot1t | legacy }
undo stp pathcost-standard
View
System view
Default Level
2: System level
Parameters
dot1d-1998: Calculates the default path cost for ports based on IEEE 802.1d-1998.
dot1t: Calculates the default path cost for ports based on IEEE 802.1t.
legacy: Calculates the default path cost for ports based on a private standard.
Description
Use the stp pathcost-standard command to specify a standard for the AP to use when calculating the default path costs for ports.
Use the undo stp pathcost-standard command to restore the system default.
The default standard used by the AP is legacy.
If you change the standard that the AP uses in calculating the default path cost, the port path cost value set with the stp cost command will be invalid.
Table 1-10 shows the path costs calculated using different standards at different link speed.
Table 1-10 Link speed vs. path cost
Link speed |
Duplex state |
Path cost in 802.1d-1998 standard |
Path cost in IEEE 802.1t standard |
Path cost in private standard |
0 |
— |
65535 |
200,000,000 |
200,000 |
10 Mbps |
Single Port Aggregate Link 2 Ports Aggregate Link 3 Ports Aggregate Link 4 Ports |
100 100 100 100 |
2,000,000 1,000,000 666,666 500,000 |
2,000 1,800 1,600 1,400 |
100 Mbps |
Single Port Aggregate Link 2 Ports Aggregate Link 3 Ports Aggregate Link 4 Ports |
19 19 19 19 |
200,000 100,000 66,666 50,000 |
200 180 160 140 |
1000 Mbps |
Single Port Aggregate Link 2 Ports Aggregate Link 3 Ports Aggregate Link 4 Ports |
4 4 4 4 |
20,000 10,000 6,666 5,000 |
20 18 16 14 |
Related commands: stp cost and display stp.
Examples
# Configure the AP to calculate the default path cost for ports based on IEEE 802.1d-1998.
<Sysname> system-view
[Sysname] stp pathcost-standard dot1d-1998
stp point-to-point
Syntax
stp point-to-point { auto | force-false | force-true }
undo stp point-to-point
View
Ethernet interface view, port group view, WLAN Mesh interface view
Default Level
2: System level
Parameters
auto: Specifies automatic detection of the link type.
force-false: Specifies the non-point-to-point link type.
force-true: Specifies the point-to-point link type.
Description
Use the stp point-to-point command to configure the link type of the current port(s).
Use the undo stp point-to-point command to restore the system default.
The default setting is auto, namely, the MSTP bridge automatically detects whether a port connects to a point-to-point link.
Configured in interface view, the setting takes effect on the current port only. Configured in port group view, the setting takes effect on all ports in the port group.
When connecting to a non-point-to-point link, a port is incapable of rapid state transition.
If the current port works in full duplex mode, the link to which the current port connects is a point-to-point link. It is recommended that you use the default setting, namely let MSTP detect the link status automatically.
This setting takes effect on the CIST and all MSTIs. If a port is configured as connecting to a point-to-point link or a non-point-to-point link, the setting takes effect for the port in all MSTIs. If the physical link to which the port connects is not a point-to-point link and you force it to be a point-to-point link by configuration, your configuration may incur a temporary loop.
Related commands: display stp.
Examples
# Configure port Ethernet 1/0/1 as connecting to a point-to-point link.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp point-to-point force-true
stp port priority
Syntax
stp [ instance instance-id ] port priority priority
undo stp [ instance instance-id ] port priority
View
Ethernet interface view, port group view, WLAN Mesh interface view
Default Level
2: System level
Parameters
instance instance-id: Sets the priority of the current port(s) in a particular MSTI. The minimum value of instance-id is 0, representing the CIST, and the value range of instance-id is 0 to 15.
priority: Port priority, in the range of 0 to 240 in steps of 16 (0, 16, 32…, for example).
Description
Use the stp port priority command to set the priority of the port(s).
Use the undo stp port priority command to restore the system default.
Port priority affects the role of a port in an MSTI.
By default, the port priority is 128.
Configured in interface view, the setting takes effect on the current port only. Configured in port group view, the setting takes effect on all ports in the port group.
Setting different priorities for the same port in different MSTIs allows different VLAN traffic flows to be forwarded along different physical links, thus to achieve VLAN-based load balancing.
When the priority of a port is changed in an MSTI, MSTP will re-compute the role of the port and initiate a state transition in the MSTI.
Related commands: display stp.
Examples
# Set the priority of port Ethernet 1/0/1 in MSTI 2 to 16.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp instance 2 port priority 16
stp priority
Syntax
stp [ instance instance-id ] priority priority
undo stp [ instance instance-id ] priority
View
System view
Default Level
2: System level
Parameters
instance instance-id: Sets the priority of the AP in a particular spanning tree instance. The minimum value of instance-id is 0, representing the CIST, and the value range of instance-id is 0 to 15.
priority: Port priority, in the range of 0 to 61440 in steps of 4096, namely you can set up to 16 priority values, such as 0, 4096, 8192…, on the AP. A smaller priority value indicates a higher priority level.
Description
Use the stp priority command to set the priority of the AP.
Use the undo stp priority command to restore the default.
By default, the AP priority is 32768.
Examples
# Set the AP priority in MSTI 1 to 4096.
<Sysname> system-view
[Sysname] stp instance 1 priority 4096
stp region-configuration
Syntax
stp region-configuration
undo stp region-configuration
View
System view
Default Level
2: System level
Parameters
None
Description
Use the stp region-configuration command to enter MST region view.
Use the undo stp region-configuration command to restore the default MST region configurations.
By default, the default settings are used for all the three MST region parameters. Namely, the AP’s MST region name is the AP’s MAC address, all VLANs are mapped to the CIST, and the MSTP revision level is 0.
After you enter MST region view, you can configure the parameters related to the MST region, including the region name, VLAN-to-instance mappings and revision level.
Examples
# Enter MST region view.
<Sysname> system-view
[Sysname] stp region-configuration
[Sysname-mst-region]
stp root primary
Syntax
stp [ instance instance-id ] root primary
undo stp [ instance instance-id ] root
View
System view
Default Level
2: System level
Parameters
instance instance-id: Configures the AP as the root bridge in a particular MSTI. The minimum value of instance-id is 0, representing the CIST, and the value range of instance-id is 0 to 15.
Description
Use the stp root primary command to configure the current AP as the root bridge.
Use the undo stp root command to restore the system default.
By default, the AP is not a root bridge in any MSTI.
There is only one root bridge in effect in an MSTI. If two or more bridges have been designated to be the root bridge of the same MSTI, MSTP selects the one with the lowest MAC address as the root bridge.
You can specify a root bridge for each MSTI without caring about the bridge priority. After specifying a bridge as the root bridge or a secondary root bridge, you cannot change the priority of the bridge.
Related commands: stp priority and stp root secondary.
Examples
# Specify the AP as the root bridge of MSTI 0.
<Sysname> system-view
[Sysname] stp instance 0 root primary
stp root secondary
Syntax
stp [ instance instance-id ] root secondary
undo stp [ instance instance-id ] root
View
System view
Default Level
2: System level
Parameters
instance instance-id: Configures the AP as a secondary root bridge in a particular MSTI. The minimum value of instance-id is 0, representing the CIST, and the value range of instance-id is 0 to 15.
Description
Use the stp root secondary command to configure the AP as a secondary root bridge in a specified MSTI.
Use the undo stp root command to restore the default.
By default, the AP is not a secondary root bridge in any MSTI.
You can configure one or more secondary root bridges for each MSTI. When the root bridge of an MSTI fails or is shut down, the secondary root bridge can take over the role of the root bridge of the specified MSTI. However, if you specify a new primary root bridge for the instance then, the secondary root bridge will not become the root bridge. If you specify more than one secondary root bridge, the secondary root bridge with the lowest MAC address will become the root bridge.
After specifying a bridge as a secondary root bridge, you cannot change the priority of the bridge.
Related commands: stp priority and stp root primary.
Examples
# Specify the AP as a secondary root bridge of MSTI 0.
<Sysname> system-view
[Sysname] stp instance 0 root secondary
stp root-protection
Syntax
stp root-protection
undo stp root-protection
View
Ethernet interface view, port group view, WLAN Mesh interface view
Default Level
2: System level
Parameters
None
Description
Use the stp root-protection command to enable the root guard function on the port(s).
Use the undo stp root-protection command to restore the default.
By default, the root guard function is disabled.
Examples
# Enable the root guard function for Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp root-protection
stp tc-protection
Syntax
stp tc-protection enable
stp tc-protection disable
View
System view
Default Level
2: System level
Parameters
None
Description
Use the stp tc-protection enable command to enable the TC-BPDU guard function for the AP.
Use the stp tc-protection disable command to disable the TC-BPDU guard function for the AP.
By default, the TC-BPDU guard function is enabled.
Examples
# Disable the TC-BPDU guard function for the AP.
<Sysname> system-view
[Sysname] stp tc-protection disable
stp tc-protection threshold
Syntax
stp tc-protection threshold number
undo stp tc-protection threshold
View
System view
Default Level
2: System level
Parameters
number: Maximum number of immediate forwarding address entry flushes that the switch can perform within a certain period of time after it receives the first TC-BPDU, in the range of 1 to 255.
Description
Use the stp tc-protection threshold command to configure the maximum number of forwarding address entry flushes that the AP can perform within a certain period of time after it receives the first TC-BPDU.
Use the undo stp tc-protection threshold command to restore the default.
By default, the AP can perform a maximum of six forwarding address entry flushes within 10 seconds after it receives the first TC-BPDU.
Examples
# Set the maximum number of times the AP deletes forwarding address entries within a certain period of time immediately after it receives the first TC-BPDU to 10.
<Sysname> system-view
[Sysname] stp tc-protection threshold 10
stp timer forward-delay
Syntax
stp timer forward-delay time
undo stp timer forward-delay
View
System view
Default Level
2: System level
Parameters
time: Forward delay in centiseconds, ranging form 400 to 3000 in steps of 100.
Description
Use the stp timer forward-delay command to set the forward delay timer of the AP.
Use the undo stp timer forward-delay command to restore the default.
By default, the forward delay timer is set to 1,500 centiseconds.
In order to prevent temporary loops, a port must go through an intermediate state, the learning state, before it transitions from the discarding state to the forwarding state, and must wait a certain period of time before it transitions from one state to another to keep synchronized with the remote bridge during state transition. The forward delay timer set on the root bridge determines the interval of state transition.
If the AP is the root bridge, the state transition interval of the AP depends on the forward delay value configured through this command; for a non- root bridge, its state transition interval is determined by the forward delay timer set on the root bridge.
To avoid frequent network changes, the settings of the hello time, forward delay and max age timers must meet the following formulae:
l 2 × (forward delay – 1 second) ¦ max age
l Max age ¦ 2 × (hello Time + 1 second)
It is recommended that you specify the network diameter of the switched network with the stp root primary command and let MSTP automatically calculate optimal settings of these three timers.
Related commands: stp timer hello, stp timer max-age, and stp bridge-diameter.
Examples
# Set the forward delay timer of the AP to 2,000 centiseconds.
<Sysname> system-view
[Sysname] stp timer forward-delay 2000
stp timer hello
Syntax
stp timer hello time
undo stp timer hello
View
System view
Default Level
2: System level
Parameters
time: Hello time in centiseconds, ranging from 100 to 1000 in steps of 100.
Description
Use the stp timer hello command to set the hello time of the AP.
Use the undo stp timer hello command to restore the default.
By default, the hello time is set to 200 centiseconds.
Hello time is the time interval at which MSTP bridges send configuration BPDUs to maintain a spanning tree. If a bridge fails to receive configuration BPDUs within the set period of time, a new spanning tree calculation process will be triggered due to timeout. The root bridge sends configuration BPDUs at the interval of the hello time set through this command, while non-root bridges use the hello time set on the root bridge.
To avoid frequent network changes, the settings of the hello time, forward delay and max age timers must meet the following formulae:
l 2 × (forward delay – 1 second) ¦ max age
l Max age ¦ 2 × (hello time + 1 second)
It is recommended that you specify the network diameter of the switched network using the stp root primary command and let MSTP automatically calculate optimal settings of these three timers.
Related commands: stp timer forward-delay, stp timer max-age, and stp bridge-diameter.
Examples
# Set the hello time of the AP to 400 centiseconds.
<Sysname> system-view
[Sysname] stp timer hello 400
stp timer max-age
Syntax
stp timer max-age time
undo stp timer max-age
View
System view
Default Level
2: System level
Parameters
time: Max age in centiseconds, ranging from 600 to 4000 in steps of 100.
Description
Use the stp timer max-age command to set the max age timer of the AP.
Use the undo stp timer max-age command to restore the default.
By default, the max age is set to 2,000 centiseconds.
MSTP can detect link failures and automatically restore the forwarding state of the redundant link. In the CIST, a bridge determines whether a configuration BPDU received on a port has expired based on the max age timer. If a port receives an expired configuration BPDU, a spanning tree calculation process is triggered for the corresponding MSTI.
The max age timer is not meaningful for MSTIs. If the AP is the root bridge of the CIST, it determines whether a configuration BPDU has expired based on the configured max age timer; if the AP is not the root bridge of the CIST, it uses the max age timer set on the CIST root bridge.
To avoid frequent network changes, the settings of the hello time, forward delay and max age timers must meet the following formulae:
l 2 × (forward delay – 1 second) ¦ max age
l Max age ¦ 2 × (hello time + 1 second)
It is recommended that you specify the network diameter using the stp root primary command and let MSTP automatically calculate an optimal setting of these three timers.
Related commands: stp timer forward-delay, stp timer hello, and stp bridge-diameter.
Examples
# Set the max age timer of the AP to 1,000 centiseconds.
<Sysname> system-view
[Sysname] stp timer max-age 1000
stp timer-factor
Syntax
stp timer-factor factor
undo stp timer-factor
View
System view
Default Level
2: System level
Parameters
factor: Timeout factor, in the range of 1 to 20.
Description
Use the stp timer-factor command to set the timeout factor, which decides the timeout time. Timeout time = timeout factor × 3 × hello time.
Use the undo stp timer-factor command to restore the default.
By default, the timeout factor of the AP is set to 3.
After the network topology is stabilized, each non-root bridge forwards configuration BPDUs to the surrounding bridges at the interval of hello time to check whether any link is faulty. Typically, if a bridge does not receive a BPDU from the upstream bridge within nine times the hello time, it assumes that the upstream bridge has failed and starts a new spanning tree calculation process.
In a very stable network, this kind of spanning tree calculation may occur because the upstream bridge is busy. In this case, you can avoid such unwanted spanning tree calculations by increasing the timeout time, thus saving the network resources. It is recommended that you set the timeout factor to 5, or 6, or 7 for a stable network.
Related commands: stp timer hello.
Examples
# Set the timeout factor of the AP to 7.
<Sysname> system-view
[Sysname] stp timer-factor 7
stp transmit-limit
Syntax
stp transmit-limit limit
undo stp transmit-limit
View
Ethernet interface view, port group view, WLAN Mesh interface view
Default Level
2: System level
Parameters
limit: Maximum number of BPDUs the port(s) can send within each hello time, namely the maximum transmission rate of the port, in the range of 1 to 255.
Description
Use the stp transmit-limit command to set the maximum transmission rate of the port(s), that is, the maximum number of BPDUs the port(s) can send within each hello time.
Use the undo stp transmit-limit command to restore the default.
By default, the maximum transmission rate of all ports of the AP is 10, that is, each port can send up to 10 BPDUs within each hello time.
Configured in Ethernet interface view or WLAN mesh interface view, the setting takes effect on the current interface only. Configured in port group view, the setting takes effect on all member ports in the port group.
A larger maximum transmission rate value represents more BPDUs the port will send within each hello time, but this also means that more system resources will be used. An appropriate maximum transmission rate setting can limit the speed at which a port sends BPDUs and prevent MSTP from using excessive bandwidth resources during network topology changes. It is recommended that you use the default value.
Examples
# Set the maximum transmission rate of port Ethernet 1/0/1 to 5.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp transmit-limit 5
vlan-mapping modulo
Syntax
vlan-mapping modulo modulo
View
MST region view
Default Level
2: System level
Parameters
modulo: Modulo value. The minimum value is 1, and the value range is 1 to 15.
Description
Use the vlan-mapping modulo command to map VLANs in the current MST region to MSTIs according to the specified modulo value, thus quickly creating a VLAN-to-instance mapping table.
By default, all VLANs are mapped to the CIST (MSTI 0).
Do not map the same VLAN to different MSTIs. If you map a VLAN that has been mapped to an MSTI to a new MSTI, the old mapping will be automatically removed.
This command maps each VLAN to the MSTI whose ID is (VLAN ID - 1) %modulo + 1, where (VLAN ID - 1) %modulo is the modulo operation for (VLAN ID - 1). If the modulo value is 15, for example, then VLAN 1 will be mapped to MSTI 1, VLAN 2 to MSTI 2, VLAN 15 to MSTI 15, VLAN 16 to MSTI 1, and so on.
Related commands: region-name, revision-level, display stp region-configuration, check region-configuration, and active region-configuration.
Examples
# Map VLANs to MSTIs as per modulo 8.
<Sysname> system-view
[Sysname] stp region-configuration
[Sysname-mst-region] vlan-mapping modulo 8