03-31-2015 12:36 PM - edited 03-07-2019 11:21 PM
I have a site where non-STP loop can happen very easily - I won't bother you with details.
non-STP loop in my environment is when you interconnect one wall jack with another which is equivalent to interconnecting two switch ports on same switch.
Since this situation eats CPU, I need a way to break the loop:
1) detect: need EEM script to detect massive MAC flapping* and eventually shutdown a port
2) prevent/mitigate: what are recommended switchport settings?
* I have MAC flapping from time to time due to clients roaming between APs, but it's not massive (2-3 records per MAC in syslog).
04-01-2015 11:10 AM
Hello.
Why don't you use STP to prevent loops?
04-02-2015 09:47 AM
What STP configuration solve my problem?
04-02-2015 10:14 AM
Hello.
I think default STP configuration would solve the issue unless you run some special network design.
04-03-2015 01:14 AM
I have STP enabled (Rapid STP per VLAN).
Ports are not configured as portfast, BPDU guard is enabled.
AFAIK STP will not deal with two interconnected ports on same switch
04-03-2015 02:23 AM
Hello.
STP will deal with two interconnected ports on same switch
And BPDU guard would even help here.
04-02-2015 11:45 AM
* I have MAC flapping from time to time due to clients roaming between APs, but it's not massive (2-3 records per MAC in syslog).
If this is the "cause" of your loops then you need to look at how to configure EtherChannel. "MAC flapping when client roams between APs" is a sure sign EtherChannel is NOT configured (properly) on the uplink/downlink ports.
04-03-2015 01:15 AM
This is not the cause of my loops.
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