No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
lldp tlv-enable

lldp tlv-enable

Function

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

The undo lldp tlv-enable command sets the type of the TLVs disabled on an interface.

By default, an interface advertises all types of TLVs except the Location Identification TLV and advertises MED TLVs only when receiving MED TLVs.

Format

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

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

lldp tlv-enable dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power }

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 | power-over-ethernet }

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

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

undo lldp tlv-enable dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power }

undo lldp tlv-enable med-tlv { all | capability | inventory | location-id [ civic-address | elin-address ] | network-policy | power-over-ethernet }

Parameters

Parameter

Description

Value

all

  • Indicates to advertise all types of TLVs when the device advertises basic TLVs, TLVs in the IEEE 802.1 format, and TLVs in the IEEE 802.3 format.
  • After the all parameter is specified, all MED TLVs except the Location Identification TLV are advertised.

-

basic-tlv

Indicates to advertise basic TLVs that include:
  • Management-address TLV
  • Port Description TLV
  • System Capabilities TLV
  • System Description TLV
  • System Name 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.

-

dot1-tlv

Indicates to advertise the TLVs in the IEEE 802.1 format that include:
  • Port VLAN TLV
  • Port protocol VLAN TLV
  • VLAN Name TLV
  • Protocol identity TLV

-

port-vlan-id

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

-

protocol-vlan-id [ vlan-id ]

Indicates to advertise port protocol VLAN 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.

-

dot3-tlv

Indicates to advertise the TLVs in the IEEE 802.3 format that include:
  • Link Aggregation TLV
  • MAC/PHY Configuration/Status TLV
  • Maximum Frame Size TLV
  • Power Via MDI TLV

-

link-aggregation

Indicates to advertise Link Aggregation TLV.

-

mac-physic

Indicates to advertise MAC/PHY Configuration/Status TLV.

-

max-frame-size

Indicates to advertise Maximum Frame Size TLV.

-

power

Indicates to advertise Power Via MDI TLV.

-

med-tlv

Indicates to advertise MED TLVs that include:
  • LLDP-MED Capabilities TLV
  • Inventory TLV
  • Location Identification TLV
  • Network Policy TLV
  • Extended Power-via-MDI 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.

network-policy

Advertises Network Policy TLV.

Network Policy TLV is used to exchange VLAN configurations between network devices and terminal devices. The device uses the TLV to advertise voice VLAN ID and voice stream priority to an IP phone. Then the IP phone forwards packets according to the received voice VLAN ID and priority, ensuring the voice quality.

-

power-over-ethernet

Advertises Extended Power via MDI TLV.

-

Views

GE interface view, MultiGE interface view, XGE 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. 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

The LLDP function is enabled globally and on interfaces.

Precautions

  • 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 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.

    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.

Example

# Configure GigabitEthernet0/0/1 to advertise the Link Aggregation TLV in the IEEE 802.3 format.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] lldp tlv-enable dot3-tlv link-aggregation
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 207345

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next