lldp tlv-enable(interface view)

Function

The lldp tlv-enable command configures time-length-values (TLVs) that can be advertised by an interface.

The undo lldp tlv-enable command configures TLVs that cannot be advertised by an interface.

An interface by default can advertise all TLVs except Protocol Identity TLVs.

Format

lldp tlv-enable { { basic-tlv { all | management-address | port-description | system-capability | system-description | system-name } } | { dot1-tlv { all | port-vlan-id | protocol-identity | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } } | { dot3-tlv { all | link-aggregation | mac-physic | max-frame-size } } }

undo lldp tlv-enable { { basic-tlv { all | management-address | port-description | system-capability | system-description | system-name } } | { dot1-tlv { all | port-vlan-id | protocol-identity | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } } | { dot3-tlv { all | link-aggregation | mac-physic | max-frame-size } } }

Parameters

Parameter Description Value
basic-tlv

Indicates types of basic TLVs that can be advertised:

  • Management-address TLV.
  • Port Description TLV.
  • System Capabilities TLV.
  • System Description TLV.
  • System Name TLV.

-

all

Indicates all optional TLVs contained in basic- TLVs.

-

management-address

Indicates Management-address TLVs.

-

port-description

Indicates Port Description TLVs.

-

system-capability

Indicates System Capabilities TLVs.

-

system-description

Indicates System Description TLVs.

-

system-name

Indicates System Name TLVs.

-

dot1-tlv

Indicates TLVs defined by IEEE 802.1, including:

  • Port VLAN TLV.
  • Port And Protocol VLAN ID TLV.
  • VLAN Name TLV.
  • Protocol Identity TLV.

-

port-vlan-id

Indicates Port VLAN TLVs.

-

protocol-identity

Indicates Protocol Identity TLVs.

-

protocol-vlan-id

Indicates Port and Protocol VLAN ID TLVs.

-

vlan-id

Specifies the VLAN ID carried in advertised VLAN Name TLVs.

If you do not specify this parameter, the device uses the smallest VLAN ID to which the interface that advertises VLAN Name TLVs belongs.

The value is an integer ranging from 1 to 4094.

vlan-name

Indicates VLAN Name TLVs.

-

dot3-tlv

Indicates TLVs defined by IEEE 802.3, including:

  • Link Aggregation TLV.
  • MAC/PHY Configuration/Status TLV.
  • Maximum Frame Size TLV.
  • EEE TLV.

-

link-aggregation

Indicates Link Aggregation TLVs.

-

mac-physic

Indicates MAC/PHY Configuration/Status TLVs.

-

max-frame-size

Indicates Maximum Frame Size TLVs.

-

Views

Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, Layer 2 50GE interface view, 50GE interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
lldp write

Usage Guidelines

Usage Scenario

A TLV is the basic information unit of an LLDPDU. A device encapsulates information about its main capabilities, management address, device ID, and interface ID into TLVs, encapsulates multiple TLVs into an LLDPDU, and encapsulates an LLDPDU into an LLDP packet. A device exchanges information with neighbors using LLDP packets. During the process of exchanging LLDP packets between devices, the LLDPDU encapsulated in an LLDP packet carries various TLVs as needed. A device sends its status information and receives neighbor status information based on these different TLVs.

TLVs that can be encapsulated into an LLDPDU include basic TLVs, TLVs defined by IEEE 802.1, TLVs defined by IEEE 802.3.

  • Basic TLVs implement basic LLDP functions. In addition to optional management-address, port-description, system-capability, system-description, and system-name TLVs, basic TLVs include four mandatory TLVs that must be encapsulated into an LLDPDU to be advertised. For details, see "LLDP Feature Description" in "VRP Feature Description - System Management".
  • TLVs defined by IEEE 802.1, TLVs defined by IEEE 802.3 are optional TLVs used to enhance the LLDP function. Determine whether to encapsulate these TLVs into LLDPDUs for advertisement as needed.

Prerequisites

LLDP has been enabled globally using the lldp enable command in the system view.

Precautions

When configuring a device to advertise basic TLVs, TLVs defined by IEEE 802.1, and TLVs defined by IEEE 802.3:

  • If you configure the all parameter, all optional TLVs of the same type will be advertised.
  • If you do not configure the all parameter, only one optional TLV of the same type can be configured and advertised at a time. You can configure the device repeatedly to advertise multiple optional TLVs of different types.

Example

# Configure GE 0/1/1 to advertise the optional Link Aggregation TLV defined in IEEE 802.3.
<HUAWEI> system-view
[~HUAWEI] lldp enable
[*HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] lldp tlv-enable dot3-tlv link-aggregation
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >