API Guide

CAUTION: Configure EdgePort only on links connecting to an end station. EdgePort can cause loops if you
enable it on an interface connected to a network. Edge ports do not receive BPDUs.
NOTE: Whenever a port becomes a designated port, it will start a timer called the edge delay while timer (hello-time + 1/2
* hello-time); if the hello-time is set to 2 seconds, the edge delay while timer is 3 seconds. If BPDUs are not received for 3
seconds, then the port is declared as oper edge on the fly and is moved to forwarding state.
OS10 supports auto edge feature . If the port does not receive BPDU for the hello-time + one second interval then it places the
port into auto edge mode.
If the edge port receives any BPDU, it looses the edge port property.
Enable EdgePort on an interface in INTERFACE mode.
spanning-tree port type edge
Configure EdgePort
OS10(conf-if-eth1/1/4)# spanning-tree port type edge
View interface status
os10# show spanning-tree interface ethernet 1/1/7
ethernet1/1/7 of vlan 1 is Designated Forwarding
Edge port: No (default)
Link type: point-to-point (auto)
Boundary: No, Bpdu-filter: Enable, Bpdu-Guard: Enable, Shutdown-on-Bpdu-Guard-violation:
Yes
Root-Guard: Enable, Loop-Guard: Disable
Bpdus (MRecords) Sent: 6, Received: 6410
Interface Designated
Name PortID Prio Cost Sts Cost Bridge ID
PortID
-----------------------------------------------------------------------------------------
----
ethernet1/1/7 128.56 128 500 FWD 500 32769 90b1.1cf4.a625
128.56
Common STP commands
This section explains about the common commands in STP. STP variant specific commands are explained in the individual
sections under RSTP, MSTP, and Rapid-PVST.
There are two sets of STP related commands.
STP commands that are common and can be used irrespective of the STP variant enabled on the device.
STP commands that are specific to the particular STP variant.
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,
from 1 to 128.
Default Not configured
Command Mode EXEC
472 Layer 2