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

Description

Type

Size

Default

description

Description for the VLAN policy.

string

Not Specified

fortilink

FortiLink interface for which this VLAN policy belongs to.

string

Not Specified

vlan

Native VLAN to be applied when using this VLAN policy.

string

Not Specified

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.

option

-

disable

Option

Description

enable

Enable all defined VLANs.

disable

Disable all defined VLANs.

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.

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

Description

Type

Size

Default

description

Description for the VLAN policy.

string

Not Specified

fortilink

FortiLink interface for which this VLAN policy belongs to.

string

Not Specified

vlan

Native VLAN to be applied when using this VLAN policy.

string

Not Specified

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.

option

-

disable

Option

Description

enable

Enable all defined VLANs.

disable

Disable all defined VLANs.

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.