226
26.25 show spanning-tree interface
Description
The show spanning-tree interface command is used to display the
spanning-tree information of all ports or a specified port.
Syntax
show spanning-tree interface [ gigabitEthernet
port
| port-channel
lagid
]
[ edge | ext-cost | int-cost | mode | p2p | priority | role | state | status ]
Parameter
port
—— The Ethernet port number.
lagid
—— The ID of the LAG.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Privilege Requirement
None.
Example
Display the spanning-tree information of all ports:
T1600G-52TS(config)# show spanning-tree interface
Display the spanning-tree information of port 1/0/2:
T1600G-52TS(config)# show spanning-tree interface gigabitEthernet
1/0/2
Display the spanning-tree mode information of port 1/0/2:
T1600G-52TS(config)# show spanning-tree interface gigabitEthernet
1/0/2 mode
26.26 show spanning-tree interface-security
Description
The show spanning-tree interface-security command is used to display the
protect information of all ports or a specified port.
Syntax
show spanning-tree interface-security [ gigabitEthernet
port
|
port-channel
lagid
] [ bpdufilter | bpduguard | loop | root | tc | tc-defend ]