Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.0
Download PDF
Copy Link

switch-controller lldp-profile

FortiOS supports configuring link layer discovery protocol-media endpoint discovery (LLDP MED) for managed FortiSwitches. You can use the following command to add media endpoint discovery (MED) features to an LLDP profile Configure FortiSwitch LLDP profiles.

config switch-controller lldp-profile
    edit {name}
    # Configure FortiSwitch LLDP profiles.
        set name {string}   Profile name. size[63]
        set med-tlvs {inventory-management | network-policy}   Transmitted LLDP-MED TLVs (type-length-value descriptions): inventory management TLV and/or network policy TLV.
                inventory-management  Inventory management TLV.
                network-policy        Network policy TLVS.
        set 802.1-tlvs {port-vlan-id}   Transmitted IEEE 802.1 TLVs.
                port-vlan-id  Port native VLAN TLV.
        set 802.3-tlvs {max-frame-size}   Transmitted IEEE 802.3 TLVs.
                max-frame-size  Maximum frame size TLV.
        set auto-isl {disable | enable}   Enable/disable auto inter-switch LAG.
        set auto-isl-hello-timer {integer}   Auto inter-switch LAG hello timer duration (1 - 30 sec, default = 3). range[1-30]
        set auto-isl-receive-timeout {integer}   Auto inter-switch LAG timeout if no response is received (3 - 90 sec, default = 9). range[3-90]
        set auto-isl-port-group {integer}   Auto inter-switch LAG port group ID (0 - 9). range[0-9]
        config med-network-policy
            edit {name}
            # Configuration method to edit Media Endpoint Discovery (MED) network policy type-length-value (TLV) categories.
                set name {string}   Policy type name. size[63]
                set status {disable | enable}   Enable or disable this TLV.
                set vlan {integer}   ID of VLAN to advertise, if configured on port (0 - 4094, 0 = priority tag). range[0-4094]
                set priority {integer}   Advertised Layer 2 priority (0 - 7; from lowest to highest priority). range[0-7]
                set dscp {integer}   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. range[0-63]
            next
        config custom-tlvs
            edit {name}
            # Configuration method to edit custom TLV entries.
                set name {string}   TLV name (not sent). size[63]
                set oui {string}   Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
                set subtype {integer}   Organizationally defined subtype (0 - 255). range[0-255]
                set information-string {string}   Organizationally defined information string (0 - 507 hexadecimal bytes).
            next
    next
end

switch-controller lldp-profile

FortiOS supports configuring link layer discovery protocol-media endpoint discovery (LLDP MED) for managed FortiSwitches. You can use the following command to add media endpoint discovery (MED) features to an LLDP profile Configure FortiSwitch LLDP profiles.

config switch-controller lldp-profile
    edit {name}
    # Configure FortiSwitch LLDP profiles.
        set name {string}   Profile name. size[63]
        set med-tlvs {inventory-management | network-policy}   Transmitted LLDP-MED TLVs (type-length-value descriptions): inventory management TLV and/or network policy TLV.
                inventory-management  Inventory management TLV.
                network-policy        Network policy TLVS.
        set 802.1-tlvs {port-vlan-id}   Transmitted IEEE 802.1 TLVs.
                port-vlan-id  Port native VLAN TLV.
        set 802.3-tlvs {max-frame-size}   Transmitted IEEE 802.3 TLVs.
                max-frame-size  Maximum frame size TLV.
        set auto-isl {disable | enable}   Enable/disable auto inter-switch LAG.
        set auto-isl-hello-timer {integer}   Auto inter-switch LAG hello timer duration (1 - 30 sec, default = 3). range[1-30]
        set auto-isl-receive-timeout {integer}   Auto inter-switch LAG timeout if no response is received (3 - 90 sec, default = 9). range[3-90]
        set auto-isl-port-group {integer}   Auto inter-switch LAG port group ID (0 - 9). range[0-9]
        config med-network-policy
            edit {name}
            # Configuration method to edit Media Endpoint Discovery (MED) network policy type-length-value (TLV) categories.
                set name {string}   Policy type name. size[63]
                set status {disable | enable}   Enable or disable this TLV.
                set vlan {integer}   ID of VLAN to advertise, if configured on port (0 - 4094, 0 = priority tag). range[0-4094]
                set priority {integer}   Advertised Layer 2 priority (0 - 7; from lowest to highest priority). range[0-7]
                set dscp {integer}   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. range[0-63]
            next
        config custom-tlvs
            edit {name}
            # Configuration method to edit custom TLV entries.
                set name {string}   TLV name (not sent). size[63]
                set oui {string}   Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
                set subtype {integer}   Organizationally defined subtype (0 - 255). range[0-255]
                set information-string {string}   Organizationally defined information string (0 - 507 hexadecimal bytes).
            next
    next
end