Operation Manual
STP Commands
STP Commands
13 – 361
Defaults
The default port cost depends on the port speed and link type. Table 1 lists the defaults
for STP port path cost.
Access
Enabled.
History
Introduced in MSS Version 1.0.
Usage
This command applies only to the default VLAN (VLAN 1). To change the cost of a port in
another VLAN, use the set spantree portvlancost command.
Examples
The following command changes the cost on ports 3 and 4 to 20:
MX# set spantree portcost 3,4 cost 20
success: change accepted.
See Also
● clear spantree portcost on page 13-355
● clear spantree portvlancost on page 13-357
● set spantree portvlancost on page 13-362
● show spantree on page 13-364
● show spantree portvlancost on page 13-368
set spantree portfast
Enables or disables STP port fast convergence on one or more ports on an MX.
Syntax
set spantree portfast port port-list {enable | disable}
Defaults
STP port fast convergence is disabled by default.
Access
Enabled.
History
Introduced in MSS Version 1.0.
Usage
Use port fast convergence on ports that are directly connected to servers, hosts, or other
MAC stations.
Examples
The following command enables port fast convergence on ports 9, 11, and 13:
MX# set spantree portfast port 9,11,13 enable
success: change accepted.
Table 1.SNMP Port Path Cost Defaults
Port Speed Link Type Default Port Path Cost
1000 Mbps Full Duplex Aggregate Link (Port Group) 19
1000 Mbps Full Duplex 4
100 Mbps Full Duplex Aggregate Link (Port Group) 19
100 Mbps Full Duplex 18
100 Mbps Half Duplex 19
10 Mbps Full Duplex Aggregate Link (Port Group) 19
10 Mbps Full Duplex 95
10 Mbps Half Duplex 100
port port-list List of ports. MSS enables the feature on the specified ports.
enable Enables port fast convergence.
disable Disables port fast convergence.