To stop a network loop, enable the Spanning Tree Protocol (STP) or Rapid Spanning Tree Protocol (RSTP) on your switches to ensure a loop-free topology. Utilize switch features like BPDU Guard, Root Guard, and Loop Guard to prevent loops. If it's a managed switch, you can set ports that aren't connected to other switches as edge ports which prevents delayed startup. It's normally impossible to get a bridging loop without another switch at the end. To maintain network stability and prevent loops, follow these best practices: Centralized Switching: Avoid overutilizing the built-in switch ports on your UniFi Gateway. They are a thorn in the side of any network administrator. Generate & Send LBD Packets: The device sends LBD packets from ports where LBD is enabled (e. The switch. Enable loop protection on each layer 2 interface (port, LAG, VLAN, or VXLAN) for which loop protection is needed, with the commands loop-protect and loop-protect vlan.
[PDF Version]