VLAN Configuration on Fortinet Fortiswitch

Contents
Create a VLAN on Fortiswitch:
Via GUI:
Go to WiFi & Switch Controller > FortiSwitch VLANs

Select Create New, and change the following settings:

- Enable DHCP for IPv4 or IPv6.
- Set the Administrative access options as required.
- Select OK.
via CLI:
config system interface
edit <vlan name>
set vlanid <1-4094>
set color <1-32>
set interface <FortiLink-enabled interface>
end
Assign ports to the VLAN (Fortiswitch)
Via GUI:
- Go to WiFi & Switch Controller > FortiSwitch Ports.
- Click a port row.
- Click the Native VLAN column in one of the selected entries to change the native VLAN.
- Select a VLAN from the displayed list. The new value is assigned to the selected ports.
- Click the + icon in the Allowed VLANs column to change the allowed VLANs.
- Select one or more of the VLANs (or the value all) from the displayed list. The new value is assigned to the selected port.
Via CLI:
config switch-controller managed-switch
edit <Switch ID>
config ports
edit <port name>
set vlan <vlan name>
set allowed-vlans <vlan name>
or
set allowed-vlans-all enable
next
end
end
Create Interface VLAN on Fortiswitch:
config system interface
edit <vlan name>
set ip <IP address> <Network mask>
end
Verification:
The WiFi & Switch Controller > FortiSwitch VLANs page displays VLAN information for the managed switches:
