Troubleshooting Tip: FortiSwitch keeps reverting STP settings
| Description | This article describes an issue in which a managed FortiSwitch reverts its configuration, specifically the Spanning Tree Protocol (STP) settings on trunk interfaces. This behavior may result in packet loss, intermittent connectivity, and network instability, particularly impacting wireless users.
The issue typically occurs in environments where trunk interfaces are dynamically generated and managed by the FortiGate Switch Controller. If STP or trunk parameters are modified locally on the FortiSwitch without being enforced through the FortiGate configuration, the changes may be overwritten during synchronization. Consequently, the configuration reverts to its previous state. |
| Scope | FortiGate, FortiSwitch. |
| Solution | It is recommended to perform the following steps during a maintenance window with console access to the FortiSwitch.
Create a custom command to disable STP on the affected trunk interface to ensure the configuration is enforced by the FortiGate.
config switch-controller custom-command
Replace <trunk-name> with the appropriate trunk interface name.
Bind the custom script to the managed FortiSwitch to ensure that the configuration is pushed from the FortiGate and maintained during synchronization.
config switch-controller managed-switch Replace <FortiSwitch_serial_number> with the serial number of the affected FortiSwitch. Binding the script ensures that the configuration is not overwritten during synchronization.
To prevent dynamic modifications, configure the trunk in static mode and enable static ISL.
config switch trunk
If the configuration continues to revert, delete the existing trunk and recreate it manually from the FortiGate to ensure it is controller-managed.
After deletion, recreate the trunk configuration from the FortiGate.
If required by the network design, configure the relevant ports as edge ports or explicitly disable STP.
config switch-controller managed-switch
After applying the changes:
Upgrading to a stable and recommended FortiSwitch firmware version is also recommended. |
