Skip to main content
DW_FTNT
Staff
Staff
November 11, 2022

Technical Tip: Remove a VLAN from FortiLink for Fortiswitch managed by FortiGate

  • November 11, 2022
  • 0 replies
  • 6678 views
Description This article explains how to remove a VLAN from a FortiLink on a FortiSwitch managed by a FortiGate with console commands.
Scope FortiSwitch, FortiGate, FortiLink
Solution

By default, the FortiGate will sync and put VLANs back on the FortiLink after they're removed. Use the following commands on the FortiSwitch (not the FortiGate) to permanently remove VLANs:

 

# config switch trunk

edit "_FlInKxxxx"

set static-isl enable

set static-isl-auto-vlan disable

end

 

Reboot the FortiSwitch after the above command, then run the following:

 

# config switch interface

edit "xxxxxxx" (the ID of the FortiLink interface)

set allowed-vlans 1,xx,xx,4088-4094

end

 

It will still be possible to use the VLAN on the FortiSwitch, but it will be pruned off the FortiLink (trunk).

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!