Adding 802.3ad link aggregation groups (trunks)
If the trunk is in LACP mode and has ports with different speeds, the ports of the same negotiated speed are grouped in an aggregator.
If multiple aggregators exist, one and only one of the aggregators is used by the trunk.
You can use the CLI to specify how the aggregator is selected:
- When the
aggregator-mode
is set tobandwidth
, the aggregator with the largest bandwidth is selected. This mode is the default. - When the
aggregator-mode
is set tocount
, the aggregator with the largest number of ports is selected.
Using the FortiGate GUI:
- Go to WiFi & Switch Controller > FortiSwitch Ports.
- Click Create New > Trunk.
- In the New Trunk Group page, enter a Name for the trunk group.
- Select two or more physical ports to add to the trunk group and then select Apply.
- Select the Mode: Static, Passive LACP, or Active LACP.
- Select Enabled or Disabled for the MCLAG.
- An MCLAG peer group must be configured before adding a trunk with MCLAG enabled. See MCLAG peer groups.
- Make sure to select ports from switches that are part of the same MCLAG peer group.
- Select OK.
Using the the FortiGate CLI:
config switch-controller managed-switch
edit <FortiSwitch_serial_number>
config ports
edit <trunk_name>
set type trunk
set mode {static | lacp-passive | lacp-active}
set aggregator-mode {bandwidth | count}
set bundle {enable | disable}
set min-bundle <int>
set max-bundle <int>
set members <port1 port2 ...>
next
end
end
end
MCLAG trunks
The MCLAG trunk consists of 802.3ad link aggregation groups with members that belong to different FortiSwitch units. To configure an MCLAG trunk, you need an MCLAG peer group (see MCLAG peer groups). The MCLAG trunk members are selected from the same MCLAG peer group.
Using the GUI
- Go to WiFi & Switch Controller > FortiSwitch Ports.
- Select Create New > Trunk.
- Enter a name for the MCLAG trunk.
- For the MCLAG status, select Enabled to create an active MCLAG trunk.
- For the mode, select Static, Passive LACP, or Active LACP.
- Set to Static for static aggregation. In this mode, no control messages are sent, and received control messages are ignored.
- Set to Passive LACP to passively use LACP to negotiate 802.3ad aggregation.
- Set to Active LACP to actively use LACP to negotiate 802.3ad aggregation.
- For trunk members, select Select Members, select the ports to include in the MCLAG trunk, and then select OK to save the trunk members. NOTE: The members must belong to the same MCLAG peer group.
- Select OK to save the MCLAG configuration.
The ports are listed as part of the MCLAG trunk on the FortiSwitch Ports page.
Using the CLI
Configure a trunk in each switch that is part of the MCLAG pair:
- The trunk name for each switch must be the same.
- The port members for each trunk can be different.
- After you enable MCLAG, you can enable LACP if needed.
config switch-controller managed-switch
edit "<switch-id>"
config ports
edit "<trunk name>"
set type trunk
set mode {static | lacp-passive | lacp-active}
set members "<port>,<port>"
set mclag enable
next
end
next
Variable |
Description |
Default |
---|---|---|
<switch-id> |
FortiSwitch serial number. |
No default |
<trunk name> |
Enter a name for the MCLAG trunk. |
No default |
type trunk |
Set the interface type to a trunk port. |
physical |
mode {static | lacp-passive | lacp-active} |
Set the LACP mode. |
lacp-active |
members "<port>,<port>" |
Set the aggregated LAG bundle interfaces. |
No default |
mclag enable |
Enable or disable the MCLAG. |
disable |