Keepalive and layer 2 loopback detection

My question is concerned with how Cisco switches use keepalive at layer 2 to detect loopbacks. All the info on keepalive that I could find was concerned with its use at higher layers (eg tunnels, routing protocols etc).
We had an incident where a mismatch in switch configurations caused a loop that wasn't blocked by spanning tree. This caused a number of our switches to err-disable their uplinks "%ETHCNTR-3-LOOP_BACK_DETECTED: Keepalive packet loop-back detected". Some of these switches where fairly deep down a chain of switches with only a single uplink path.
We have also had a situation (which eventually went away) where the single uplink on a particular switch was err-disabled loopback detected although we could find no evidence of a loop. I have my suspicions about keepalive packets not being dealt with properly especially if vlan 1 is removed from trunk links (which we have to do in some cases) or ether channels are involved. Bugs CSCeg58877 and CSCdt82690 describe such problems but neither of these match our circumstances.
Because of the above I am considering disabling keepalive on my Cisco switches layer 2 links, especially uplinks, is this a good or bad idea?
Alex McLaren

Hi Alex-
Loopback detection was a mechanism that was put in place to detect loops in the network
caused by Type1a or tyep2 copper cabling. While it is a good mechansim for those special
situations , there seems to be no need for having it enabled on the Gig ports where you
can use features like UDLD to detect a fiber loop or unidirectional fiber.
But in 12.1EA releases , loopback detection is enabled by default on the fiber ports as
well as copper ports. On some fiber ports , neighboring switch may just switch the
keepalive packet back w/o making any change in the packet causing the original switch that
sent out the keepalive to recive its own packet back kicking in this mechanism of
error-disabling the port.
What you can do is you can disable keepalives on the uplink Gig ports of the 2950 and that
should take care of the problem
On 2950
int gig
no keepalives
But make sure you have UDLD enabled. Once you have disabled the keepalives , please make
sure you have low cpu on the 2950s that were showing the problem as well as make sure the
mac-aging timer stays at 300 sec.
show proc cpu
show mac- aging
UDLD should however be enabled on fiber Gig ports to detect spanning tree loop problems.
Keepalive detection mechansim is speciafically there for Type1a and type 2 cabling and has
no significance on fiber ports.
This is also documented in the the release notes of the following Cisco DDTS id #
CSCea46385.
An interface on a Catalyst switch is errordisabled after detecting a loopback.
Mar 7 03:20:40: %ETHCNTR-3-LOOP_BACK_DETECTED: Loop-back detected on GigabitEthernet0/2.
The port is forced to linkdown.
Mar 7 03:20:42: %LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to
administratively down
Mar 7 03:20:43: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2,
changed state to down
Conditions:
This might be seen on a Catalyst 2940, 2950, 2950-LRE, 2955, 2970, 3550, 3560 or
3750 switch running 12.1EA or 12.2SE based code.
Workaround:
Disable keepalives by using the "no keepalive" interface command. This will
prevent the port from being errdisabled, but it does not resolve the root cause of
the problem. Please see section below for more information.
Additional Information:
The problem occurs because the keepalive packet is looped back to the port that sent
the keepalive. There is a loop in the network. Although disabling the keepalive
will prevent the interface from being errdisabled, it will not remove the loop.
The problem is aggravated if there are a large number of Topology Change Notifications
on the network. When a switch receives a BPDU with the Topology Change bit set,
the switch will fast age the MAC Address table. When this happens, the number of
flooded packets increases because the MAC Address table is empty.
Keepalives are sent on the Catalyst 2940, 2950, 2950-LRE, 2955, 2970, 3550, 3560
or 3750 switch to prevent loops in the network. The primary reason for the keepalives
is to prevent loops as a result of Type 2 cabling. For more information, see:
http://www.cisco.com/en/US/netsol/ns340/ns394/ns74/ns149/networking_solution
s_white_paper09186a00800b4249.shtml
Keepalives are sent on ALL interfaces by default in 12.1EA based software. Starting
in 12.2SE based releases, keepalives are NO longer sent by default on fiber and uplink
interfaces. Since there is no 12.2SE release for 2950s , you will have to manually disable
the keepalives on uplink Gig ports.
Hope this helps.
thanks
Salman Zahid

Similar Messages

  • RE: Hard Failures, KeepAlive, and Failover --Follow-up

    Hi,
    It's a really challenging question. However, what do you want to do after
    the network crash? Failover or just stop the service? Should we assume
    that when the network is down, and so do your name service?
    One idea is to use externalconnection to "listen" to your external non-forte
    alarm, so do "whatever" after you receive the alarm instead of letting the
    "logical connection" to time out or hang.
    Regards,
    Peter Sham.
    -----Original Message-----
    From: Michael Lee [SMTP:[email protected]]
    Sent: Wednesday, June 16, 1999 12:44 AM
    To: [email protected]
    Subject: Hard Failures, KeepAlive, and Failover -- Follow-up
    I've gotten a handful of responses to my original post, and the suggested
    solutions are all variations on the same theme -- periodically ping remote
    nodes/partitions and then react when the node/partition goes down. In
    other circumstance this would work, but unless I'm missing something this
    solution doesn't solve the problem I'm running into.
    Some background...
    When a connection is set up between partitions on two different nodes,
    Forte is effectively establishing two connections: a "physical
    connection"
    over TCP/IP between two ports and a "logical connection" between the two
    partitions (running on top of the physical connection). Once a connection
    is established between two partitions Forte assumes the logical connection
    is valid until one of two things happen:
    1) The logical connection is broken (by shutting down a partition from
    Econsole/Escript, by killing a node manager, by terminating the ftexec,
    etc.)
    2) Forte detects that the physical connection is broken (via its KeepAlive
    functionality).
    If a physical connection is broken (via a cut cable or power-off
    condition), and Forte has not yet detected the situation (via a KeepAlive
    failure), the logical connection is still valid and Forte will still allow
    method calls on the remote partition. In effect, Forte thinks the remote
    partition is still up and running. In this situation, any method calls
    made after the physical connection has been broken will simply hang. No
    exceptions are generated and failover does not occur.
    However, once a KeepAlive failure is detected all is made right.
    Unfortunately, the lowest-bound latency of KeepAlive is greater than one
    second, and we need to detect and react to hard failures in the 250-500ms
    range. Using technology outside of Forte we are able to detect the hard
    failures within the required times, but we haven't been able to get Forte
    to react to this "outside" knowledge. Here's why:
    Since Forte has not yet detected a KeepAlive failure, the logical
    connection to the remote partition is still "valid". Although there are a
    number of mechanisms that would allow a logical connection to be broken,
    they all assume a valid physical connection -- which, of course, we don't
    have!
    It appears I'm in a "Catch-22" situation: In order to break a logical
    connection between partitions, I need a valid physical connection. But
    the
    reason I'm trying to break the logical connection in the first place is
    that I know (but Forte doesn't yet know) that the physical connection has
    been broken.
    If anyone knows a way around this Catch-22, please let me know.
    Mike
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Make sure you chose the right format, and as far as partitioning in concerned, you have to select at least one partition, which will be the entire drive.

  • "no keepalive" and "no shutdown" command on router and switch interface

    Hello
    I am confused about the “no keepalive” and “no shutdown” command on different interface type on router. In serial interface, the status is down/down. But in ethernet interface, it is up/up. Could anyone please clear me?
    And can this reason apply with Catalyst too?
    Thanks a lot,
    Nitass

    Hi Nitass,
    Yes I see the same on my router.
    OKH-PBAGH-GRGNPRNT#sh int fa 0/1
    FastEthernet0/1 is up, line protocol is down
    Hardware is AmdFE, address is 000b.5faa.6961 (bia 000b.5faa.6961)
    MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
    reliability 255/255, txload 1/255, rxload 1/255
    Encapsulation ARPA, loopback not set
    Keepalive set (10 sec)
    OKH-PBAGH-GRGNPRNT(config)#int fa 0/1
    OKH-PBAGH-GRGNPRNT(config-if)#no kee
    OKH-PBAGH-GRGNPRNT(config-if)#no keepalive
    OKH-PBAGH-GRGNPRNT(config-if)#end
    OKH-PBAGH-GRGNPRNT#show int fa 0/1
    FastEthernet0/1 is up, line protocol is up
    Hardware is AmdFE, address is 000b.5faa.6961 (bia 000b.5f
    MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
    reliability 255/255, txload 1/255, rxload 1/255
    Encapsulation ARPA, loopback not set
    Keepalive not set
    I dont have a cable connected to it.
    But its not the same on the serial interface and the ethernet interface of the L3 switch. They have different behaviur then this.they stay down/down.
    PJB-UPW-PRI#sh int s 0/4
    Serial0/4 is down, line protocol is down
    Hardware is GT96K Serial
    MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
    reliability 255/255, txload 1/255, rxload 1/255
    Encapsulation HDLC, loopback not set
    Keepalive set (10 sec)
    PJB-UPW-PRI(config)#int s 0/4
    PJB-UPW-PRI(config-if)#no kee
    PJB-UPW-PRI(config-if)#no keepalive
    PJB-UPW-PRI(config-if)#end
    PJB-UPW-PRI#sh int s 0/4
    Serial0/4 is down, line protocol is down
    Hardware is GT96K Serial
    MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
    reliability 255/255, txload 1/255, rxload 1/255
    Encapsulation HDLC, loopback not set
    Keepalive not set
    4510_Switch_C48_BASEMENT(config)#int gig 3/19
    4510_Switch_C48_BASEMENT(config-if)no keepalive
    4510_Switch_C48_BASEMENT(config-if)#end
    4510_Switch_C48_BASEMENT#show int g 3/19
    GigabitEthernet3/19 is down, line protocol is down (notconnect)
    Hardware is Gigabit Ethernet Port, address is 0013.7f65.4582 (b
    82)
    MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
    reliability 255/255, txload 1/255, rxload 1/255
    Encapsulation ARPA, loopback not set
    Keepalive set (10 sec)
    HTH,
    -amit singh

  • I tried to install the new iOs 7 on my iphone 4, but it wasn't completed (showing error 4005). Now, my iphone is stuck on the itunes' logo with the usb cord, and I can't use my phone. And itunes doesn't detect my iphone when I connect it on my computer.

    Hi everyone! I tried to install the new iOs 7 on my iphone 4, but it wasn't completed (showing error 4005). Now, my iphone is stuck on the itunes' logo with the usb cord, and I can't use my phone. And itunes doesn't detect my iphone when I connect it on my computer, so I can't put it in recovery mode or someting like that... What can I do?? I tried everything they tell me to do in the apple support but nothing seems to work. Thank you!

    No problem, glad to help!
    Update: my PC USB hub was connected to a USB 3 port, I connected the 30 pin cable directly to my PC, And the restore worked just fine. Restored phone from iCloud backup and seems to be working fine.

  • Hey, my ipad is disabled and i cant open. i tried connecting it with itunes in recovery mode to restore it but it wont work it doesnt show and options itunes doesnt detect my ipad in recovery mode. what do i do know? please help!!!

    Hey, my ipad is disabled and i cant open. i tried connecting it with itunes in recovery mode to restore it but it wont work it doesnt show and options itunes doesnt detect my ipad in recovery mode. what do i do know? please help!!!

    If you followed these instructions and you were unable to enter recovery mode, I'm still leaning toward a hardware problem.  Also, since you have IOS-7, read this.  It might help.

  • Smartband and Lifelog does not detect jogging

    Hello,
    Smartband and Lifelog does not detect jogging (does not distinguish walking and jogging/running).
    For example - walking with speed 5.7Km/h and treadmill running with speed 9-10 km/h.
    Smartband worn on left hand.

    Hi, 
    As I understand, lifelog log your exercise as running if the pace is 2.5 steps/ second or above. 
    What are your thoughts about this forum? Let us know by doing this short survey.

  • Hi can anybody help please. I am having terrible problems trying to use my Nikon D7100 to tether. I have downloaded the latest Lightroom updates and also checked my firmware which is also the latest avaiable and still Lightroom wont detect my camera!

    Hi can anybody help please. I am having terrible problems trying to use my Nikon D7100 to tether. I have downloaded the latest Lightroom updates and also checked my firmware which is also the latest avaiable and still Lightroom wont detect my camera!. When I use a friends Canon camera it works every time!

    Hi Keith thanks for your reply I have Lightroom 5.7.1 64 bit and my Nikon's firmware is version 1.02

  • Help!!! Itunes and Pc can't detect my Ipod Touch 4g

    I tried everything that Apple Support told me to do and still can't detect my ipod touch 4g. Still stuck at apple boot logo, tried DFU mode and Recovery, still can't be detected by PC or Itunes. What to do? I need Help Badly.
    When i connect my ipod, no sounds pops out but it opens and charge still stuck at boot logo.
    I'm running Windows7 ultimate.
    Some told me to connect it to a Mac Book, is it possible that it can be detected on a mac book? Because i only tried connectin it to other Windows PC with XP, Vista and still haven't got anything. I don't thinl it's a hardware problem cause my ipod just run low on battery and i restarted it and then It got stuck. xD

    - Yes, another computer may help.
    - Next try disconnecting from computer/charger and let the battery fully drain.  Then charge and try again.
    - Last, make an appointment at the Genius Bar of an Apple store.  If defective, they will give you a replacement under your warranty.

  • My iPhone and iPad aren't detected by iTunes but iPod classic syncs

    My iPhone and iPad aren't detected by iTunes but iPod classic syncs. I have re-installed iTunes, reset devices etc. The iPad and iPhone charges through the computer and Windows 8 recognises them.

    Hi Vlismas,
    Welcome to the Support Communities!
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    If the issue is not resolved, you may need to uninstall iTunes and all of it's components, and reinstall the latest version as explained in this article:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    I hope this information helps ....
    - Judy

  • HT4061 my iPhone unexpectedly shut down and now is not turning back on, charging and is not being detected by my laptop, help

    my iPhone unexpectedly shut down and now is not turning back on, charging and is not being detected by my laptop, help

    i put that i held down the home button and all that... sorry, should of made my message a little clearer hun.. but i did try that, ive been searching video's on the net trying to figure out how to fix the problem, but nothing seems to be working... ive just tried pluging the usb lead into my phone while holding the home button then connecting it to my computer to see if itunes fires up, but even that didnt work... i dont know what else to try.

  • Windows 8 and itunes can not detect itouch

    I have windows 8 and itunes will not detect my itouch?   Any tips?

    Chris CA, I am having the same problem. I actually just purchased a brand new laptop (w/ Windows 8 already installed) and had to download itunes latest version (ver. 11) and am having the same problems. As my itunes seems compatible with my Windows 8, my itouch device can not be recognized by itunes or in the "my computer" folder.
    perhaps this more of a windows 8 issue and not an itunes issue?
    PS, i have OS4 on my itouch, could this be a problem as well?
    Thanks!
    Petit

  • I have Windows 7 and it is not detecting my second generation iTouch does not show

    I have Windows 7 and it is not detecting my second generation iPod Touch,  I have tried rebooting etc.

    http://support.apple.com/kb/TS1538

  • [CS3 Win]: How to get active spread and layer ?

    How to get the active spread and layer in an Indesign CS3 document?

    I found the answer (I wanted active spread and page):<br /><br />active Spread:<br />InterfacePtr<ILayoutControlData> layoutControlData(gContext->GetContextView(), UseDefaultIID());<br />UIDRef uidRefSpread = layoutControlData->GetSpreadRef();<br /><br />active page:<br />UID uidMyPage = layoutControlData->GetPage();<br />UIDRef uidRefPage(fCHMLDocRef.GetDataBase(), uidMyPage);

  • Iphone 4s won't boot on and itunes doens't detect it when on battery. Plug it in and Apple logo appear then disappear, try to recover, but there's a 1602 error. Is it dead?

    Iphone 4s won't boot on and itunes doens't detect it when on battery. Plug it in and Apple logo appear then disappear, try to recover, but there's a 1602 error. Is it dead?

    Its weird, when I plug it into wall AC, I was able to boot into the home screen, but there's wifi cant turn on. Plug out the phone turn off immediately. I tried to jailbreak it with snowbreeze because someone has the same problem with his iphone 4, but snowbreeze doens't work with iphone 4s.

  • Strange issue - XI somtimes process a file and sometimes its not detected

    Dear friends,
    We have a strange problem. I’ll describe the situation:
    We have a simple file to file scenario without any mapping or File Content Conversion. Daily a sender system puts a ZIP file on a server and XI processes this file.
    The strange thing is that XI sometimes processes this file and sometimes its not detected at all. After our analysis we come to conclusion that its not random.
    We have looked at almost everything. We have checked the:
    File name;
    Size of the messages.
    Authorisation;
    Users that are assigned to the processing job.
    Has anyone experienced the same problem or does anyone has a suggestion?
    Helpful points will be rewarded,
    Kind regards,
    Kamran

    Hi Mickael,
    There are no stupid questions, there are only stupid answers. So I hope my answers are not stupid
    1. what is your Polling Interval of your Sender Agreement ? Once a day ? every 60s ? etc...
    because you say that your Legacy put the file Daily.
    Answer: The polling Interval is 400 seconds and Modification Check is 400000 Msecs
    2. Are you sure that your Legacy does not put the file after or during the XI adapter try to catch it?
    Answer: No Because Modification Check works perfectly and we get alerts if the file is modify during the process.
    3. Does your filename is always the same ?
    4. or Have you a filename which can changed and which is case sensitve (lowercase and uppercase).
    Answer: It has always the same name and It starts with O2C.zip
    5. What are the size of your failed file?
    Maybe it's too big and maybe you have a timeout somewhere (for instance into the adapter log)
    Answer: It's not too big, it varies from 20 MB to 100 MB and we know that we can process files up to 700 MB
    As I told before we have checked everything. Its very strange...
    Do you have any other suggestion?
    Regards,
    Kamran

Maybe you are looking for

  • Crystal Report Printing - A4 Issue

    Hello Experts, One of our customers use third party rental add-on with SAP B1. The add-on has cyrstal reports files. All these reports are set to letter size by default in report page setup. Client does not to print in A4 . When the user clicks on Pr

  • Online #

    I have a Skype US Number from which people call me from the US. I recently started forwarding my calls to my Spanish phone number. Which plans should I buy? US or Spain? Since I don't call the US, they call me from the US... to my Spanish mobile phon

  • I can't find the form I saved

    Good Evening, I created a form last week, I saved it several times and worked on it for a few days and acquired a link.  Now I can't find it when I sign in and people have submitted there information that I can't view because the form is nowhere to b

  • Capturing trace of exception

    Suppose following stored procedure: PROCEDURE TEST_PRC IS BEGIN RAISE VALUE_ERROR; END; If I call this procedure in Sql*Plus, I get: BEGIN test_prc; END; ERROR in line 1: .ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SCH_PERSONEN.TEST_PRC

  • Large Java Cache Solutions

    I am implementing a web crawler which is expected to create an index of approximately 100,000 webpages. My current implementation has worked fine until I approached an index of approximately 30,000 webpages. The problem is being able to supply severa