Reference Guide

Table Of Contents
Interface Designated
Name PortID Prio Cost Sts Cost Bridge ID PortID
------------------------------------------------------------------
ethernet1/1/4 128.272 128 500 BLK 500 32769 90b1.1cf4.a911 128.272
Loop guard
OS10(config)# interface ethernet 1/1/4
OS10(conf-if-eth1/1/4)# spanning-tree guard loop
OS10(conf-if-eth1/1/4)# do show spanning-tree interface ethernet 1/1/4
ethernet1/1/4 of vlan1 is root Forwarding
Edge port:no (default) port guard :none (default)
Link type is point-to-point (auto)
Boundary: NO bpdu filter : bpdu guard : bpduguard shutdown-on-
violation :disable RootGuard: disable LoopGuard enable
Bpdus (MRecords) sent 7, received 20
Interface Designated
Name PortID Prio Cost Sts Cost Bridge ID PortID
-------------------------------------------------------------------------
ethernet1/1/4 128.272 128 500 FWD 0 32769 90b1.1cf4.9d3b 128.272
Root guard
OS10(conf-if-eth1/1/4)# spanning-tree guard root
OS10(conf-if-eth1/1/4)# do show spanning-tree interface ethernet 1/1/4
ethernet1/1/4 of vlan1 is root Forwarding
Edge port:no (default) port guard :none (default)
Link type is point-to-point (auto)
Boundary: NO bpdu filter : bpdu guard : bpduguard shutdown-on-
violation :disable RootGuard: enable LoopGuard disable
Bpdus (MRecords) sent 7, received 33
Interface Designated
Name PortID Prio Cost Sts Cost Bridge ID PortID
-----------------------------------------------------------------------
ethernet1/1/4 128.272 128 500 BLK 500 32769 90b1.1cf4.a911 128.272
RSTP commands
clear spanning-tree counters
Clears the counters for STP.
Syntax
clear spanning-tree counters [interface {ethernet node/slot/port[:subport]
| portchannel number}}]
Parameters
interface Enter the interface type:
ethernet node/slot/port[:subport] Deletes the spanning-tree counters from a
physical port.
port-channel number Deletes the spanning-tree counters for a port-channel interface (1
to 128).
Default Not configured
Command Mode EXEC
Usage
Information
Clear all STP counters on the device per Ethernet interface or port-channel.
Example
OS10# clear spanning-tree counters interface port-channel 10
Supported
Releases
10.2.0E or later
230 Layer 2