Troubleshooting Tip: STP ports remain in discard state after restarting STP
Description | This article describes an issue where STP ports move to the discard state after running the 'diagnose sys stp restart' command. When this occurs, ports that were previously forwarding traffic remain in the discard state and traffic through the affected virtual switch is interrupted. The issue can be seen when STP is enabled on virtual switches assigned to different VDOMs. |
Scope | FortiGate, FortiOS 7.6. |
Solution | The behavior can be reproduced with multiple virtual switches using the same physical switch, with STP enabled on the corresponding interfaces. In the following example, two virtual switches are configured. Each virtual switch contains two physical ports. The virtual-switch configuration is: STP is enabled on the interface associated with each virtual switch. Example for 'internal-vdomA': Example for 'internal-vdomB': After the configuration is applied, or after a FortiGate reboot, STP operates normally and traffic passes through the forwarding ports. The current STP status can be checked with: Example output before restarting STP: In this output, 'port1' and 'port2' on 'internal-vdomA' are designated ports in the forward state. On 'internal-vdomB', 'port4' is the root port and remains in the forward state. 'port3' is the alternate port and is correctly placed in the discard state. Run the following command to restart STP: After the restart, check the STP status again: The affected output can look similar to the following:
Traffic through these ports is blocked while they remain in the discard state. This behavior affects FortiOS 7.6 and is resolved in FortiOS 8.0.0. Therefore, the recommendation is to upgrade to FortiOS 8.0.0 or later to resolve the issue. On affected FortiOS 7.6 versions, avoid running the following command in a production environment unless it is required for troubleshooting:
|
