< Home

lldp tlv-enable dot1-tlv

Function

The lldp tlv-enable dot1-tlv command sets to advertise TLVs defined by the IEEE 802.1 working group.

The undo lldp tlv-enable dot1-tlv command sets the TLVs defined by the IEEE 802.1 working group disabled on an interface.

By default, an interface advertises all TLVs defined by the IEEE 802.1 working group, except Protocol Identity TLV.

Format

lldp tlv-enable dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | protocol-identity }

undo lldp tlv-enable dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | protocol-identity }

Parameters

Parameter

Description

Value

all

Indicates to advertise all TLVs defined by the IEEE 802.1 working group.

-

port-vlan-id

Indicates to advertise Port VLAN ID TLV. The VLAN ID is the default VLAN ID on the interface.

-

protocol-vlan-id [ vlan-id ]

Indicates to advertise Port And Protocol VLAN ID TLV. If vlan-id is not specified, the interface does not support protocol VLAN TLVs.

The value of vlan-id is an integer that ranges from 1 to 4094.

vlan-name [ vlan-id ]

Indicates to advertise VLAN Name TLV. If VLAN ID is not specified, the default VLAN ID is used.

The value of vlan-id is an integer that ranges from 1 to 4094.

protocol-identity

Indicates to advertise Protocol Identity 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 working in Layer 3 mode does not support the TLVs defined in IEEE802.1.

Example

# Configure GigabitEthernet0/0/1 to advertise the port VLAN TLV in the IEEE 802.1 format.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] lldp tlv-enable dot1-tlv port-vlan-id
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >