< Home

lldp tlv-enable (MEth interface view)

Function

The lldp tlv-enable command sets the TLVs that can be sent by the MEth interface.

The undo lldp tlv-enable command sets the TLVs disabled on the MEth interface.

By default, the MEth interface can advertise all TLVs except the Location Identification TLV.

Format

lldp tlv-enable basic-tlv { all | management-address | port-description | system-capability | system-description | system-name }

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 } }

undo lldp tlv-enable basic-tlv { all | management-address | port-description | system-capability | system-description | system-name }

undo lldp tlv-enable med-tlv { all | capability | inventory | location-id [ civic-address | elin-address ] }

Parameters

Parameter

Description

Value

all

Indicates to advertise all basic TLV.

-

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.

-

all

Indicates to advertise all MED TLVs except the Location Identification TLV.

-

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.
  • device-type specifies the type of the device. The value is an integer that ranges from 0 to 2. 0 indicates that the device is a DHCP server. 1 indicates that the device is a switch. 2 indicates that the device is an MED endpoint.
  • country-code specifies the country code. For the value range, see ISO 3166.
  • { ca-type ca-value }&<1-10> specifies the address information. ca-type specifies the type of address information. The value is an integer that ranges from 0 to 255. ca-value specifies the content of the address information. The value is a string of 1-250 characters. <1-10> indicates that the preceding parameters can be entered 10 times.

-

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.

Views

MEth interface view

Default Level

2: Configuration level

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. LLDPPDUs supported by the management interface includes basic TLVs 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

  1. LLDP has been enabled globally using the lldp enable command.
  2. LLDP has been enabled on the interface using the lldp enable command.

Precautions

  • If the all parameter is not specified, all the available TLVs of the specified type can be advertised except the 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.

Example

# Configure The MEth interface to advertise the MED Capabilities TLV.

<HUAWEI> system-view
[HUAWEI] interface meth 0/0/1
[HUAWEI-MEth0/0/1] lldp tlv-enable med-tlv capability
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >