(Optional) Configuring the Type of TLVs that an Interface Can Send
Context
LLDPDUs can encapsulate basic TLVs, TLVs defined by the IEEE 802.1 working groups, TLVs defined by IEEE 802.3, and Media Endpoint Discovery (MED) TLVs.
- 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.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run the following commands to set the type of TLVs to be
advertised on the interface:
- To configure the interface to advertise basic TLVs, run the lldp tlv-enable basic-tlv { all | management-address | port-description | system-capability | system-description | system-name } command.
- To configure the interface to advertise TLVs defined by the IEEE 802.1, run the lldp tlv-enable dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | protocol-identity } command.
- To configure the interface to advertise TLVs defined by the IEEE 802.3, run the lldp tlv-enable dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } command.
- To configure the interface to advertise MED TLVs, run the 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 } command.
By default, an interface advertises all types of TLVs except the Location Identification TLV.
- Run lldp dot3-tlv power { 802.1ab | 802.3at }
The standard with which the 802.3 Power via MDI TLV sent by the interface complies is set.
By default, the 802.3 Power via MDI TLV conforms to 802.1 ab.
Before selecting a format for the 802.3 Power via MDI TLV, you must know which TLV format the neighbors support. The TLV format on the local device must be also supported by the neighbors.