Command:

set spantree portfast

Mode:

Switch> (enable)


Syntax:

set spantree portfast mod/port {enable [trunk] | disable | default}


Syntax Description:

mod/port

Variable that specifies the number of the module and the port on the module.

enable

Keyword that enables the spanning tree PortFast-start feature on the port.

trunk

(Optional) Keyword that enables the spanning tree PortFast start feature on the port.

disable

Keyword that disables the spanning tree PortFast-start feature on the port.

default

Keyword that sets the spanning tree start feature back to its default setting.

 


Command Description:

Use the set spantree portfast command to allow a port that is connected to a single workstation or PC to start faster when it is connected. 

 

When a port configured with the spantree portfast enable command is connected, the port immediately enters the spanning tree forwarding state instead of going through the normal spanning tree states such as listening and learning.

 

If the trunk keyword is used, the spanning tree PortFast-start feature is enabled on the specified trunk.

 


Example:

This example shows how to enable the spanning tree PortFast-start feature on port 2 on module 1:

Console> (enable) set spantree portfast 1/2 enable


Warning: Connecting layer 2 devices to a fast-start port can cause temporary spanning tree
loops. Use with caution.
Spantree port 1/2 fast start enabled.
Console> (enable)
 

This example shows how to enable the spanning tree PortFast-start feature on the trunk port:

Console> (enable) set spantree portfast 3/2 enable trunk
 Warning: Connecting layer 2 devices to a fast-start port can cause temporary spanning
tree loops. Use with caution.
Spantree port 1/2 fast start enabled.
Console> (enable)

 


Misconceptions:
None

Related Commands:

show spantree


� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)