(Optional) Configuring the Type of TLVs that an Interface Can Send
Context
LLDPDUs can encapsulate basic TLVs, TLVs defined by IEEE 802.1 working groups, TLVs defined by IEEE 802.3 working groups, 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 sent. To send 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.
- To set the type of TLVs to be advertised
on the interface:
- Run:
lldp tlv-enable basic-tlv { all | management-address | port-description | system-capability | system-description | system-name }
The interface is configured to advertise basic TLVs.
- Run:
lldp tlv-enable dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | protocol-identity }
The interface is configured to advertise TLVs defined by the IEEE 802.1 working group.
- Run:
lldp tlv-enable dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power }
The interface is configured to advertise the TLVs advertised by the IEEE 802.3 working group.
- Run:
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 }
The interface is configured to advertise MED TLVs.
By default, an interface advertises all types of TLVs except the Location Identification TLV and Location Identification TLV.
- Run:
- 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 of the 802.3 Power via MDI TLV, you must know the TLV format supported by the neighbors. The TLV format on the local device must be also supported by the neighbors.