Dell PowerConnect 3324/3348 Switch CLI Guide
Use the spanning-tree global configuration command to enable spanning tree functionality. To disable spanning tree functionality, use the no form of this command.
spanning-tree
no spanning-tree
Spanning tree is enabled.
Global Configuration Mode
There are no user guidelines for this command.
The following example enables spanning tree functionality.
Console(config)# spanning-tree |
Use the spanning-tree mode global configuration command to configure the spanning tree protocol currently running. To return to the default configuration, use the no form of this command.
spanning-tree mode {stp | rstp}
no spanning-tree mode
spanning tree protocol is supported (stp).
Global Configuration Mode
There are no user guidelines for this command.
The following example configures the spanning tree protocol to RSTP.
Console(config)# spanning-tree mode rstp |
Use the spanning-tree forward-time global configuration command to configure 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.
To reset the default forward time, use the no form of this command.
spanning-tree forward-time seconds
no spanning-tree forward-time
The default forwarding-time for IEEE Spanning Tree Protocol (STP) is 15 seconds.
Global Configuration Mode
There are no user guidelines for this command.
The following example configures spanning tree bridge forward time.
Console(config)# spanning-tree forward-time 25 |
Use the spanning-tree hello-time global configuration command to configure the spanning tree bridge hello time, which is how often the switch broadcasts hello messages to other switches only if it is the root bridge. To reset the default hello time, use the no form of this command.
spanning-tree hello-time seconds
no spanning-tree hello-time
The default hello time for IEEE Spanning Tree Protocol (STP) is 2 seconds.
Global Configuration Mode
There are no user guidelines for this command.
The following example configures spanning tree bridge hello time.
Console(config)# spanning-tree hello-time 5 |
Use the spanning-tree max-age global configuration command to configure the spanning tree bridge maximum age. To reset the default maximum age, use the no form of this command.
spanning-tree max-age seconds
no spanning-tree max-age
The default max-age for IEEE STP is 20 seconds.
Global Configuration Mode
There are no user guidelines for this command.
The following example configures the spanning tree bridge maximum-age.
Console(config)# spanning-tree max-age 10 |
Use the spanning-tree priority global configuration command to configure the spanning tree priority. The priority value is used to determine which bridge is elected as the root bridge. To reset the default spanning tree priority, use the no form of this command.
spanning-tree priority priority
no spanning-tree priority
The default STP bridge priority according to IEEE 802.10 is 32768.
Global Configuration Mode
The lower the priority, the more likely the bridge is to be elected as the root bridge.
The following example configures spanning tree priority.
Console(config)# spanning-tree priority 12288 |
Use the spanning-tree disable interface configuration command to disable spanning tree on a specific port. To enable spanning tree on a port, use the no form of this command.
spanning-tree disable
no spanning-tree disable
By default, all ports are enabled for spanning tree.
Interface Configuration (Ethernet, port-channel) Mode
There are no user guidelines for this command.
The following example disables the spanning tree on port 1/e5.
Console(config)# interface ethernet 1/e5 Console(config-if)# spanning-tree disable |
Use the spanning-tree cost interface configuration command to configure the spanning tree path cost for a port. To reset the default port path cost, use the no form of this command.
spanning-tree cost cost
no spanning-tree cost
The default costs are as follows:
Interface Configuration (Ethernet, port-channel) Mode
There are no user guidelines for this command.
The following example configures spanning tree cost on port 1/e5 to 35000.
Console(config)# interface ethernet 1/e5 Console(config-if)# spanning-tree cost 35000 |
Use the spanning-tree port-priority interface configuration command to configure port priority. To reset the default port priority, use the no form of this command.
spanning-tree port-priority priority
no spanning-tree port-priority
The default port-priority for IEEE 802.10 (STP) is 128.
Interface Configuration (Ethernet, port-channel) Mode
There are no user guidelines for this command.
The following example configures spanning priority on port 1/e5 to 96.
Console(config)# interface ethernet 1/e5 Console(config-if)# spanning-tree port-priority 96 |
Use the spanning-tree portfast interface configuration command to enable PortFast Mode. In PortFast Mode, the interface is immediately put into the forwarding state upon linkup, without waiting for the timer to expire. To disable PortFast Mode, use the no form of this command. This command when in rstp mode sets port to an edgeport.
spanning-tree portfast
no spanning-tree portfast
PortFast Mode is disabled.
Interface Configuration (Ethernet, port-channel) Mode
This feature should be used only with interfaces connected to end stations. Otherwise, an accidental topology loop could cause a data packet loop and disrupt switch and network operations.
The following example enables PortFast Mode on port 1/e5.
Console(config)# interface ethernet 1/e5 Console(config-if)# spanning-tree portfast |
Use the clear spanning-tree detected-protocols privileged EXEC command to restart the protocol migration process (force the renegotiation with neighboring switches) on all interfaces or on the specified interface.
clear spanning-tree detected-protocols [ethernet interface | port-channel port-channel-number]
If no interface is specified, the action is applied to all interfaces.
Privileged EXEC Mode
This feature should be used only when working in RSTP mode. It is used to force the port to test if it can migrate to RSTP.
The following example restarts the protocol migration process (forces the renegotiation with neighboring switches) on port 1/e3.
Console# clear spanning-tree detected-protocols ethernet 1/e3 |
Use the spanning-tree link-type interface configuration command to override the default link-type setting. To reset the default, use the no form of this command.
spanning-tree link-type {point-to-point | shared}
no spanning-tree spanning-tree link-type
The switch derives the link type of a port from the duplex mode. A full-duplex port is considered a point-to-point link, and a half-duplex port is considered a shared link.
Interface Configuration (Ethernet, port-channel) Mode
There are no user guidelines for this command.
The following example forces shared link-type on port 1/e5.
Console(config)# interface ethernet 1/e5 Console(config-if)# spanning-tree link-type shared |
Use the show spanning-tree privileged EXEC command to display spanning tree configuration.
show spanning-tree [ethernet interface | port-channel port-channel-number]
This command has no default configuration.
Privileged EXEC Mode
There are no user guidelines for this command.
The following example displays spanning tree information.
The following example displays spanning tree information for port 1/e1.