262 
Privilege Requirement 
Only Admin level users have access to these commands. 
Example 
Display all the spanning-tree debug messages: 
T2600G-28TS# debug spanning-tree all 
34.2 spanning-tree(global) 
Description 
The  spanning-tree  command is used to enable STP function globally. To 
disable the STP function, please use no spanning-tree command. 
Syntax 
spanning-tree 
no spanning-tree   
Command Mode 
Global Configuration Mode 
Privilege Requirement 
Only Admin, Operator and Power User level users have access to these 
commands. 
Example 
Enable the STP function: 
T2600G-28TS(config)# spanning-tree 
34.3 spanning-tree(interface) 
Description 
The  spanning-tree  command is used to enable STP function for a port. To 
disable the STP function, please use no spanning-tree command. 
Syntax 
spanning-tree 
no spanning-tree   
Command Mode 
Interface Configuration Mode (interface gigabitEthernet / interface range 
gigabitEthernet / interface port-channel / interface range port-channel)