Skip to main content
DW_FTNT
Staff
Staff
November 11, 2022

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

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. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT