Operation Manual
STP Commands
STP Commands
13 – 363
See Also
● clear spantree portcost on page 13-355
● clear spantree portvlancost on page 13-357
● set spantree portcost on page 13-360
● show spantree on page 13-364
● show spantree portvlancost on page 13-368
set spantree portvlanpri
Changes the priority of a network port or ports for selection as part of the path to the STP root
bridge, on one VLAN or all VLANs.
Syntax
set spantree portvlanpri port-list priority value {all | vlan vlan-id}
Defaults
The default STP priority for all network ports is 128.
Access
Enabled.
History
Introduced in MSS Version 1.0.
Examples
The following command sets the priority of ports 3 and 4 to 48 on VLAN mauve:
MX# set spantree portvlanpri 3-4 priority 48 vlan mauve
success: change accepted.
See Also
● clear spantree portpri on page 13-356
● clear spantree portvlanpri on page 13-357
● set spantree portpri on page 13-362
● show spantree on page 13-364
set spantree priority
Changes the STP root bridge priority of an MX switch on one or all of its VLANs.
Syntax
set spantree priority value {all | vlan vlan-id}
Defaults
The default root bridge priority for the MX on all VLANs is 32,768.
Access
Enabled.
History
Introduced in MSS Version 1.0.
port-list List of ports. MSS changes the priority on the specified ports.
priority
value
Priority value. You can specify a value from 0 (highest) through 255 (lowest).
all Changes the priority on all VLANs.
vlan
vlan-id
VLAN name or number. MSS changes the priority on only the specified VLAN.
priority
value
Priority value. You can specify a value from 0 through 65,535. The bridge with the
lowest priority value is elected to be the root bridge for the spanning tree.
all Changes the bridge priority on all VLANs.
vlan
vlan-id
VLAN name or number. MSS changes the bridge priority on only the specified VLAN.