Fortinet white logo
Fortinet white logo

CLI Reference

config switch-controller dynamic-port-policy

config switch-controller dynamic-port-policy

Note

This command is available for model(s): FortiGate 1000D, FortiGate 1000F, FortiGate 1001F, FortiGate 100F, FortiGate 101F, FortiGate 1100E, FortiGate 1101E, FortiGate 140E-POE, FortiGate 140E, FortiGate 1800F, FortiGate 1801F, FortiGate 2000E, FortiGate 200E, FortiGate 200F, FortiGate 201E, FortiGate 201F, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 2600F, FortiGate 2601F, FortiGate 3000D, FortiGate 3000F, FortiGate 3001F, FortiGate 300E, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3200F, FortiGate 3201F, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3500F, FortiGate 3501F, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3700F, FortiGate 3701F, FortiGate 3960E, FortiGate 3980E, FortiGate 400E Bypass, FortiGate 400E, FortiGate 400F, FortiGate 401E, FortiGate 401F, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 4200F, FortiGate 4201F, FortiGate 4400F, FortiGate 4401F, FortiGate 4801F, FortiGate 500E, FortiGate 501E, FortiGate 600E, FortiGate 600F, FortiGate 601E, FortiGate 601F, FortiGate 60E DSLJ, FortiGate 60E DSL, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 61E, FortiGate 61F, FortiGate 70F, FortiGate 71F, FortiGate 800D, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 900G, FortiGate 901G, FortiGate 90E, FortiGate 91E, FortiGate VM64, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiGateRugged 70F 3G4G, FortiGateRugged 70F, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 60E DSLJ, FortiWiFi 60E DSL, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 80F 2R, FortiWiFi 81F 2R 3G4G-POE, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 5001E1, FortiGate 5001E.

Configure Dynamic port policy to be applied on the managed FortiSwitch ports through DPP device.

config switch-controller dynamic-port-policy
    Description: Configure Dynamic port policy to be applied on the managed FortiSwitch ports through DPP device.
    edit <name>
        set description {string}
        set fortilink {string}
        config policy
            Description: Port policies with matching criteria and actions.
            edit <name>
                set 802-1x {string}
                set bounce-port-link [disable|enable]
                set category [device|interface-tag]
                set description {string}
                set family {string}
                set host {string}
                set hw-vendor {string}
                set interface-tags <tag-name1>, <tag-name2>, ...
                set lldp-profile {string}
                set mac {string}
                set qos-policy {string}
                set status [enable|disable]
                set type {string}
                set vlan-policy {string}
            next
        end
    next
end

config switch-controller dynamic-port-policy

Parameter

Description

Type

Size

Default

description

Description for the Dynamic port policy.

string

Maximum length: 63

fortilink

FortiLink interface for which this Dynamic port policy belongs to.

string

Maximum length: 15

name

Dynamic port policy name.

string

Maximum length: 63

config policy

Parameter

Description

Type

Size

Default

802-1x

802.1x security policy to be applied when using this policy.

string

Maximum length: 31

bounce-port-link

Enable/disable bouncing (administratively bring the link down, up) of a switch port where this policy is applied. Helps to clear and reassign VLAN from lldp-profile.

option

-

enable

Option

Description

disable

Disable bouncing (administratively bring the link down, up) of a switch port where this policy is applied.

enable

Enable bouncing (administratively bring the link down, up) of a switch port where this policy is applied.

category

Category of Dynamic port policy.

option

-

device

Option

Description

device

Device category.

interface-tag

Interface Tag category.

description

Description for the policy.

string

Maximum length: 63

family

Match policy based on family.

string

Maximum length: 31

host

Match policy based on host.

string

Maximum length: 64

hw-vendor

Match policy based on hardware vendor.

string

Maximum length: 15

interface-tags <tag-name>

Match policy based on the FortiSwitch interface object tags.

FortiSwitch port tag name.

string

Maximum length: 63

lldp-profile

LLDP profile to be applied when using this policy.

string

Maximum length: 63

mac

Match policy based on MAC address.

string

Maximum length: 17

name

Policy name.

string

Maximum length: 63

qos-policy

QoS policy to be applied when using this policy.

string

Maximum length: 63

status

Enable/disable policy.

option

-

enable

Option

Description

enable

Enable policy.

disable

Disable policy.

type

Match policy based on type.

string

Maximum length: 15

vlan-policy

VLAN policy to be applied when using this policy.

string

Maximum length: 63

config switch-controller dynamic-port-policy

config switch-controller dynamic-port-policy

Note

This command is available for model(s): FortiGate 1000D, FortiGate 1000F, FortiGate 1001F, FortiGate 100F, FortiGate 101F, FortiGate 1100E, FortiGate 1101E, FortiGate 140E-POE, FortiGate 140E, FortiGate 1800F, FortiGate 1801F, FortiGate 2000E, FortiGate 200E, FortiGate 200F, FortiGate 201E, FortiGate 201F, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 2600F, FortiGate 2601F, FortiGate 3000D, FortiGate 3000F, FortiGate 3001F, FortiGate 300E, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3200F, FortiGate 3201F, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3500F, FortiGate 3501F, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3700F, FortiGate 3701F, FortiGate 3960E, FortiGate 3980E, FortiGate 400E Bypass, FortiGate 400E, FortiGate 400F, FortiGate 401E, FortiGate 401F, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 4200F, FortiGate 4201F, FortiGate 4400F, FortiGate 4401F, FortiGate 4801F, FortiGate 500E, FortiGate 501E, FortiGate 600E, FortiGate 600F, FortiGate 601E, FortiGate 601F, FortiGate 60E DSLJ, FortiGate 60E DSL, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 61E, FortiGate 61F, FortiGate 70F, FortiGate 71F, FortiGate 800D, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 900G, FortiGate 901G, FortiGate 90E, FortiGate 91E, FortiGate VM64, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiGateRugged 70F 3G4G, FortiGateRugged 70F, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 60E DSLJ, FortiWiFi 60E DSL, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 80F 2R, FortiWiFi 81F 2R 3G4G-POE, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 5001E1, FortiGate 5001E.

Configure Dynamic port policy to be applied on the managed FortiSwitch ports through DPP device.

config switch-controller dynamic-port-policy
    Description: Configure Dynamic port policy to be applied on the managed FortiSwitch ports through DPP device.
    edit <name>
        set description {string}
        set fortilink {string}
        config policy
            Description: Port policies with matching criteria and actions.
            edit <name>
                set 802-1x {string}
                set bounce-port-link [disable|enable]
                set category [device|interface-tag]
                set description {string}
                set family {string}
                set host {string}
                set hw-vendor {string}
                set interface-tags <tag-name1>, <tag-name2>, ...
                set lldp-profile {string}
                set mac {string}
                set qos-policy {string}
                set status [enable|disable]
                set type {string}
                set vlan-policy {string}
            next
        end
    next
end

config switch-controller dynamic-port-policy

Parameter

Description

Type

Size

Default

description

Description for the Dynamic port policy.

string

Maximum length: 63

fortilink

FortiLink interface for which this Dynamic port policy belongs to.

string

Maximum length: 15

name

Dynamic port policy name.

string

Maximum length: 63

config policy

Parameter

Description

Type

Size

Default

802-1x

802.1x security policy to be applied when using this policy.

string

Maximum length: 31

bounce-port-link

Enable/disable bouncing (administratively bring the link down, up) of a switch port where this policy is applied. Helps to clear and reassign VLAN from lldp-profile.

option

-

enable

Option

Description

disable

Disable bouncing (administratively bring the link down, up) of a switch port where this policy is applied.

enable

Enable bouncing (administratively bring the link down, up) of a switch port where this policy is applied.

category

Category of Dynamic port policy.

option

-

device

Option

Description

device

Device category.

interface-tag

Interface Tag category.

description

Description for the policy.

string

Maximum length: 63

family

Match policy based on family.

string

Maximum length: 31

host

Match policy based on host.

string

Maximum length: 64

hw-vendor

Match policy based on hardware vendor.

string

Maximum length: 15

interface-tags <tag-name>

Match policy based on the FortiSwitch interface object tags.

FortiSwitch port tag name.

string

Maximum length: 63

lldp-profile

LLDP profile to be applied when using this policy.

string

Maximum length: 63

mac

Match policy based on MAC address.

string

Maximum length: 17

name

Policy name.

string

Maximum length: 63

qos-policy

QoS policy to be applied when using this policy.

string

Maximum length: 63

status

Enable/disable policy.

option

-

enable

Option

Description

enable

Enable policy.

disable

Disable policy.

type

Match policy based on type.

string

Maximum length: 15

vlan-policy

VLAN policy to be applied when using this policy.

string

Maximum length: 63