< Home

lldp tlv-enable basic-tlv

Function

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

The undo lldp tlv-enable basic-tlv command set the basic TLVs disabled on an interface.

By default, an interface can advertise all basic TLVs.

Format

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

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

Parameters

Parameter

Description

Value

all

Indicates to advertise all basic TLVs.

-

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.

-

Views

Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, port group 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. 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

  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, only one type of TLV can be advertised. To advertise multiple types of TLVs, run this command multiple times.

An Ethernet interface supports this command no matter whether it works in Layer 2 or Layer 3 mode.

Example

# Configure GigabitEthernet0/0/1 to advertise all basic TLVs.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] lldp tlv-enable basic-tlv all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >