lldp tlv-enable basic-tlv (Interface view)

Function

The lldp tlv-enable basic-tlv command configures time-length-values (TLVs) that can be advertised by an interface.

The undo lldp tlv-enable basic-tlv command configures TLVs that cannot be advertised by an interface.

By default, lldp publishes TLVs of all basic types, LLDP is not enabled on sub-interfaces. Therefore, LLDP does not take effect on sub-interfaces.

Format

lldp tlv-enable basic-tlv { all | management-address | port-description | system-capability | system-description | system-name }

undo lldp tlv-enable basic-tlv { all | management-address | port-description | system-capability | system-description | system-name }

Parameters

Parameter Description Value
all

Indicates all optional TLVs contained in basic- TLVs.

-

management-address

Indicates Management-address TLVs.

-

port-description

Indicates Port Description TLVs.

-

system-capability

Indicates System Capabilities TLVs.

-

system-description

Indicates System Description TLVs.

-

system-name

Indicates System Name TLVs.

-

basic-tlv

Indicates types of basic TLVs that can be advertised:

  • Management-address TLV.
  • Port Description TLV.
  • System Capabilities TLV.
  • System Description TLV.
  • System Name TLV.

-

Views

100ge sub-interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE sub-interface view, 400GE sub-interface view, 40GE sub-interface view, 50GE sub-interface view, FlexE-100G interface view, FlexE-400G interface view, FlexE-50G interface view, FlexE-50|100G interface view, GE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
lldp write

Usage Guidelines

Usage Scenario

A TLV is the basic information unit of an LLDPDU. A device encapsulates information about its main capabilities, management address, device ID, and interface ID into TLVs, encapsulates multiple TLVs into an LLDPDU, and encapsulates an LLDPDU into an LLDP packet. A device exchanges information with neighbors using LLDP packets. During the process of exchanging LLDP packets between devices, the LLDPDU encapsulated in an LLDP packet carries various TLVs as needed. A device sends its status information and receives neighbor status information based on these different TLVs.

TLVs that can be encapsulated into an LLDPDU include basic TLVs, TLVs defined by IEEE 802.1, TLVs defined by IEEE 802.3.

  • Basic TLVs implement basic LLDP functions. In addition to optional management-address, port-description, system-capability, system-description, and system-name TLVs, basic TLVs include four mandatory TLVs that must be encapsulated into an LLDPDU to be advertised. For details, see "LLDP Feature Description" in "VRP Feature Description - System Management".
  • TLVs defined by IEEE 802.1, TLVs defined by IEEE 802.3 are optional TLVs used to enhance the LLDP function. Determine whether to encapsulate these TLVs into LLDPDUs for advertisement as needed.

Prerequisites

LLDP has been enabled globally using the lldp enable command in the system view.

For sub-interfaces, run the lldp enable command in the sub-interface view to enable LLDP.

Precautions

Only Ethernet sub-interfaces supports LLDP.

Example

# Configure GigabitEthernet 0/1/1.1 to advertise the optional port-description TLV defined in Basic TLV.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1.1
[*HUAWEI-GigabitEthernet 0/1/1.1] lldp enable
[*HUAWEI-GigabitEthernet 0/1/1.1] lldp tlv-enable basic-tlv port-description
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >