Chapter5ServiceConguration
Switch2(cfg)#setloopdetectport1,2enable
Switch2(cfg)#setloopdetectextendport1enable
lCongurationVerication
Checktheloopdetectionstateofswitch2.
Switch2(cfg)#showloopdetect
Theblock-delayofloopdetect:5(min)
Thepacketintervalofloopdetect:15(sec)
PortIdisUpisStpisProtectisExtendloopVlanNumloopType
----------------------------------------------------
1UpNoYesYes1Port
2UpNoYesNo0Port
5.36UDLDConguration
UDLDOverview
UniDirectionalLinkDetection(UDLD)isaLayer2logicallinkdetectionprotocol.Itcan
detectlogicalconnectivityofEthernetlinksandverifyphysicalconnectivity.Differentfrom
physicalconnectivitydetection,UDLDisneighbor-baseddetection.Layer1devicesare
transparentforUDLD.
UDLDneedstoestablishneighborrelationshipbetweenLayer2devicesrst,Aport
supportsamaximumnumberof12neighbors.WhentheUDLDfunctionisenabledon
anEthernetportwhosestatusisup,theportsendsaProbemessageinvitinganeighbor
devicetojoin.TheportonwhichtheUDLDfunctionisenabledontheneighbordevice
receivestheProbemessageandsendsanEchomessage.IftheportreceivestheEcho
message,theconnectionbetweenthedevicesworksproperlyinbothdirectionsinthe
viewofthelocaldevice.Neighborrelationshipisestablishedwiththepeerdeviceonthe
localdevice.ThelocaldevicessendsanEchomessage.Afterthepeerdevicereceives
theEchomessage,theneighborrelationshipisestablishedbetweenthedevices.
Afterneighborrelationshipisestablished,thedevicessendHellomessagesperiodically
todetectwhetherthelinkisoperatingproperly.WhenreceivingaHellomessagefromthe
neighbor,adeviceupdatestheneighborinformationsavedlocallyandresetsthetime-out
periodoftheneighbor.IfthedevicedoesnotreceivesaHellomessagewhenthetime-out
periodexpires,itisconsideredthattheafaultoccurstotheneighborandtheneighboris
aged.Ifthelastneighborisdeletedduetoaging,itisconsideredthatthelinkisnotin
normaloperatingstate.Itisnecessarytohandletheproblemaccordingtoworkingmode.
TherearetwoUDLDworkingmodes:normalmodeandaggressivemode.
lInnormalmode,onlywhenthedevicereceivesaprotocolmessageconrmingthat
thelinkisconnectedincorrectlywilltheportbeshutdown.Ifthedevicedoesnot
receivetherelatedmessageorcannotconrmthatthelinkisworkingproperlyinone
direction,thedevicedoesnotoperatetheport.
lInaggressivemode,ifthedevicecannotconrmthatthelinkisworkingproperlyin
bothdirections(suchasthelinkisconnectedincorrectly,thelinkisworkingproperly
5-133
SJ-20131111172707-002|2013-11-27(R1.0)ZTEProprietaryandCondential