cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1046
Views
10
Helpful
9
Replies

Spanning tree didn't detect loop.

kashifkhan9407
Level 1
Level 1

I had faced a very strange situation, i have configured portfast and BPDU gaurd on access ports for the end points but my colleague mistakenly connect two ports on the same switch back to back. After that our whole network went down due to congestion in the network. Rapid Pvst is running in the network.

 

Need to understand why stp didnot detect the loop?

9 Replies 9

Hi

 Make sure you dont have the recovery command on the switch.  I had a problem like this before where user connected two cables on the same  phone and created a loop. The port went to err-disabled , which would solve my problem, but I had a recovery from err-disable enabled on the switch and the loop was back again.

 

no i don't have recovery command enabled on the switch.. but need to understand why stp didn't detect the loop.

BPDU guard enable in global or in interface ?

BPDU guard is enable on per interface.

marce1000
VIP
VIP

 

 - Check current software version , use an advisory release , if applicable : https://software.cisco.com/download/home/286320185/type/282046477/release/Amsterdam-17.3.4b  . check if that can help

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

show spanning-tree summary
we look to two interface maybe the global BPDU filter make this issue not the PortFast and BPDU Guard,
so do show command and please share here will will get full look to all STP feature in SW.

marce1000
VIP
VIP

 

 - I once had exactly the same problem on a 4506 (environment) , several of that servicing our office environment. The problem became quite a hassle because of mishaps by helpdesk-staff or sometimes users plugging in wires at outlets without knowing what they are doing.  As a workaround I ended up configuring port security on all user-connections with a maximum of 3 mac addresses allowed (the latter being an arbitrary number). I could also not figure out why the bpdu measures would not activate , because everything was configured correctly , as yours. The only explanation that remains that some sort of 'layer 1' loop is created and that bpdu's are not present, perhaps related to the particular architecture , then the problem only happening when a real-local-loop is made and no other switches are involved. To confirm that , one would need to be able to tap the loop and analyze the traffic , checking if bpdu's aren seen at all , here is a 'good link' https://www.lastbreach.com/blog/physical-wiretapping-for-beginners (....) , whether all of that is a productive effort remains to be seen (indeed).  Meaning it could mean that span-port  analyzing is not good enough  and not all data are seen (e.g.)

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

explain from My point of View
1- config BPDU filter in global, this make all enable PortFast have BPDU filter, 
please note:- BPDU filter not send any BPDU
2-config the PortFast and BPDU guard under interface, BPDU work if the port receive the BPDU then the port will go to err-disable 

trick here 
in f0/1 now have 
portfast enable 
BPDU guard enable 
BPDU filter enable "not send BPDU"


in f0/2 now have 
portfast enable 
BPDU guard enable 
BPDU filter enable "not send BPDU"

NOW STP is loop detect using not broadcast or any traffic but use BPDU to detect loop, STP work with control not data plane.

interconnect both f0/1 and f0/2

f0/1 & f0/2 must go to err-disable why not do that ?
because BPDU guard must first see BPDU incoming and then the port will go to err-disable, 
here because BPDU filter the both port not Send BPDU and both port not receive the BPDU from each other.... OMG

here the loop happened because the control plane don't detect loop because of BPDU no Send from both port.

data plane will see both port as forward and hence use it, 
broadcast broadest....
the network is down.

this my opinion in your case.

Hello
Just because you enabled portfast and bpdu guard, doesn’t mean those two ports were participating in spanning-tree ,

Check to see if the vlans they assigned to were enable for spanning, if stp was disable you would incurr issues especailly on the specific switch, its cpu would max out?


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card