STP Commands
  • 10 Jul 2024
  • 1 Minute to read
  • Contributors
  • PDF

STP Commands

  • PDF

Article summary

STP (Spanning Tree Protocol) is a link management protocol that provides path redundancy while preventing undesirable loops in the network created by multiple active paths between stations. To establish path redundancy, STP creates a tree that spans all switches in an extended network, forcing redundant paths into a standby or blocked state.

STP CLI commands are categorized as follows:

Enable and Disable Commands

This section includes the STP enable and disable commands.

spanning-tree

Command Objective:
This command enables the spanning tree operation in the switch for the selected spanning tree Mode.

Spanning tree operation provides path redundancy while preventing undesirable loops in the network that are created by multiple active paths between stations. It logically breaks such loops and prevents looping traffic from clogging the network.

The no form of this command disables the spanning tree operation in the switch. Once the spanning tree Mode is changed, the spanning tree operation is automatically enabled in the switch.

Syntax:
spanning-tree

no spanning-tree

Mode:
Global Configuration Mode

Default:
Spanning tree MSTP is started and enabled in the switch.


Note: The spanning tree operation can only be enabled if the spanning tree functionality is not shutdown in the switch. If the functionality is already shutdown, the type of spanning tree mode should be set.

Example:

Your Product(config)#spanning-tree

shutdown spanning-tree

Command Objective:
This command shuts down spanning tree functionality in the switch. The switch does not execute any kind of STP to form a loop free topology in the Ethernet network and operates with the existing topology structure.

Syntax:
shutdown spanning-tree

Mode:
Global Configuration Mode

Default:
Spanning tree MSTP is started and enabled in the switch.

Example:

Your Product (config)# shutdown spanning-tree

© 2024 Cisco and/or its affiliates. All rights reserved.
 
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms

For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks



Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.