Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

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

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.

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

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

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.

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.