< Home

device-sensor lldp tlv

Function

The device-sensor lldp tlv command enables the LLDP-based terminal type awareness function.

The undo device-sensor lldp tlv command disables the LLDP-based terminal type awareness function.

By default, the LLDP-based terminal type awareness function is disabled.

Format

device-sensor lldp tlv tlv-type &<1-4>

undo device-sensor lldp tlv

Parameters

Parameter Description Value
tlv-type

Specifies the LLDP TLV type as the terminal type to be aware of the device.

The value is an integer that can be 1, 2, 5, 6, 7, 8, and 127. The values are as follows:
  • 1: Chassis ID TLV, indicating the bridge MAC address of the device
  • 2: Port ID TLV, indicating the port identifying the LLD PDU sending end
  • 5: System Name TLV, indicating the device name
  • 6: System Description TLV, indicating the system description
  • 7: System Capabilities TLV, indicating the system capabilities
  • 8: Management Address TLV, indicating the management address
  • 127: Organization Specific TLV, indicating the user-defined organization information

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A device usually connects to many types of terminals. You may need to assign different network access rights or packet processing priorities to the terminals of different types. For example, the voice devices, such as IP phones, should be assigned a high packet processing priority because voice signals require low delay and jitter.

Using the LLDP-based terminal type awareness function, the device parses the required TLV type containing terminal type information from the received LLDP packets. The device then sends the TLV type information to the RADIUS server through a RADIUS accounting packet. Through the TLV type information, the RADIUS server knows the terminal types and controls the network access rights and packet processing priorities of the terminals.

Precautions

  • The command takes effect only when the authentication or accounting mode in the AAA scheme is RADIUS.

  • The command takes effect only when the LLDP function is enabled on the device and the connected peer device.

Example

# Enable the terminal type awareness function based on LLDP TLV type 5.

<HUAWEI> system-view
[HUAWEI] device-sensor lldp tlv 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >