Description | This article describes how to configure a FortiSwitch in FortiLink over layer-3. |
Scope |
FortiSwitch and FortiGate 6.4.x and above. |
Solution |
In some cases, the requirement is to bring up a FortiSwitch in FortiLink mode, but the FortiSwitch is not directly connected to the FortiGate. There is a layer 3 network between FortiGate and FortiSwitch.
Read the below link before starting the configuration:
Note that the layer3 FortiLink config has changed from the 7.2.x version and above.
Refer to the below configuration: FortiGate v7.2.4. FortiSwitch v7.2.3.
FortiGate config: Configure a Fortilink interface:
sh system interface port
When Fortilink is enabled on FortiGate, the Fortilink interface automatically gets added to NTP server.
sh system ntp
FortiSwitch config. 1) Create the trunk:
config switch trunk
2) By default FortiLink VLAN is 4094
config switch auto-network
3) Configure FortiGate IP on FortiSwitch (static discovery is used in this example).
config switch-controller global
4) Add the NTP server (FortiGate FortiLink IP) on the FortiSwitch NTP config. FortiSwitch will sync its time with FortiGate.
config system ntp
5) Now, if the switch interface config is checked, it should look something like this: where the native VLAN is 4094.
sh switch interface internal
sh switch interface fortilink
6) By default internal interface is set to DHCP mode, but here it is configured in static mode.
config system interface set ip 21.21.21.2 255.255.255.0
- Make sure FortiSwitch and FortiGate can reach each other and make sure services like NTP, capwap, LLDP, ICMP, are allowed.
Helpful Commands on FortiSwitch:
get system interface
get sys arp
execute ping 21.21.21.1
diagnose sys ntp status ipv4 server(11.11.11.1) 11.11.11.1 -- reachable(0xff) S:1 T:47 selected
diagnose switch trunk summary Trunk Name Mode PSC MAC Status Up Time fortilink static(isl) src-dst-ip E8:ED:D6:CB:67:61 up(1/1) 1 days,18 hours,49 mins,12 secs
execute switch-controller get-conn-status Get managed-switch S148Fxxxxx connection status:
Helpful commands on FortiGate:
execute switch-controller get-conn-status FortiLink interface : port3 Flags: C=config sync, U=upgrading, S=staged, D=delayed reboot pending, E=config sync error, 3=L3
execute switch-controller diagnose-connection |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.