VLAN Configuration on Fortinet Fortiswitch

VLAN Configuration on Fortinet Fortiswitch

Create a VLAN on Fortiswitch:

Via GUI:

Go to WiFi & Switch Controller > FortiSwitch VLANs

Select Create New, and change the following settings:

  1. Enable DHCP for IPv4 or IPv6.
  2. Set the Administrative access options as required.
  3. 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:

  1. Go to WiFi & Switch Controller > FortiSwitch Ports.
  2. Click a port row.
  3. Click the Native VLAN column in one of the selected entries to change the native VLAN.
  4. Select a VLAN from the displayed list. The new value is assigned to the selected ports.
  5. Click the + icon in the Allowed VLANs column to change the allowed VLANs.
  6. 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:


https://docs.fortinet.com/document/fortiswitch/6.4.2/devices-managed-by-fortios/985221/fortiswitch-features-configuration#VLAN
Bilel

Bilel

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x