Specifications

Understanding and Configuring Loop Protect
March 14, 2011 Page 26 of 29
TheLoopProtectwindowisatimervalue,inseconds,thatdefinesaperiodduringwhichLoop
Protecteventsarecounted.Thedefaultvalueis180seconds.Ifthetimerissetto0,theevent
counterisnotresetuntiltheLoopProtecteventthresholdisreached.
Usethiscommand
tosettheLoopProtecteventwindowvalueinseconds:
set spantree lpwindow value
Enabling or Disabling Loop Protect Event Notifications
LoopProtecttrapsaresentwhenaLoopProtecteventoccurs,thatis,whenaportgoestolistening
duetonotreceivingBPDUs.Thetrapindicatesport,SIDandloopprotectionstatus.
UsethiscommandtoenableordisableLoopProtecteventnotification.Bydefault,thisisdisabled:
set spantree lptrapenable {enable | disable}
Setting the Disputed BPDU Threshold
AdisputedBPDUisoneinwhichtheflagsfieldindicatesadesignatedroleandalearningstate,
andthepriorityvectorisworsethanthatalreadyheldbytheport.IfadisputedBPDUisreceived,
theportisforcedtothelisteningstate.Refertothe802.1Q2005standard,
IEEEStandardforLocal
andMetropolitanAreaNetworksVirtualBridgedLocalAreaNetworks,forafulldesc riptionofthe
disputemechanism,whichpreventsloopingincasesofonewaycommunication.
ThedisputedBPDUthresholdisanintegervariablethatrepresentsthenumberofdisputed
BPDUsthatmustbereceived
onagivenport/SIDuntiladisputedBPDUtrapissentandasyslog
messageisissued.Forexample,ifthethresholdis10,thenatrapisissuedwhen10,20,30(andso
on)disputedBPDUshavebeenreceived.Thetrapindicatesport,SIDandtotalDisputedBPDU
count.
UsethiscommandtosetthedisputedBPDUthreshold:
set spantree disputedbpduthreshold value
Defaultvalueis0,whichmeansthattrapsarenotsent.
Monitoring Loop Protect Status and Settings
UsethecommandsinTable 8tomonitorLoopProtectsettings.
Table 8 Commands for Monitoring Loop Protect
Task Command
Display the Loop Protect status per port, per SID, or
both.
show spantree lp [port port-string]
[sid sid
]
Display the Loop Protect lock status per port, per
SID, or both.
Note: A port can become locked if a configured
number of Loop Protect events occur during
the configured window of time. Once a port is
forced into blocking (locked), it remains locked
until manually unlocked with the
clear spantree
lplock command.
show spantree lplock [port port-string]
[sid sid]
Display the Loop Protect capability of a link
partner for one or more ports.
show spantree lpcapablepartner [port
port-string]