Technical Tip: Designing, implementing, and troubleshooting MCLAG on FortiSwitches managed by FortiGate
| Description | This article describes how to design, implement, and troubleshoot Multichassis Link Aggregation Group (MCLAG) on FortiSwitches operating in FortiGate-managed mode. It includes architectural considerations, configuration, best practices, and diagnostic commands. |
| Scope | FortiGate: v7.4.8 build2795 and above. FortiSwitch: TF1F24-V7.4.8-build929 and above. |
| Solution | Multichassis Link Aggregation Group (MCLAG) is a technology supported by multiple network vendors, with vendor-specific implementations. It enables link aggregation across two independent physical switches, presenting them as a single logical switch to connected devices.
Although each switch is managed independently, they operate as a single logical entity from the perspective of the Spanning Tree Protocol (STP).
Use cases and benefits. MCLAG improves network resiliency and performance by providing the following benefits:
Requirements and limitations. To deploy MCLAG on FortiSwitches managed by FortiGate, the following requirements must be met:
Design considerations. Recommended design practices.
Design scenarios to avoid.
Figure 1. Illustrative example of improper design, corrections, and the recommended scenario.
Configuration example. This section provides an example configuration for a Tier-1 topology using MCLAG. The example outlines both physical connectivity and configuration steps for FortiGate and FortiSwitch.
Figure 2. Proposed topology used in this configuration example.
Below is a guide with the sequence of configurations and connections.
Figure 3. Initial physical connection.
Select the FortiSwitches and authorize them.
Figure 4. FortiSwitch authorization.
Select the Topology option in the upper-right corner to verify the created topology.
Figure 5. Topology updated.
Hover over the physical links between FortiSwitches 1 and 2 and select Create MC-LAG pair. 
Figure 6. MC-LAG creation.
Figure 7. Confirm the creation of the MC-LAG.
Wait approximately 3 minutes for the creation to be completed and for the topology to be updated.
Figure 8. Updated topology with Tier 1 MC-LAG.
Disable the FortiLink Split Interface to prevent physical connection B from being blocked by STP.
Figure 9. Disable the FortiLink split interface.
Connect interface B of the FortiGate to interface 1 of the FortiSwitch 2.
Figure 10. Physical connection between the FortiGate and the FortiSwitch 2.
Figure 11. Both FortiGate connections are active.
Figure 12. Physical connection between FortiSwitch 1 and FortiSwitch 3.
Authorize FortiSwitches 3 and 4.
Figure 13. FortiSwitches 3 and 4 authorization.
Figure 14. Connected FortiSwitches.
Figure 15. Redundant connections of FortiSwitches 3 and 4.
Hover over the physical links between FortiSwitches 3 and 4 and select Create MC-LAG pair.
Figure 16. MC-LAG creation.
Figure 17. Tier 2 MC-LAG creation.
Wait for 3 minutes until the topology is updated.
Figure 18. Updated topology with Tier 2 MC-LAG.
Figure 19. Physical connections of the FortiSwitch 5.
Authorize FortiSwitch 5 and wait up to 3 minutes for the topology to update.
Figure 20. Final topology.
Recommended additional configuration. The following features are optional but strongly recommended to improve network stability:
Example of how to change the root bridge configuration using a custom command.
FortiGate-91G #config switch-controller custom-command edit "STP_PRIORITY" set command "config switch stp instance %0a edit 0 %0a set priority 0 %0a end %0a" next end end
Apply the custom-command to the switches that will have root priority 0 in the network.
FortiGate-91G # config switch-controller managed-switch edit TF1F24TF24 xxxxxx config custom-command edit "1" set command-name "STP_PRIORITY" next end end
FortiGate-91G # config switch-controller managed-switch edit TF1F24TF24 xxxxxx config custom-command edit "1" set command-name "STP_PRIORITY" next end end
Example of a custom-command to configure the transmission of a single BPDU per MC-LAG pair connected to a third-party switch.
FortiGate-91G #config switch-controller custom-command edit "MCLAG_SINGLE_MAC" set command "config switch stp settings %0a set mclag-stp-bpdu single %0a end %0a" next end end
Apply the custom-command to the FortiSwitches that connect to the third-party switch using LACP.
FortiGate-91G # config switch-controller managed-switch edit TF1F24TF24xxxxxx config custom-command edit "2" set command-name "MCLAG_SINGLE_MAC" next end end
FortiGate-91G # config switch-controller managed-switch edit TF1F24TF24xxxxxx config custom-command edit "2" set command-name "MCLAG_SINGLE_MAC" next end end
Important: Avoid applying configurations directly in the FortiSwitch CLI when it is managed by a FortiGate. Instead, apply them using custom commands in the FortiGate CLI so that the configurations are stored on the FortiGate and are not lost when the FortiSwitches are rebooted.
Troubleshooting and diagnostics. The following commands can be used to verify MCLAG status and diagnose issues.
MCLAG consistency between peer switches:
diagnose switch switch-info mclag peer-consistency-check
ICL status and details:
diagnose switch-controller switch-info mclag icl
MCLAG domain information:
diagnose switch-controller switch-info mclag list
Spanning Tree Protocol (STP) status of the environment:
diagnose switch-controller switch-info stp
Related documents: |




















