C o n f i g u r i n g S w i t c h I n f o r m a t i o n
243
The following is an example of the CLI commands:
Console(config)# spanning-tree
Console(config)# spanning-tree mode rstp
Console(config)# spanning-tree priority 12288
Console(config)# spanning-tree hello-time 5
Console(config)# spanning-tree max-age 10
Console(config)# spanning-tree forward-time 25
Console(config)# exit
Console# show spanning-tree
Spanning tree enabled mode RSTP
CLI Command
Description
spanning-tree
Enables spanning tree functionality.
spanning-tree mode {stp | rstp}
Configures the spanning tree
protocol currently running.
spanning-tree priority
priority
Configures the spanning tree
priority.
spanning-tree hello-time
seconds
Configures the spanning tree bridge
Hello Time, which is how often the
switch broadcasts Hello messages to
other switches.
spanning-tree max-age
seconds
Configures the spanning tree bridge
maximum age, which determines
the amount of time protocol
information received on a port is
stored by the switch.
spanning-tree forward-time seconds
Configures the spanning tree bridge
forward time, which is the amount
of time a port remains in the
listening and learning states before
entering the forwarding state.
show spanning-tree [ethernet
interface
| port-channel
port-
channel-number
]
Displays spanning tree
configuration.