< Home

(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 sent. To send multiple types of TLVs, run this command multiple times.

  • You can specify 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

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. To set the type of TLVs to be advertised on the interface, run one or more of the following commands:

    An Ethernet interface working in Layer 3 mode does not support the TLV field defined in IEEE802.1 and the Network Policy TLV field in MED TLV.

    The management interface only supports basic-tlv and some TLVs of med-tlv, but does not support Network Policy TLV and Extended Power-via-MDI TLV of med-tlv.

    Run the following commands on Ethernet interfaces:

    • 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 | eee | 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 [ voice-vlan { vlan vlan-id [ cos cvalue | dscp dvalue ]* | 8021p [ cos cvalue | dscp dvalue ]* | untagged } ] | power-over-ethernet } command.
    Run the following commands on the MEth 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 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 } } command.

    By default, an interface advertises all types of TLVs except the Protocol Identification TLV, Location Identification TLV, and Network Policy TLV.

  4. Run lldp dot3-tlv power { 802.1ab [ force ] | 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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >