![HP FlexNetwork 5130 HI series Command Reference Manual Download Page 165](http://html.mh-extra.com/html/hp/flexnetwork-5130-hi-series/flexnetwork-5130-hi-series_command-reference-manual_165888165.webp)
157
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp transmit-limit 5
stp vlan enable
Use
stp
vlan
enable
to enable the spanning tree feature for VLANs.
Use
undo stp
enable
to disable the spanning tree feature for VLANs.
Syntax
stp
vlan
vlan-id-list
enable
undo stp vlan
vlan-id-list
enable
Default
The spanning tree feature is enabled for all VLANs.
Views
System view
Predefined user roles
network-admin
Parameters
vlan vlan-id-list
: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a
VLAN or a range of VLANs in the form of
vlan-id1
[
to
vlan-id2
]. The value for
vlan-id2
must be equal
to or greater than the value for
vlan-id1
. The value range for the
vlan-id
argument is 1 to 4094. If you
do not specify this option, the command globally enables or disables the spanning tree feature
(VLANs are not included).
Usage guidelines
When you enable the spanning tree feature, the device operates in STP, RSTP, PVST, or MSTP
mode, depending on the spanning tree mode setting.
When you enable the spanning tree feature, the device dynamically maintains the spanning tree
status of VLANs, based on received configuration BPDUs. When you disable the spanning tree
feature, the device stops maintaining the spanning tree status.
Examples
# In PVST mode, globally enable the spanning tree feature, and enable the spanning tree feature in
VLAN 2.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] stp global enable
[Sysname] stp vlan 2 enable
Related commands
•
stp
enable
•
stp global enable
•
stp
mode
vlan-mapping modulo
Use
vlan-mapping modulo
to map VLANs in the MST region to MSTIs according to the specified
modulo value and quickly create a VLAN-to-instance mapping table.
Summary of Contents for FlexNetwork 5130 HI series
Page 302: ...294 ...