Solution | For reference, the total range of VLAN IDs is from 0 to 4095. However, when setting VLAN IDs on a FortiGate interface (such as creating a VLAN sub-interface or configuring the native VLAN of a VLAN Switch), there are some limitations to be aware of:  VLAN ID 1 cannot be assigned to a VLAN sub-interface if the parent interface is used for FortiLink (i.e., used for FortiSwitch management). It also cannot be assigned to a VLAN Switch interface.n This is because Managed FortiSwitches use VLAN 1 as the default VLAN. However, VLAN 1 may be used for VLAN sub-interfaces attached to non-FortiLink interfaces (such as physical interfaces, Hardware Switches, etc). Additionally, VLAN 1 is often used as a default native VLAN for other Layer 2 network devices (such as the FortiSwitch). Sending traffic tagged for VLAN 1 to switchports that have a native/access VLAN ID of 1 can result in traffic not flowing correctly. Notably, VLAN Switches have a limited range of available VLAN IDs and can only be assigned VLAN IDs 2 through 3000. Using VLAN 1 is not recommended as a best practice and it may lead to unexpected results
VLAN IDs 4088 through 4093 also cannot be used for news VLANs associated with FortiLink interfaces (at least by default) since these are already assigned to VLANs created automatically for FortiLink-enabled interfaces.
config switch-controller initial-config template
edit "_default"
set vlanid 1
next
edit "quarantine"
set vlanid 4093
set dhcp-server enable
next
edit "rspan"
set vlanid 4092
set dhcp-server enable
next
edit "voice"
set vlanid 4091
next
edit "video"
set vlanid 4090
next
edit "onboarding"
set vlanid 4089
next
edit "nac_segment"
set vlanid 4088
set dhcp-server enable
next
end
  If needed, automatic VLAN creation can be disabled in FortiOS v7.6.3 and later, see FortiOS New Features Guide | Prevent automatically created VLANs. Disabling this setting does not affect existing FortiLink configurations.
VLAN ID 4094 can technically be assigned to a VLAN sub-interface, but this VLAN is used for the switch-controller-mgmt-vlan setting on the network interface (See also: FortiLink Guide - VLAN Interface Templates). VLAN ID 4095 is also generally reserved and may not be assigned to a FortiGate interface.
 To troubleshoot issues related to VLAN ID misconfigurations, try using tools on the FortiGate, such as the packet sniffer and debug flow, to check for incoming/outgoing packets: |