121
[Sysname] stp mode pvst
[Sysname] stp enable
[Sysname] stp vlan 2 enable
# In MSTP mode, disable the spanning tree feature on port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo stp enable
stp ignored vlan
Description
Use the stp ignored vlan command to enable VLAN Ignore for the specified VLANs.
Use the undo stp ignored vlan command to disable VLAN Ignore for the specified VLANs.
By default, VLAN Ignore is disabled for a VLAN.
Related commands: display stp ignored-vlan.
Syntax
stp ignored vlan vlan-list
undo stp ignored vlan vlan-list
View
System view
Default level
2: System level
Parameter
vlan vlan-list: Specifies a VLAN list in the format of vlan-list = { vlan-id [ to vlan-id ] }&<1-10>, where the
vlan-id parameter represents the VLAN ID, in the range of 1 to 4094, and &<1-10> indicates that you can
specify up to 10 VLAN IDs or VLAN ID ranges.
Example
# Enable VLAN Ignore for VLAN 1 through VLAN 10.
<Sysname> system-view
[Sysname] stp ignored vlan 1 to 10
stp loop-protection
Description
Use the stp loop-protection command to enable the loop guard function on the ports.
Use the undo stp loop-protection command to restore the default.
By default, the loop guard function is disabled.
Configured in Ethernet interface view, the setting takes effect only on the interface.
Configured in port group view, the setting takes effect on all ports in the port group.