Loop Guard
Last updated
Was this helpful?
Last updated
Was this helpful?
Loop Guard is a feature designed to prevent network loops.
It is capable of detecting more loop scenarios than standard loop protection, as it does not rely on Spanning Tree Protocol BPDUs or port states. While it is designed to complement STP, it is not intended as a replacement.
By default, Loop Guard is disabled and is a proprietary protocol of Fortinet. Loop Guard functions by periodically broadcasting a Loop Guard frame on the Native VLAN of a port. If this frame is received back on same switchport it was sent out, the port will shut down.
The original implementation of Loop Guard did not account for loops in VLANs other than the native one. Therefore, the Loop Guard feature was enhanced to include the MAC Move option to address this limitation.
MAC move monitors repeated MAC address flapping events, often indicative of a loop.
To enable MAC move, a threshold must be defined. This threshold is the minimum number of MAC addresses required to flap between ports within one second.
Exercise caution when activating MAC move and setting the threshold, especially if NAC or Wireless Bridge Mode is enabled.
Following Screenshot shows a Loop Guard packet (LPBDU):
When a network loop is detected by Loop Guard following message is written in the FortiSwitch logs.
Loop Guard: loop detected on port2. Shutting down port2.
Show loop-guard on a FortiSwitch:
Show loop-guard status via Fortigate:
In larger switch environments it's recommended to filter the output:
The port cannot be re-enabled through the Fortigate GUI. Either the port must be reset via CLI or wait for timeout to reset the loop-guard status.
Default timeout is 45min, this can be changed per Port to 0 - 120min
Change loop guard packet interval. Defaulft is every 3 sec
The Process on the FortiSwitch is called /bin/lpgd