Vous êtes sur la page 1sur 4

11/21/2015

HPSupportCenter
HP5400zlSwitchSeriesHowtoConfigureUnidirectionalLinkDetection
(UDLD)
Information
UnidirectionalLinkDetection(UDLD)monitorsalinkbetweentwoHPNetworkingswitchesandblockstheportsonbothendsofthelinkif
thelinkfailsatanypointbetweenthetwodevices.Thisfeatureisparticularlyusefulfordetectingfailuresinfiberlinksandtrunks.

Details
Inthefollowingexample,switchesRack2sw1andRack2sw2areconfiguredforUDLD.TheL1interfacesareenabledforUDLDexchange
healthcheckpacketsonceeveryfiveseconds(thelinkkeepaliveinterval).Ifaportdoesnotreceiveahealthcheckpacketfromtheportat
theotherendofthelinkwithinthekeepaliveinterval,theportwaitsforfourmoreintervals.Iftheportstilldoesnotreceiveahealthcheck
packetafterwaitingforfiveintervals,theportconcludesthatthelinkhasfailedandblockstheUDLDenabledport.

Theconfiguration,verification,andtestingassociatedwiththediagramfollows:
InterfaceandVlanconfiguration:
Rack2sw1#showrunningconfigvlan100
Runningconfiguration:
vlan100
name"VLAN100"
taggedL1
Rack2sw2#showrunningconfigvlan100
Runningconfiguration:
vlan100
name"VLAN100"
taggedL1
Rack2sw1#showrunningconfiginterfacel1
Runningconfiguration:
interfaceL1
linkkeepalivevlan100
taggedvlan100
Rack2sw2#showrunningconfiginterfacel1
Runningconfiguration:
interfaceL1
linkkeepalivevlan100
taggedvlan100
Vlanverification:
Rack2sw1#showvlansportsl1detail

http://h20565.www2.hpe.com/hpsc/doc/public/display?sp4ts.oid=1827663&docId=emr_nac03398955&docLocale=en_US

1/4

11/21/2015
StatusandCountersVLANInformationforportsL1
VLANIDName|StatusVoiceJumboMode
+
100VLAN100|PortbasedNoNoTagged
Rack2sw2#showvlansportsl1detail
StatusandCountersVLANInformationforportsL1
VLANIDName|StatusVoiceJumboMode
+
100VLAN100|PortbasedNoNoTagged
UDLDverification:
Rack2sw1#showlinkkeepalive
Totallinkkeepaliveenabledports:1
KeepaliveRetries:4
KeepaliveInterval:5sec
PhysicalKeepaliveAdjacentUDLD
PortEnabledStatusStatusSwitchVLAN

L1Yesupup0018feefa5f7100
Rack2sw2#showlinkkeepalive
Totallinkkeepaliveenabledports:1
KeepaliveRetries:4
KeepaliveInterval:5sec
PhysicalKeepaliveAdjacentUDLD
PortEnabledStatusStatusSwitchVLAN

L1Yesupup001708cd05f7100
Rack2sw1#showlinkkeepalivestatistics
Port:L1
Currentstate:upNeighborMACAddr:0018feefa5f7
UdldPacketssent:11NeighborPort:265
UdldPktsReceived:11StateTransitions:0
PortBlocking:NoLinkvlan:100
Rack2sw2#showlinkkeepalivestatistics
Port:L1
Currentstate:upNeighborMACAddr:001708cd05f7
UdldPacketssent:11NeighborPort:265
UdldPktsReceived:11StateTransitions:0
PortBlocking:NoLinkvlan:100
Testing:
Thespanningtreecountersareclearedtoestablishareferencepoint.Lossoftrafficinonedirectionisaccomplishedbydisablinglink
keepalivemessagesonswitchRack2sw1.
ThelinkshowsastatusoffailureandtheSpanningTreeportindicatesthatithasbeendisabled.TheSpanningTreecountersindicatea
TopologyChangehasoccurred,andaStarvedBridgeProtocolDataUnits(BPDUs).
ThelogfileonswitchRack2sw2indicatesportL1hasbeenblocked.SpanningTreerootchangesandstarvedBPDUsarebeinglogged
onswitchRack2sw1.
Rack2sw1(config)#spanningtreecleardebugcounters
Rack2sw2(config)#spanningtreecleardebugcounters
Rack2sw1(config)#nointerfacel1linkkeepalive
Rack2sw2#showlinkkeepalivestatistics
Port:L1
Currentstate:failure<NeighborMACAddr:001708cd05f7
UdldPacketssent:36NeighborPort:265
UdldPktsReceived:25StateTransitions:1
PortBlocking:Yes<Linkvlan:100
Rack2sw2#showspanningtreel1|beginHello

http://h20565.www2.hpe.com/hpsc/doc/public/display?sp4ts.oid=1827663&docId=emr_nac03398955&docLocale=en_US

2/4

11/21/2015
|Prio|DesignatedHello
PortType|CostrityState|BridgeTimePtPEdge
++
L1SFP+DA1|Auto128Disabled<|
Rack2sw1#showspanningtreedebugcounters|exc0
StatusandCountersMSTPBridgeCommonDebugCountersInformation
CounterNameAggregatedValueCollectedFrom

StarvedBPDUs/MSTIMSGs1<CIST/MSTIs
MSTBPDUs/MSTIMSGsTx3CIST/MSTIs
MSTBPDUs/MSTIMSGsRx22CIST/MSTIs
Rack2sw2#showspanningtreedebugcounters|exc0
StatusandCountersMSTPBridgeCommonDebugCountersInformation
CounterNameAggregatedValueCollectedFrom

TopologyChangesDetected1<CIST/MSTIs
TopologyChangesTx2CIST/MSTIs
MSTBPDUs/MSTIMSGsTx181CIST/MSTIs
MSTBPDUs/MSTIMSGsRx1CIST/MSTIs
Rack2sw1#showloggingr
Keys:W=WarningI=Information
M=MajorD=DebugE=Error
ReverseeventLoglisting:EventsSinceBoot
I06/22/1217:51:5500839stp:CSTRootchangedfrom0:0018feefa500to
32768:001708cd0500
I06/22/1217:51:5500842stp:CISTstarvedforaBPDURxonportL1from
0:0018feefa500
I06/22/1217:51:1600839stp:CSTRootchangedfrom32768:001708cd0500to
0:0018feefa500
Rack2sw2#showloggingr
Keys:W=WarningI=Information
M=MajorD=DebugE=Error
ReverseeventLoglisting:EventsSinceBoot
I06/22/1222:56:0100002vlan:VLAN100virtualLANdisabled
I06/22/1222:56:0100435ports:portL1isBlockedbyUDLD
I06/22/1222:56:0100832udld:Linkstateonport'L1'ischangedto'failure'
Wiresharktrace:
Examplekeepalivemessage
EthernetII,Src:HewlettP_cd:05:f7(00:17:08:cd:05:f7),Dst:BrocadeC_00:00:00(00:e0:52:00:00:00)
Destination:BrocadeC_00:00:00(00:e0:52:00:00:00)
Source:HewlettP_cd:05:f7(00:17:08:cd:05:f7)
Type:Foundryproprietary(0x885a)
Data(46bytes)
00000401002c0140000000000000001a0000...,.@..........
0010005500000000000000000109ffff0000.U..............
00200000000000000000000000000000..............
Data:0401002c0140000000000000001a00000055000000000000...
[Length:46]
Physicalinterconnect:
Rack2sw1#showlldpinforemotedevice
LLDPRemoteDevicesInformation
LocalPort|ChassisIdPortIdPortDescrSysName
+
L1|0018feefa500265L1Rack2sw2
Rack2sw2#showlldpinforemotedevice
LLDPRemoteDevicesInformation
LocalPort|ChassisIdPortIdPortDescrSysName
+
L1|001708cd0500265L1Rack2sw1

http://h20565.www2.hpe.com/hpsc/doc/public/display?sp4ts.oid=1827663&docId=emr_nac03398955&docLocale=en_US

3/4

11/21/2015

http://h20565.www2.hpe.com/hpsc/doc/public/display?sp4ts.oid=1827663&docId=emr_nac03398955&docLocale=en_US

4/4

Vous aimerez peut-être aussi