CLI Command
spanning-tree
spanning-tree mode {stp | rstp}
spanning-tree priority priority
spanning-tree hello-time seconds
spanning-tree max-age seconds
spanning-tree forward-time seconds
show spanning-tree [ethernet
interface | port-channel port-
channel-number]
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
Description
Enables spanning tree functionality.
Configures the spanning tree
protocol currently running.
Configures the spanning tree
priority.
Configures the spanning tree bridge
Hello Time, which is how often the
switch broadcasts Hello messages to
other switches.
Configures the spanning tree bridge
maximum age, which determines
the amount of time protocol
information received on a port is
stored by the switch.
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.
Displays spanning tree
configuration.
Configuring Switch Infor mation
243