Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

Configure VLAN policy to be applied on the managed FortiSwitch ports through port-policy.

  config switch-controller vlan-policy
      Description: Configure VLAN policy to be applied on the managed FortiSwitch ports through port-policy.
      edit <name>
          set description {string}
          set fortilink {string}
          set vlan {string}
          set allowed-vlans <vlan-name1>, <vlan-name2>, ...
          set untagged-vlans <vlan-name1>, <vlan-name2>, ...
          set allowed-vlans-all [enable|disable]
          set discard-mode [none|all-untagged|...]
      next
  end

config switch-controller vlan-policy

Parameter Name Description Type Size
description Description for the VLAN policy. string Maximum length: 63
fortilink FortiLink interface for which this VLAN policy belongs to. string Maximum length: 15
vlan Native VLAN to be applied when using this VLAN policy. string Maximum length: 15
allowed-vlans <vlan-name> Allowed VLANs to be applied when using this VLAN policy.
VLAN name.
string Maximum length: 79
untagged-vlans <vlan-name> Untagged VLANs to be applied when using this VLAN policy.
VLAN name.
string Maximum length: 79
allowed-vlans-all Enable/disable all defined VLANs when using this VLAN policy.
enable: Enable all defined VLANs.
disable: Disable all defined VLANs.
option -
discard-mode Discard mode to be applied when using this VLAN policy.
none: Discard disabled.
all-untagged: Discard all frames that are untagged.
all-tagged: Discard all frames that are tagged.
option -

Configure VLAN policy to be applied on the managed FortiSwitch ports through port-policy.

  config switch-controller vlan-policy
      Description: Configure VLAN policy to be applied on the managed FortiSwitch ports through port-policy.
      edit <name>
          set description {string}
          set fortilink {string}
          set vlan {string}
          set allowed-vlans <vlan-name1>, <vlan-name2>, ...
          set untagged-vlans <vlan-name1>, <vlan-name2>, ...
          set allowed-vlans-all [enable|disable]
          set discard-mode [none|all-untagged|...]
      next
  end

config switch-controller vlan-policy

Parameter Name Description Type Size
description Description for the VLAN policy. string Maximum length: 63
fortilink FortiLink interface for which this VLAN policy belongs to. string Maximum length: 15
vlan Native VLAN to be applied when using this VLAN policy. string Maximum length: 15
allowed-vlans <vlan-name> Allowed VLANs to be applied when using this VLAN policy.
VLAN name.
string Maximum length: 79
untagged-vlans <vlan-name> Untagged VLANs to be applied when using this VLAN policy.
VLAN name.
string Maximum length: 79
allowed-vlans-all Enable/disable all defined VLANs when using this VLAN policy.
enable: Enable all defined VLANs.
disable: Disable all defined VLANs.
option -
discard-mode Discard mode to be applied when using this VLAN policy.
none: Discard disabled.
all-untagged: Discard all frames that are untagged.
all-tagged: Discard all frames that are tagged.
option -