3com 3CRUS2475 Manuale Utente

Pagina di 522
216
C
HAPTER
 15: S
PANNING
-T
REE
 C
OMMANDS
Example
The following example configures the spanning priority on Ethernet port 
g15 to 96.
spanning-tree 
portfast
The spanning-tree portfast Interface Configuration mode command 
enables PortFast mode. In PortFast mode, the interface is immediately put 
into the forwarding state upon linkup without waiting for the standard 
forward time delay. To disable PortFast mode, use the no form of this 
command.
Syntax
spanning-tree portfast [auto]
no spanning-tree portfast
Parameters
auto — Specifies that the software waits for 3 seconds (With no 
BPDUs received on the interface) before putting the interface into the 
PortFast mode.
Default Configuration
PortFast mode is disabled.
Command Modes 
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
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 device and network operations.
Example
The following example enables PortFast on Ethernet port g15.
Console(config)# interface ethernet g15
Console(config-if)# spanning-tree port-priority 96
Console(config)# interface ethernet g15
Console(config-if)# spanning-tree portfast