sw_access_building3_a(config)#errdisable detect cause loopback
sw_access_building3_a(config)#errdisable recovery cause loopback
sw_access_building3_a(config)#errdisable recovery interval 30
sw_access_building3_a(config)#
000062: Apr 7 20:28:02: %PM-4-ERR_RECOVER: Attempting to recover from loopback err-disabl
e state on Fa0/11
000063: Apr 7 20:28:06: %LINK-3-UPDOWN: Interface FastEthernet0/11, changed state to up
000064: Apr 7 20:28:07: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11,
changed state to up
000065: Apr 7 20:28:07: %ETHCNTR-3-LOOP_BACK_DETECTED: Keepalive packet loop-back detecte
d on FastEthernet0/11.
000066: Apr 7 20:28:07: %PM-4-ERR_DISABLE: loopback error detected on Fa0/11, putting Fa0
/11 in err-disable state
000067: Apr 7 20:28:08: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11,
changed state to down
000068: Apr 7 20:28:09: %LINK-3-UPDOWN: Interface FastEthernet0/11, changed state to down
sw_access_building3_a(config)#do sh err rec
ErrDisable Reason Timer Status
----------------- --------------
udld Enabled
bpduguard Enabled
security-violatio Disabled
channel-misconfig Enabled
vmps Enabled
pagp-flap Enabled
dtp-flap Enabled
link-flap Enabled
psecure-violation Disabled
gbic-invalid Disabled
dhcp-rate-limit Enabled
unicast-flood Disabled
loopback Enabled
Timer interval: 30 seconds
Interfaces that will be enabled at the next timeout:
Interface Errdisable reason Time left(sec)
--------- ----------------- --------------
Fa0/11 loopback 8
sw_access_building3_a(config)#
这样就不怕环路了,一旦发生环路就关闭端口,30秒之后再启用。顺藤摸瓜找到问题,拆掉问题。之后就一切正常了。 |