10-07-2022 02:10 AM
Hallo,
My colleagues were changing some cables in a customer's building and accidentally someone connected 2 access switches. Of course this created a loop and the whole network in this building went down. After a while, the network came back on and so I had to check if STP was configured. All the ports on all access switches have STp configured which left me wondering what else could have caused this problem. Could anyone have another explanation for this scenario? Thanks
10-07-2022 02:16 AM
there are two Loop
spanning tree permanent loop
Spanning tree temporary loop <<- you face this since the Network work again normal,
the spanning tree need time to detect loop and BLK port cause the loop.
the dangerous loop is permanent.
10-07-2022 02:49 AM
So does it happen that sometimes STP takes time to detect a loop but when it does, it does a recovery? Is that correct?
10-07-2022 03:07 AM
Yes correct
there is temporary loop and it must not long for long time, STP must detect the Loop and BLK port.
10-07-2022 07:37 AM
"Can Spanning Tree sometimes fail?"
My understanding is, it depends.
Depends on what? Usually the portfast setting.
If portfast is active, STP skips the step of blocking the port until it's verified its activation will not create a L2 loop. So, with portfast, a loop might be allowed. However, STP is still active and will, if possible, detect the active loop and then block it. The latter, though is not "guaranteed". I.e. using portfast adds risk of a L2 loop being allowed.
10-07-2022 07:55 AM
@Joseph W. Doherty right
below is one caution form Cisco about portfast and it can cause temporary loop.
Caution Because the purpose of PortFast is to minimize the time that access ports must wait for STP to converge, it should only be used on access ports. If you enable PortFast on a port connected to a switch, you might create a temporary bridging loop.
for more info.
check this link
https://www.cisco.com/en/US/docs/general/Test/dwerblo/broken_guide/stp_enha.html
10-07-2022 07:46 AM
i've never seen it fail on networks ive been on. i also set the data ports to spanning-tree portfast.
10-10-2022 04:49 AM - edited 10-10-2022 04:50 AM
@MHM Cisco World @Joseph W. Doherty and @IP_Cartel Thanks so much for the engagement. The temporary loop was exactly what happened in our situation, going by the following warning message when configuring portfast on an access port
SW1(config-if-range)# spanning-tree portfast trunk
%Warning: portfast should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc... to this interface when portfast is enabled, can cause temporary bridging loops. Use with CAUTION
So when the 2 switches were connected, a loop was created that was detected and corrected.
10-10-2022 07:25 AM
As of "general rule of thumb", we don't enable port-fast on trunk ports.
Biggest reason we enable port-fast on access ports, is because user hosts tend to be powered on/off daily and w/o portfast DHCP might timeout and/or there's a noticeable delay to users before they can access network resources.
10-13-2022 05:27 AM
Oh thanks for that @Joseph W. Doherty I just read more in detail about it. Thanks for that
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