Fortinet white logo
Fortinet white logo

CLI Reference

config switch-controller vlan-policy

config switch-controller vlan-policy

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

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

config switch-controller vlan-policy

Parameter

Description

Type

Size

Default

allowed-vlans <vlan-name>

Allowed 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.

option

-

disable

Option

Description

enable

Enable all defined VLANs.

disable

Disable all defined VLANs.

description

Description for the VLAN policy.

string

Maximum length: 63

discard-mode

Discard mode to be applied when using this VLAN policy.

option

-

none

Option

Description

none

Discard disabled.

all-untagged

Discard all frames that are untagged.

all-tagged

Discard all frames that are tagged.

fortilink

FortiLink interface for which this VLAN policy belongs to.

string

Maximum length: 15

name

VLAN policy name.

string

Maximum length: 63

untagged-vlans <vlan-name>

Untagged VLANs to be applied when using this VLAN policy.

VLAN name.

string

Maximum length: 79

vlan

Native VLAN to be applied when using this VLAN policy.

string

Maximum length: 15

config switch-controller vlan-policy

config switch-controller vlan-policy

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

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

config switch-controller vlan-policy

Parameter

Description

Type

Size

Default

allowed-vlans <vlan-name>

Allowed 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.

option

-

disable

Option

Description

enable

Enable all defined VLANs.

disable

Disable all defined VLANs.

description

Description for the VLAN policy.

string

Maximum length: 63

discard-mode

Discard mode to be applied when using this VLAN policy.

option

-

none

Option

Description

none

Discard disabled.

all-untagged

Discard all frames that are untagged.

all-tagged

Discard all frames that are tagged.

fortilink

FortiLink interface for which this VLAN policy belongs to.

string

Maximum length: 15

name

VLAN policy name.

string

Maximum length: 63

untagged-vlans <vlan-name>

Untagged VLANs to be applied when using this VLAN policy.

VLAN name.

string

Maximum length: 79

vlan

Native VLAN to be applied when using this VLAN policy.

string

Maximum length: 15