Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring STP (Rev. 03)
Spanning Tree Protocol (STP)
© 2008 Foundry Networks, Inc.
Page 23 of 38
Table 4: STP Interface Configuration Commands
Command
Description
spanning-tree path-cost
Sets the STP port path-cost.
spanning-tree priority
Sets the STP port priority.
spanning-tree defaults
Restores the STP parameters to their defaults for the
configured interface.
spanning-tree detect-tc
Enables topology-change detection on the configured
interface.
Setting STP Interface Path-Cost
The
spanning-tree path-cost
command, in Interface Configuration mode, sets the STP port path-
cost. The
no
form of this command resets the path-cost to the default value.
Assign lower cost values to interfaces that the user wants to be selected first, and higher cost values
to interfaces that the user wants to be selected last. If all interfaces have the same cost value, STP
puts the interface with the lowest interface number in the forwarding state and blocks other
interfaces.
By default, the port path-cost is 10.
Command Syntax
device-name
(config-if
UU/SS/PP
)#
spanning-tree path-cost
<
path-cost
>
device-name
(config-if
UU/SS/PP
)#
no spanning-tree path-cost
Argument Description
path-cost
STP path-cost value, in the range <1-200000000>, which is assigned to the
configured interface.
Setting STP Port Priority
The
spanning-tree priority
command, in Interface Configuration mode, sets the STP port priority.
The
no
form of this command resets the STP priority to the default value.
If a loop occurs, STP uses the port priority when selecting an interface to put into the forwarding
state. Assign lower values (indicating higher priorities) to interfaces that the user wants to be
selected first, and higher values (indicating lower priorities) to interfaces that the user wants to be
selected last. If all interfaces have the same priority value, STP puts the interface with the lowest
interface number in the forwarding state and blocks other interfaces. The priority range is 0
(highest priority) to 255 (lowest priority).
By default, the port priority is 128.
Command Syntax
device-name
(config-if
UU/SS/PP
)#
spanning-tree priority
<
priority
>
device-name
(config-if
UU/SS/PP
)#
no spanning-tree priority