Fortinet white logo
Fortinet white logo

CLI Reference

config switch-controller lldp-profile

config switch-controller lldp-profile

Configure FortiSwitch LLDP profiles.

config switch-controller lldp-profile
    Description: Configure FortiSwitch LLDP profiles.
    edit <name>
        set 802 1-tlvs {option1}, {option2}, ...
        set 802 3-tlvs {option1}, {option2}, ...
        set auto-isl [disable|enable]
        set auto-isl-auth [legacy|strict|...]
        set auto-isl-auth-encrypt [none|mixed|...]
        set auto-isl-auth-identity {string}
        set auto-isl-auth-macsec-profile {string}
        set auto-isl-auth-reauth {integer}
        set auto-isl-auth-user {string}
        set auto-isl-hello-timer {integer}
        set auto-isl-port-group {integer}
        set auto-isl-receive-timeout {integer}
        set auto-mclag-icl [disable|enable]
        config custom-tlvs
            Description: Configuration method to edit custom TLV entries.
            edit <name>
                set information-string {user}
                set oui {user}
                set subtype {integer}
            next
        end
        config med-location-service
            Description: Configuration method to edit Media Endpoint Discovery (MED) location service type-length-value (TLV) categories.
            edit <name>
                set status [disable|enable]
                set sys-location-id {string}
            next
        end
        config med-network-policy
            Description: Configuration method to edit Media Endpoint Discovery (MED) network policy type-length-value (TLV) categories.
            edit <name>
                set assign-vlan [disable|enable]
                set dscp {integer}
                set priority {integer}
                set status [disable|enable]
                set vlan-intf {string}
            next
        end
        set med-tlvs {option1}, {option2}, ...
    next
end

config switch-controller lldp-profile

Parameter

Description

Type

Size

Default

802 1-tlvs

Transmitted IEEE 802.1 TLVs.

option

-

Option

Description

port-vlan-id

Port native VLAN TLV.

802 3-tlvs

Transmitted IEEE 802.3 TLVs.

option

-

Option

Description

max-frame-size

Maximum frame size TLV.

power-negotiation

PoE+ classification TLV.

eee-negotiation

Energy Efficient Ethernet TLV.

auto-isl

Enable/disable auto inter-switch LAG.

option

-

enable

Option

Description

disable

Disable automatic MCLAG inter chassis link.

enable

Enable automatic MCLAG inter chassis link.

auto-isl-auth

Auto inter-switch LAG authentication mode.

option

-

legacy

Option

Description

legacy

No auto inter-switch-LAG authentication.

strict

Strict auto inter-switch-LAG authentication.

relax

Relax auto inter-switch-LAG authentication.

auto-isl-auth-encrypt

Auto inter-switch LAG encryption mode.

option

-

none

Option

Description

none

No auto inter-switch-LAG encryption.

mixed

Mixed auto inter-switch-LAG encryption.

must

Must auto inter-switch-LAG encryption.

auto-isl-auth-identity

Auto inter-switch LAG authentication identity.

string

Maximum length: 63

auto-isl-auth-macsec-profile

Auto inter-switch LAG macsec profile for encryption.

string

Maximum length: 63

auto-isl-auth-reauth

Auto inter-switch LAG authentication reauth period in seconds(10 - 3600, default = 3600).

integer

Minimum value: 180 Maximum value: 3600

3600

auto-isl-auth-user

Auto inter-switch LAG authentication user certificate.

string

Maximum length: 63

auto-isl-hello-timer

Auto inter-switch LAG hello timer duration (1 - 30 sec, default = 3).

integer

Minimum value: 1 Maximum value: 30

3

auto-isl-port-group

Auto inter-switch LAG port group ID (0 - 9).

integer

Minimum value: 0 Maximum value: 9

0

auto-isl-receive-timeout

Auto inter-switch LAG timeout if no response is received (3 - 90 sec, default = 9).

integer

Minimum value: 0 Maximum value: 90

60

auto-mclag-icl

Enable/disable MCLAG inter chassis link.

option

-

disable

Option

Description

disable

Disable auto inter-switch-LAG.

enable

Enable auto inter-switch-LAG.

med-tlvs

Transmitted LLDP-MED TLVs (type-length-value descriptions).

option

-

Option

Description

inventory-management

Inventory management TLVs.

network-policy

Network policy TLVs.

power-management

Power manangement TLVs.

location-identification

Location identificaion TLVs.

name

Profile name.

string

Maximum length: 63

config custom-tlvs

Parameter

Description

Type

Size

Default

information-string

Organizationally defined information string (0 - 507 hexadecimal bytes).

user

Not Specified

name

TLV name (not sent).

string

Maximum length: 63

oui

Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.

user

Not Specified

000000

subtype

Organizationally defined subtype (0 - 255).

integer

Minimum value: 0 Maximum value: 255

0

config med-location-service

Parameter

Description

Type

Size

Default

name

Location service type name.

string

Maximum length: 63

status

Enable or disable this TLV.

option

-

disable

Option

Description

disable

Do not transmit this location service TLV.

enable

Transmit this location service TLV.

sys-location-id

Location service ID.

string

Maximum length: 63

config med-network-policy

Parameter

Description

Type

Size

Default

assign-vlan

Enable/disable VLAN assignment when this profile is applied on managed FortiSwitch port.

option

-

disable

Option

Description

disable

Disable VLAN assignment when this profile is applied on port.

enable

Enable VLAN assignment when this profile is applied on port.

dscp

Advertised Differentiated Services Code Point (DSCP) value, a packet header value indicating the level of service requested for traffic, such as high priority or best effort delivery.

integer

Minimum value: 0 Maximum value: 63

0

name

Policy type name.

string

Maximum length: 63

priority

Advertised Layer 2 priority (0 - 7; from lowest to highest priority).

integer

Minimum value: 0 Maximum value: 7

0

status

Enable or disable this TLV.

option

-

disable

Option

Description

disable

Do not transmit this network policy TLV.

enable

Transmit this TLV if a VLAN has been addded to the port.

vlan-intf

VLAN interface to advertise; if configured on port.

string

Maximum length: 15

config switch-controller lldp-profile

config switch-controller lldp-profile

Configure FortiSwitch LLDP profiles.

config switch-controller lldp-profile
    Description: Configure FortiSwitch LLDP profiles.
    edit <name>
        set 802 1-tlvs {option1}, {option2}, ...
        set 802 3-tlvs {option1}, {option2}, ...
        set auto-isl [disable|enable]
        set auto-isl-auth [legacy|strict|...]
        set auto-isl-auth-encrypt [none|mixed|...]
        set auto-isl-auth-identity {string}
        set auto-isl-auth-macsec-profile {string}
        set auto-isl-auth-reauth {integer}
        set auto-isl-auth-user {string}
        set auto-isl-hello-timer {integer}
        set auto-isl-port-group {integer}
        set auto-isl-receive-timeout {integer}
        set auto-mclag-icl [disable|enable]
        config custom-tlvs
            Description: Configuration method to edit custom TLV entries.
            edit <name>
                set information-string {user}
                set oui {user}
                set subtype {integer}
            next
        end
        config med-location-service
            Description: Configuration method to edit Media Endpoint Discovery (MED) location service type-length-value (TLV) categories.
            edit <name>
                set status [disable|enable]
                set sys-location-id {string}
            next
        end
        config med-network-policy
            Description: Configuration method to edit Media Endpoint Discovery (MED) network policy type-length-value (TLV) categories.
            edit <name>
                set assign-vlan [disable|enable]
                set dscp {integer}
                set priority {integer}
                set status [disable|enable]
                set vlan-intf {string}
            next
        end
        set med-tlvs {option1}, {option2}, ...
    next
end

config switch-controller lldp-profile

Parameter

Description

Type

Size

Default

802 1-tlvs

Transmitted IEEE 802.1 TLVs.

option

-

Option

Description

port-vlan-id

Port native VLAN TLV.

802 3-tlvs

Transmitted IEEE 802.3 TLVs.

option

-

Option

Description

max-frame-size

Maximum frame size TLV.

power-negotiation

PoE+ classification TLV.

eee-negotiation

Energy Efficient Ethernet TLV.

auto-isl

Enable/disable auto inter-switch LAG.

option

-

enable

Option

Description

disable

Disable automatic MCLAG inter chassis link.

enable

Enable automatic MCLAG inter chassis link.

auto-isl-auth

Auto inter-switch LAG authentication mode.

option

-

legacy

Option

Description

legacy

No auto inter-switch-LAG authentication.

strict

Strict auto inter-switch-LAG authentication.

relax

Relax auto inter-switch-LAG authentication.

auto-isl-auth-encrypt

Auto inter-switch LAG encryption mode.

option

-

none

Option

Description

none

No auto inter-switch-LAG encryption.

mixed

Mixed auto inter-switch-LAG encryption.

must

Must auto inter-switch-LAG encryption.

auto-isl-auth-identity

Auto inter-switch LAG authentication identity.

string

Maximum length: 63

auto-isl-auth-macsec-profile

Auto inter-switch LAG macsec profile for encryption.

string

Maximum length: 63

auto-isl-auth-reauth

Auto inter-switch LAG authentication reauth period in seconds(10 - 3600, default = 3600).

integer

Minimum value: 180 Maximum value: 3600

3600

auto-isl-auth-user

Auto inter-switch LAG authentication user certificate.

string

Maximum length: 63

auto-isl-hello-timer

Auto inter-switch LAG hello timer duration (1 - 30 sec, default = 3).

integer

Minimum value: 1 Maximum value: 30

3

auto-isl-port-group

Auto inter-switch LAG port group ID (0 - 9).

integer

Minimum value: 0 Maximum value: 9

0

auto-isl-receive-timeout

Auto inter-switch LAG timeout if no response is received (3 - 90 sec, default = 9).

integer

Minimum value: 0 Maximum value: 90

60

auto-mclag-icl

Enable/disable MCLAG inter chassis link.

option

-

disable

Option

Description

disable

Disable auto inter-switch-LAG.

enable

Enable auto inter-switch-LAG.

med-tlvs

Transmitted LLDP-MED TLVs (type-length-value descriptions).

option

-

Option

Description

inventory-management

Inventory management TLVs.

network-policy

Network policy TLVs.

power-management

Power manangement TLVs.

location-identification

Location identificaion TLVs.

name

Profile name.

string

Maximum length: 63

config custom-tlvs

Parameter

Description

Type

Size

Default

information-string

Organizationally defined information string (0 - 507 hexadecimal bytes).

user

Not Specified

name

TLV name (not sent).

string

Maximum length: 63

oui

Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.

user

Not Specified

000000

subtype

Organizationally defined subtype (0 - 255).

integer

Minimum value: 0 Maximum value: 255

0

config med-location-service

Parameter

Description

Type

Size

Default

name

Location service type name.

string

Maximum length: 63

status

Enable or disable this TLV.

option

-

disable

Option

Description

disable

Do not transmit this location service TLV.

enable

Transmit this location service TLV.

sys-location-id

Location service ID.

string

Maximum length: 63

config med-network-policy

Parameter

Description

Type

Size

Default

assign-vlan

Enable/disable VLAN assignment when this profile is applied on managed FortiSwitch port.

option

-

disable

Option

Description

disable

Disable VLAN assignment when this profile is applied on port.

enable

Enable VLAN assignment when this profile is applied on port.

dscp

Advertised Differentiated Services Code Point (DSCP) value, a packet header value indicating the level of service requested for traffic, such as high priority or best effort delivery.

integer

Minimum value: 0 Maximum value: 63

0

name

Policy type name.

string

Maximum length: 63

priority

Advertised Layer 2 priority (0 - 7; from lowest to highest priority).

integer

Minimum value: 0 Maximum value: 7

0

status

Enable or disable this TLV.

option

-

disable

Option

Description

disable

Do not transmit this network policy TLV.

enable

Transmit this TLV if a VLAN has been addded to the port.

vlan-intf

VLAN interface to advertise; if configured on port.

string

Maximum length: 15