Operation Manual

STP Commands
Mobility System Software Command Reference Guide
Version 7.3
13 – 358
set spantree portpri on page 13-362
set spantree portvlanpri on page 13-363
show spantree on page 13-364
clear spantree statistics
Clears STP statistics counters for a network port or ports and resets them to 0.
Syntax
clear spantree statistics port-list [vlan vlan-id]
Defaults
None.
Access
Enabled.
History
Introduced in MSS Version 1.0.
Examples
The following command clears STP statistics counters for ports 5, 11, and 19 through
22, for all VLANs:
MX# clear spantree statistics 5,11,19-22
success: change accepted.
See Also
show spantree statistics on page 13-369
set spantree
Enables or disables STP on one VLAN or all VLANs configured on an MX.
Syntax
set spantree {enable | disable}
[{all
| vlan vlan-id | port port-list vlan-id}]
Defaults
Disabled.
Access
Enabled.
History
Introduced in MSS Version 1.0.
Examples
The following command enables STP on all VLANs configured on an MX:
MX# set spantree enable
success: change accepted.
The following command disables STP on VLAN burgundy:
MX# set spantree disable vlan burgundy
success: change accepted.
port-list List of ports. Statistics counters are reset on the specified ports.
vlan
vlan-id
VLAN name or number. MSS resets statistics counters for only the specified VLAN.
enable Enables STP.
disable Disables STP.
all Enables or disables STP on all VLANs.
vlan
vlan-id
VLAN name or number. MSS enables or disables STP on only
the specified VLAN, on all ports within the VLAN.
port port-list
vlan-id
Port number or list and the VLAN the ports are in. MSS
enables or disables STP on only the specified ports, within the
specified VLAN.