The lldp tlv-enable command configures time-length-values (TLVs) that can be advertised by an interface.
The undo lldp tlv-enable command configures TLVs that cannot be advertised by an interface.
An interface by default can advertise all TLVs except Protocol Identity TLVs.
lldp tlv-enable { { basic-tlv { all | management-address | port-description | system-capability | system-description | system-name } } | { dot1-tlv { all | port-vlan-id | protocol-identity | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } } | { dot3-tlv { all | link-aggregation | mac-physic | max-frame-size } } }
undo lldp tlv-enable { { basic-tlv { all | management-address | port-description | system-capability | system-description | system-name } } | { dot1-tlv { all | port-vlan-id | protocol-identity | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } } | { dot3-tlv { all | link-aggregation | mac-physic | max-frame-size } } }
Parameter | Description | Value |
---|---|---|
basic-tlv |
Indicates types of basic TLVs that can be advertised:
|
- |
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. |
- |
dot1-tlv |
Indicates TLVs defined by IEEE 802.1, including:
|
- |
port-vlan-id |
Indicates Port VLAN TLVs. |
- |
protocol-identity |
Indicates Protocol Identity TLVs. |
- |
protocol-vlan-id |
Indicates Port and Protocol VLAN ID TLVs. |
- |
vlan-id |
Specifies the VLAN ID carried in advertised VLAN Name TLVs. If you do not specify this parameter, the device uses the smallest VLAN ID to which the interface that advertises VLAN Name TLVs belongs. |
The value is an integer ranging from 1 to 4094. |
vlan-name |
Indicates VLAN Name TLVs. |
- |
dot3-tlv |
Indicates TLVs defined by IEEE 802.3, including:
|
- |
link-aggregation |
Indicates Link Aggregation TLVs. |
- |
mac-physic |
Indicates MAC/PHY Configuration/Status TLVs. |
- |
max-frame-size |
Indicates Maximum Frame Size TLVs. |
- |
Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, Layer 2 50GE interface view, 50GE interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical 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.
Precautions
When configuring a device to advertise basic TLVs, TLVs defined by IEEE 802.1, and TLVs defined by IEEE 802.3: