Troubleshooting Tip: Managed FortiSwitch coming online on wrong FortiGate
Description
This article describes an issue where FortiSwitch shows as online on the wrong FortiGate.
.
Scope
FortiGate, FortiSwitch.
Solution
Setup:
In some deployments, it is necessary to manage FortiSwitch on the respective firewalls with an inter-switch link.
For example, refer to the diagram below, where the requirement is that 'FSW1' has to be be managed by 'FGT1' and 'FSW2' has to be managed by 'FGT2'.
In these situations, issues may appear where both FortiSwitches show up on both FortiGates and connection fluctuates.

For example:
config switch physical-port
edit "port1"
set lldp-profile "default-auto-isl"
set speed auto
next
end
- First bring up 'FSW1' on 'FGT1' and 'FSW2' on 'FGT2'. Do not connect a link between both FortiSwitches (Port3).
- Map the 'default' 'LLDP' profile on port3 of both FortiSwitches.



- On 'FGT1', disable discovery for the 'FSW2' serial number, and on 'FGT2', disable discovery for the 'FSW1' serial. For example:
FortiGate (global) set disable-discovery <switch serial#>
end
- Connect ISL Port3 on both FortiSwitches. The FortiSwitches will not come online on other FortiGates.
If an inter-switch link (ISL) was already connected and FortiSwitches show up on the wrong FortiGate, follow these steps:
- Disconnect the ISL between the FortiSwitches.
- Delete the switch entry from the wrong FortiGate. Go to Managed FortiSwitch and select the FortiSwitch and select 'Delete'.
- Gain CLI access to both FortiSwitches and delete the FortiLink ISL trunk.
On FortiSwitch S248EFTF1-----75:
set auto-isl 1
config switch trunk
delete "8EFTF18-----1-0"
end
edit "8EFTF18000075-0"
set mode lacp-active
set auto-isl 1
set members "port23"
config switch trunk
delete "8EFTF1-----75-0"
end
Related documentation:
FortiSwitch 6.4 documentation
LLDP profile, page 117 - Fortinet documentation
