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.
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:
|
- |
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
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.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.
<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