2-618
Catalyst 6500 Series Switch Command Reference—Release8.1
78-15474-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set spantree portfast
set spantree portfast
To allow a port that is connected to a single workstation or PC to start faster when it is connected, use
the set spantree portfast command.
set spantree portfast mod/port {enable [trunk] | disable | default}
Syntax Description
Defaults The default is the PortFast-start feature is disabled.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines This command is not supported by the NAM.
When a port configured with the spantree portfast enable command is connected, the port immediately
enters the spanning tree forwarding state rather than goi ng through the normal spanning tree states, such
as listening and learning.
If you enter the trunk keyword, the spanning tree PortFast-start feature is enabled on the specified trunk
port.
Examples This example shows how to enable the spanning tree PortFast-start feat ure on po rt 2 o n m odul e 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 tr unk 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)
Related Commands show spantree portfast
mod/port Number of the module and the port on the module.
enable Enables the spanning tree PortFast-start feature on the port.
trunk (Optional) Enables the spanning tree PortFast-start feature on the trunk port.
disable Disables the spanning tree PortFast-start feature on the port.
default Sets the spanning tree PortFast-start feature back to its default setting.