12.
Spanning Tree Protocol (STP)
MN700004 Rev 01
114
device-name
(cfg protocol)#
no spanning-tree forward-delay
Argument Description
forward-delay
The time in seconds that the switch stays in each of the Listening and Learning
states that precede the Forwarding State. The default value is 15 seconds.
spanning-tree max-age
The
spanning-tree max-age
command, in Protocol Configuration mode, sets the time in
seconds that learned Spanning Tree information is kept before being discarded. The default
value is 20 second, and the range depends on the hello time and forward delay values
(between 4 and 30 seconds). The
no
form of this command resets the default value.
NOTE
You cannot assign MaxAge a value that is less than 2*(hello-time + 1) or more than
2*(forward-delay – 1).
Command Syntax
device-name
(cfg protocol)#
spanning-tree max-age <
max-age
>
device-name
(cfg protocol)#
no spanning-tree max-age
Argument Description
max-age
The time in seconds during which learned Spanning Tree information is maintained before
being discarded. The default value is 20 seconds.
spanning-tree interface
The
spanning-tree interface
command, in Protocol Configuration mode, changes the mode
to the specified interface Configuration mode and enables the setting of the STP in the
specified interface, if a specific interface is specified. If
all
is specified, this command
displays the Spanning-Tree topology for all ports (the configuration mode stays the same).
The command is equivalent to the
spanning-tree all
command in any logical interface
configuration mode. See also Displaying Port Spanning-Tree Topology Settings
.
Command Syntax
device-name
(cfg protocol)#
spanning-tree interface
{
UU/SS/PP|
all
}
Argument Description
UU/SS/PP
Unit, slot and Port number of interface to be configured. The configuration mode is
changed accordingly.
all
The configuration mode does not change. Spanning Tree topology for all ports is
displayed.
Examples
1. Setting the spanning-tree priority of interface 1/1/1 to 100:
device-name
(cfg protocol)#
spanning-tree interface 1/1/1