Operation Manual
STP Commands
STP Commands
13 – 357
clear spantree portvlancost
Resets to the default value the cost of a network port or ports on paths to the STP root bridge for a
specific VLAN on an MX switch, or for all VLANs.
Syntax
clear spantree portvlancost port-list {all | vlan vlan-id}
Defaults
None.
Access
Enabled.
History
Introduced in MSS Version 1.0.
Usage
MSS does not change the port cost for VLANs other than the one(s) you specify.
Examples
The following command resets the STP cost for port 12 in VLAN sunflower:
MX# clear spantree portvlancost 12 vlan sunflower
success: change accepted.
See Also
● clear spantree portcost on page 13-355
● set spantree portcost on page 13-360
● set spantree portvlancost on page 13-362
● show spantree on page 13-364
● show spantree portvlancost on page 13-368
clear spantree portvlanpri
Resets to the default value 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
clear spantree portvlanpri port-list {all | vlan vlan-id}
Defaults
None.
Access
Enabled.
History
Introduced in MSS Version 1.0.
Usage
MSS does not change the port priority for VLANs other than the one(s) you specify.
Examples
The following command resets the STP priority for port 20 in VLAN avocado:
MX# clear spantree portvlanpri 20 vlan avocado
success: change accepted.
See Also
● clear spantree portpri on page 13-356
port-list List of ports. The port cost is reset on the specified ports.
all Resets the cost for all VLANs.
vlan
vlan-id
VLAN name or number. MSS resets the cost for only the specified VLAN.
port-list List of ports. The port priority is reset to 32 (the default) on the specified ports.
all Resets the priority for all VLANs.
vlan
vlan-id
VLAN name or number. MSS resets the priority for only the specified VLAN.