During the process of exchanging Link Layer Discovery Protocol (LLDP) packets between devices, the LLDP data unit (LLDPDU) encapsulated in an LLDP packet carries different type-length-values (TLVs) as needed. A device sends its status information and receives neighbor status information based on these different TLVs.
Background
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 also include four mandatory TLVs that must be encapsulated into LLDPDUs to be advertised. For details, see NetEngine 8000 F Feature Description > System Management > LLDP.
- TLVs defined by IEEE 802.1, TLVs defined by IEEE 802.3 are optional TLVs used to enhance the LLDP function. You can decide whether to encapsulate these TLVs into LLDPDUs to be advertised based on their functions and your actual requirements. For details, see NetEngine 8000 F Feature Description > System Management > LLDP.
When configuring a device to advertise basic TLVs, TLVs defined by IEEE 802.1, and TLVs defined by IEEE 802.3:
If you specify the all parameter, all optional TLVs of the same type will be advertised.
If you do not specify the all parameter, only one optional TLV of the same type can be configured and advertised at a time. You can configure the device repeatedly to advertise multiple optional TLVs of different types.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run lldp tlv-enable basic-tlv { all | management-address | port-description | system-capability | system-description | system-name }
The type of TLVs that can be advertised by LLDP is configured.
- Run commit
The configuration is committed.