07-08-2021 08:08 AM - edited 07-08-2021 08:10 AM
Hi Everyone,
How do switch determine that loop is created in the network & it is required to run STP in order to recover from loop ?
07-08-2021 11:53 PM
- STP should be standard in place and usually is , on default configurations. A loop can be observed by looking at logs and mac addresses being reported on different ports at very short intervals.
M.
07-09-2021 09:17 AM
Ideally, STP isn't used to "recover" from a loop, it avoids creating one (which if configured to fully do so, is, I believe, generally, 100% effective.)
If a loop is created (possible using something like portfast, which short cuts some STP processing), Cisco STP might determine there's a loop and then "break" the loop, but this isn't guaranteed.
07-10-2021 01:44 AM - edited 07-10-2021 01:45 AM
Thanks Joseph.
Can we say that switch / stp determines there is a loop when it receives same mac address from more than one ports/interface?
07-10-2021 09:18 AM
MAC, no.
If you're unfamiliar with STP, I'm sure you can find multiple primers if you search the Internet, or perhaps even Cisco's main site. (They would likely be better than I in trying to provide a broad explanation of STP. These forums are best for specific questions.)
07-12-2021 01:19 PM
Thanks Joseph. I've read about STP and it cleared my doubt. Thanks again.
07-10-2021 09:33 AM
What you are referring to is MAC FLAPPING which happens due to loop.
Since at layer 2 there is no TTL value a switch never knows there is a loop.
STP helps by making sure that there is only one path to destination logically. If you disable STP the switch won't ever know that it's in loop and won't block anything and you will see same MAC on different ports and MACFLAP logs.
## Make sure to mark post as helpful, If it resolved your issue. ##
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide