The lldp tlv-enable med-tlv command sets to advertise the MED TLVs.
The undo lldp tlv-enable med-tlv command sets the MED TLVs disabled on an interface.
By default, an interface advertises all types of MED TLVs except the Location Identification TLV and Network Policy TLV.
Although the interface does not advertise Network Policy TLV, Network Policy TLV is still enabled.
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 [ voice-vlan { vlan vlan-id [ cos cvalue | dscp dvalue ]* | 8021p [ cos cvalue | dscp dvalue ]* | untagged } ] | power-over-ethernet }
undo lldp tlv-enable med-tlv { all | capability | inventory | location-id [ civic-address | elin-address ] | network-policy [ voice-vlan { vlan | cos | dscp | 8021p | untagged } ] | power-over-ethernet }
Parameter |
Description |
Value |
---|---|---|
all |
Indicates that all MED TLVs except Location Identification TLV and Network Policy TLV are advertised. |
- |
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. A switch 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. NOTE:
An Ethernet interface working in Layer 3 mode does not support the Network
Policy TLV. |
- |
voice-vlan |
Encapsulates the voice VLAN ID when advertising Network Policy TLV. |
- |
vlan vlan-id |
Specifies the voice VLAN ID. |
The value is an integer that ranges from 1 to 4094. |
cos cvalue |
Specifies the CoS priority. The CoS priority is the PRI (Priority) field in an 802.1Q VLAN frame. This field is 3 bits long and ensures that high-priority data packets are forwarded first when congestion occurs. |
The value is an integer that ranges from 0 to 7. The default value is 5. A larger value indicates a higher priority. |
dscp dvalue |
Sets the DSCP priority. The first six bits of the Type of Service (ToS) field in an IPv4 packet header are used as the DiffServ Code Point (DSCP). DSCP is used in the DiffServ model to provide QoS guarantee on an IP network. The operations performed by the traffic controller on the gateway are determined only by these six bits. |
The value is an integer that ranges from 0 to 63. The default value is 46. |
8021p |
Sets the voice VLAN ID to VLAN 0. |
- |
untagged |
Configures voice devices to send untagged voice data packets. |
- |
power-over-ethernet |
Advertises Extended Power via MDI TLV. |
- |
Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, port group view
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
Precautions
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.