clear spantree spanguard
8-26 Spanning Tree Configuration
Mode
Switchcommand,read‐write.
Usage
SpanGuardisdesignedtodisable,orlockoutan“edge”portwhenanunexpectedBPDUis
received.Theportcanbeconfiguredtobere‐enabledafterasettimeperiod,oronlyaftermanual
intervention.
Aportcanbedefinedasanedge(user)portusingthesetspantreeadminedge
command,
describedin“setspantreeadminedge”onpage 8‐39.Aportdesignatedasanedgeportis
expectedtobeconnectedtoaworkstationorotherend‐usertypeofdevice,andnottoanother
switchinthenetwork.WhenSpanguardisenabled,ifanon‐loopbackBPDUis
receivedonan
edgeport,theSpanningTreestateofthatportwillbechangedto“blocking”andwillnolonger
forwardtraffic.Theportwillremaindisableduntiltheamountoftimedefinedbysetspantree
spanguardtimeout(“setspantreespanguardtimeout”onpage 8‐27)haspassedsincethelastseen
BPDU,theportismanuallyunlocked(setorclearspantreespanguardlock,“clear/setspantree
spanguardlock”onpage 8‐29),theconfigurationoftheportischangedsoitisnotlongeranedge
port,ortheSpanGuardfunctionisdisabled.
SpanGuardisenabledanddisabledonlyonaglobal
basis.Bydefault,SpanGuardisdisabledand
SpanGuardtrapsareenabled.
Example
ThisexampleshowshowtoenabletheSpanGuard function:
D2(rw)->set spantree spanguard enable
clear spantree spanguard
UsethiscommandtoresetthestatusoftheSpanningTreeSpanGuardfunctiontodisabled.
Syntax
clear spantree spanguard
Parameters
None.
Defaults
None.
Mode
Switchcommand,read‐write.
Example
ThisexampleshowshowtoresetthestatusoftheSpanGuardfunctiontodisabled:
D2(rw)->clear spantree spanguard