lldp tlv-enable
Function
The lldp tlv-enable command sets the type of the TLVs that can be sent by an interface.
The undo lldp tlv-enable command sets the type of the TLVs disabled on an interface.
By default, an interface advertises all types of TLVs except the Location Identification TLV and advertises MED TLVs only when receiving MED TLVs.
Format
lldp tlv-enable basic-tlv { all | management-address | port-description | system-capability | system-description | system-name }
lldp tlv-enable dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | protocol-identity }
lldp tlv-enable dot3-tlv { all | eee | link-aggregation | mac-physic | max-frame-size | power }
lldp tlv-enable med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value } & <1-10> | elin-address Tel-Number } | network-policy | power-over-ethernet }
undo lldp tlv-enable basic-tlv { all | management-address | port-description | system-capability | system-description | system-name }
undo lldp tlv-enable dot1-tlv { all | port-vlan-id | protocol-vlan-id | vlan-name | protocol-identity }
undo lldp tlv-enable dot3-tlv { all | eee | link-aggregation | mac-physic | max-frame-size | power }
undo lldp tlv-enable med-tlv { all | capability | inventory | location-id [ civic-address | elin-address ] | network-policy | power-over-ethernet }
Parameters
Parameter |
Description |
Value |
---|---|---|
all |
|
- |
basic-tlv |
Indicates to advertise basic TLVs that include:
|
- |
management-address |
Indicates to advertise Management-address TLV. |
- |
port-description |
Indicates to advertise Port Description TLV. |
- |
system-capability |
Indicates to advertise System Capabilities TLV. |
- |
system-description |
Indicates to advertise System Description TLV. |
- |
system-name |
Indicates to advertise System Name TLV. |
- |
dot1-tlv |
Indicates to advertise the TLVs in the IEEE 802.1 format that include:
|
- |
port-vlan-id |
Indicates to advertise port VLAN TLV. The VLAN ID is the default VLAN ID on the interface. |
- |
protocol-vlan-id [ vlan-id ] |
Indicates to advertise port protocol VLAN TLV. If vlan-id is not specified, the interface does not support protocol VLAN TLVs. |
The value of vlan-id is an integer that ranges from 1 to 4094. |
vlan-name [ vlan-id ] |
Indicates to advertise VLAN Name TLV. If vlan-id is not specified, the default VLAN ID is used. |
The value of vlan-id is an integer that ranges from 1 to 4094. |
protocol-identity |
Indicates to advertise protocol identity TLV. |
- |
dot3-tlv |
Indicates to advertise the TLVs in the IEEE 802.3 format that include:
|
- |
eee |
Indicates to advertise EEE TLV. |
- |
link-aggregation |
Indicates to advertise Link Aggregation TLV. |
- |
mac-physic |
Indicates to advertise MAC/PHY Configuration/Status TLV. |
- |
max-frame-size |
Indicates to advertise Maximum Frame Size TLV. |
- |
power |
Indicates to advertise Power Via MDI TLV. |
- |
med-tlv |
Indicates to advertise MED TLVs that include:
|
- |
capability |
Indicates to advertise MED Capabilities TLV. |
- |
inventory |
Indicates to advertise Hardware Revision TLV, Firmware Revision TLV, Software Revision TLV, Serial Number TLV, Manufacturer Name TLV, Model Name TLV, and Asset ID TLV. |
- |
location-id |
Indicates to advertise Location Identification TLV. |
- |
civic-address device-type country-code { ca-type ca-value } & <1-10> |
Indicates to advertise the common address information of the network devices encapsulated in Location Identification TLV.
|
- |
elin-address Tel-Number |
Advertises the emergency phone number encapsulated in Location Identification TLV. |
The value is a string of 10 to 25 numerals. Each numeral ranges from 0 to 9. |
network-policy |
Advertises Network Policy TLV. Network Policy TLV is used to exchange VLAN configurations between network devices and terminal devices. The device uses the TLV to advertise voice VLAN ID and voice stream priority to an IP phone. Then the IP phone forwards packets according to the received voice VLAN ID and priority, ensuring the voice quality. |
- |
power-over-ethernet |
Advertises Extended Power via MDI TLV. |
- |
Usage Guidelines
Usage Scenario
In LLDP, all device information is encapsulated in Link Layer Discovery Protocol data units (LLDPDUs), which are then sent to neighbors. An LLDPDU contains a variety of TLVs. In a TLV, T indicates the information type, L indicates the information length, and V indicates the value or the content to be sent.
Devices exchange LLDPDUs carrying TLVs to obtain neighbor information. The TLVs that can be encapsulated in an LLDP packet include basic TLVs, TLVs in the IEEE 802.1 format, TLVs in the IEEE 802.3 format, and MED TLVs.
Basic TLVs are essential for managing network devices. The TLVs in the IEEE 802.1 format, TLVs in the IEEE 802.3 format, and MED TLVs are defined by standardization organizations and other organizations, which are used to enhance the network device management. You can determine whether to advertise the IEEE 802.1 format, TLVs in the IEEE 802.3 format, and MED TLVs.
Devices on both ends can have different TLV types configured. You only need to configure TLV types according to networking requirements.
Prerequisites
The LLDP function is enabled globally and on interfaces.
Precautions
- When the supported TLVs are basic TLVs, TLVs in the IEEE 802.1 format, and TLVs in the IEEE 802.3 format, the lldp tlv-enable command with the all parameter advertises all TLVs. When the supported TLVs
are MED TLVs, the lldp tlv-enable command with the all parameter advertises all TLVs except Location Identification TLV.
If the all parameter is not specified, only one type of TLV can be advertised. To advertise multiple types of TLVs, run this command multiple times.
- You can specify the other types of MED TLVs only after specifying the MED Capabilities TLV.
To disable the MED Capabilities TLV, first disable the other types of MED TLVs.
To disable the MAC/PHY Configuration/Status TLVs, first disable the MED Capabilities TLV.
- The 802.3 MAC/PHY Configuration/Status TLVs are automatically advertised after the MED Capabilities TLV is advertised.
- If you disable the MED TLVs using the command with the all parameter, the 802.3 MAC/PHY Configuration/Status TLVs are not disabled automatically.