Operation Manual
STP Commands
Mobility System Software Command Reference Guide
Version 7.3
13 – 362
See Also
show spantree portfast on page 13-367
set spantree portpri
Changes the STP priority of a network port or ports for selection as part of the path to the STP
root bridge in the default VLAN on an MX.
Syntax
set spantree portpri port-list priority value
Defaults
The default STP priority for all network ports is 128.
Access
Enabled.
History
Introduced in MSS Version 1.0.
Usage
This command applies only to the default VLAN (VLAN 1). To change the priority of a port
in another VLAN, use the set spantree portvlanpri command.
Examples
The following command sets the priority of ports 3 and 4 to 48:
MX# set spantree portpri 3-4 priority 48
success: change accepted.
See Also
● clear spantree portpri on page 13-356
● clear spantree portvlanpri on page 13-357
● set spantree portvlanpri on page 13-363
● show spantree on page 13-364
set spantree portvlancost
Changes the cost of a network port or ports on paths to the STP root bridge for a specific VLAN on
an MX switch.
Syntax
set spantree portvlancost port-list cost cost {all | vlan vlan-id}
Defaults
The default port cost depends on the port speed and link type. (See Table 1 on page 361.)
Access
Enabled.
History
Introduced in MSS Version 1.0.
Examples
The following command changes the cost on ports 3 and 4 to 20 in VLAN mauve:
MX# set spantree portvlancost 3,4 cost 20 vlan mauve
success: change accepted.
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).
port-list List of ports. MSS applies the cost change to all the specified ports.
cost
cost
Numeric value. You can specify a value from 1 through 65,535. STP selects lower-cost
paths over higher-cost paths.
all Changes the cost on all VLANs.
vlan
vlan-id
VLAN name or number. MSS changes the cost on only the specified VLAN.