Chapter4InterfaceConguration
Step
CommandFunction
2
ZXR10(config)#loop-detectinterface<port-name>
vlan<vlan-id>[enable|disable]
Thiscongurestheloopback
detectionofVlaninoneport.
3
ZXR10(config)#loop-detectprotect-interface
<port-name><enable|disable>
Thiscongurestheloopback
detectionportinterface.
Whenaswitchdetects
aloopbackofoneport,
switchdealwithit
accordingtoparameter
protect-interface.When
parameterprotect-interface
isenable,switchsetsa
alarmithasdetecteda
loopbackbuttherewillbe
nooperation.Whenthe
parameterprotect-interface
isdisable,theswitchwill
shutdowntheport.After
enablingloopbackdetection,
thedefaultparameter
protect-interfaceisdisable.
4
ZXR10(config)#loop-detectreopen-time<interval>
Thisconguresthe
reopen-timewhentheport
wasshutdownasaresultof
loopbackdetection.
5
ZXR10(config)#showloop-detectinterface
Thisenablestheloopback
detectionfunction.
6
ZXR10(config)#showloop-detectinterface-detail
<port-name>
Thisdisplaysdetailofport
whichenablesloopback
detection.
7
ZXR10(config)#showloop-detectprotect-interface
Thisdisplaystheportwhich
enablesloopbackdetection
protection.
8
ZXR10(config)#showloop-detectreopen-timeThisdisplaysthereopen-time
whenoneporthasbeen
shutdowninresultofloopback
detection.
PortLoopDetectionExample
AsshowninFigure17,portgei_1/3isconnectedtoacomputer ,
telnetintotheswitchA.Portgei_1/1isinVlan1andVlan2.Enable
loopbackdetectioninportgei_1/1.Loopbackdetectionisdonein
Vlan1andVlan2atthesametime.SwitchAisconnectedtoSwitch
Bwithgei_1/1port.SwitchBshutsspanning-treeprotocoland
looptwoportswithonenetworkline.Thetwoportsinloopand
theportwhichconnecttoswitchareinthesameVlansasgei_1/1.
CondentialandProprietaryInformationofZTECORPORATION41