set spantree spanguard
D-Series CLI Reference 6-25
Defaults
None.
Mode
Switchcommand,read‐only.
Example
ThisexampleshowshowtodisplaytheSpanGuardfunctionstatus:
D2(su)->show spantree spanguard
Spanguard is disabled
set spantree spanguard
UsethiscommandtoenableordisabletheSpanningTreeSpanGu ardfunction.
Syntax
set spantree spanguard {enable | disable}
Parameters
Defaults
None.
Mode
Switchcommand,read‐write.
Usage
SpanGuardisdesignedtodisable,orlockoutan“edge”portwhenanunexpectedBPDUis
received.Theportcanbeconfiguredtobere‐enabledafterasettimeperiod,oronlyaftermanual
intervention.
Aportcanbedefinedasanedge(user)portusingthesetspantreeadminedge
command,
describedin“setspantreeadminedge”onpage 6‐37.Aportdesignatedasanedgeportis
expectedtobeconnectedtoaworkstationorotherend‐usertypeofdevice,andnottoanother
switchinthenetwork.WhenSpanguardisenabled,ifanon‐loopbackBPDUis
receivedonan
edgeport,theSpanningTreestateofthatportwillbechangedto“blocking”andwillnolonger
forwardtraffic.Theport willremaindisableduntiltheamountoftimedefinedbysetspantree
spanguardtimeout(“setspantreespanguardtimeout”onpage 6‐26)haspassedsincethelastseen
BPDU,theportismanuallyunlocked(setorclearspantreespanguardlock,“clear/setspantree
spanguardlock”onpage 6‐28),theconfigurationoftheportischangedsoitisnotlongeranedge
port,ortheSpanGuardfunctionisdisabled.
SpanGuardisenabledanddisabledonlyonaglobal
basis.Bydefault,SpanGuardisdisabledand
SpanGuardtrapsareenabled.
Example
ThisexampleshowshowtoenabletheSpanGuardfunction:
D2(rw)->set spantree spanguard enable
enable|disable EnablesordisablestheSpanGuardfunction.