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

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
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 Configuration Commands

LLDP Configuration Commands

clear lldp neighbor

Function

The clear lldp neighbor command clears LLDP neighbor information about all interfaces or a specified interface.

Format

clear lldp neighbor [ interface interface-type interface-number ]

Parameters

Parameter Description Value
interface interface-type interface-number

Clears LLDP neighbor information about a specified interface.

If this parameter is not specified, LLDP neighbor information about all interfaces is cleared.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If you want to view LLDP neighbor information learned for a specified period of time or by a specified interface, you can run the clear lldp neighbor command to clear existing LLDP neighbor information about all interfaces or the specified interface.

Prerequisites

The lldp enable (system view) command has been run in the system view to globally enable LLDP and the undo lldp disable (interface view) command has been run in the interface view to enable LLDP for interfaces.

Example

# Clear existing LLDP neighbor information about all interfaces on a device.

<HUAWEI> clear lldp neighbor
Warning: This Command will clear the neighbor information of all the ports. Continue? [Y/N]:y

lldp mdn trap-interval

Function

The lldp mdn trap-interval command sets the delay for a device to send alarms about MDN neighbor information changes to the NMS.

The undo lldp mdn trap-interval command restores the default configuration.

By default, the delay for a device to send alarms about MDN neighbor information changes to the NMS is 5 seconds.

Format

lldp mdn trap-interval interval

undo lldp mdn trap-interval

Parameters

Parameter Description Value
interval Delay for a device to send alarms about CDP neighbor information changes to the NMS. The value is an integer ranging from 5 to 3600, in seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the MDN alarm function is enabled for a device, the device sends alarms to the NMS when MDN neighbor information changes. If MDN neighbor information changes frequently, the device frequently sends alarms to the NMS, causing network flapping.

You can run this command to set a delay for the device to send alarms about MDN neighbor information changes to the NMS. This command effectively prevents network flapping caused by alarms being frequently sent to the NMS.

Prerequisites

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

Configuration Impact

The delay for sending alarms about MDN neighbor information changes must be appropriate. You can adjust this parameter based on the load of a network in a timely manner.
  • The longer the delay, the lower the frequency of network flapping. However, if the delay for sending alarms about MDN neighbor information changes is too long, the NMS cannot trace neighbor status changes in a timely manner. As a result, the NMS cannot refresh the network topology in a timely manner.

  • The shorter the delay, the higher the frequency of network flapping. This helps the NMS to refresh the network topology in a timely manner. However, if the delay is too short, the NMS refreshes information about the neighbor status frequently. This causes network flapping, increases the load of the system, and wastes resources.

It is recommended that you use the default delay for sending alarms about MDN neighbor information changes unless otherwise noted.

Example

# Set the delay for a device to send alarms about MDN neighbor information changes to 6 seconds.

<HUAWEI> system-view
[~HUAWEI] lldp mdn trap-interval 6

display lldp mdn local

Function

The display lldp mdn local command displays MDN local information on a specified interface or all interfaces.

Format

display lldp mdn local [ interface interface-type interface-number ]

Parameters

Parameter Description Value
interface interface-type interface-number
Displays the MDN local information on a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If this parameter is not specified, the command displays MDN local information on all the interfaces.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To check MDN information on a specified interface or all interfaces, run the display cdp local information.

Prerequisites

LLDP has been enabled using the lldp enable (system view) command, and MDN has been enabled on interfaces using the lldp mdn enable (interface view) command.

Example

# Display MDN local information on all the interfaces.

<HUAWEI> display lldp mdn local 
System configuration
--------------------------------------------------------------------------  
MDN Notification Interval          :5                    (default is 5s)               
MDN Notification Enable            :enabled              (default is disable)       

Remote Table Statistics:
-------------------------------------------------------------------------- 
Remote Table Last Change Time      :0 days, 23 hours, 21 minutes, 37 seconds
Remote Neighbors Added             :0
Remote Neighbors Deleted           :0
Remote Neighbors Dropped           :0
Remote Neighbors Aged              :0
Total Neighbors                    :1

Port information:
--------------------------------------------------------------------------   
Interface 10GE1/0/1:
MDN Status                         :enabled      (default is disabled)            
Total Neighbors                    :1

Interface 10GE1/0/2:
MDN Status                         :enabled      (default is disabled)            
Total Neighbors                    :0
Table 18-39  Description of the display lldp mdn local command output

Item

Description

System configuration

MDN Notification Interval

Delay for sending alarms about MDN neighbor information changes.

The delay value can be changed using the lldp mdn trap-interval command.

MDN Notification Enable

Whether the alarm function about MDN neighbor information changes is enabled:
  • enabled
  • disabled

Remote Table Statistics

Remote Table Last Change Time

Time elapsed between last change in MDN neighbor statistics and the configuration of this command

Remote Neighbors Added

Number of increased MDN neighbors

Remote Neighbors Deleted

Number of deleted MDN neighbors

Remote Neighbors Dropped

Number of MDN neighbors that are deleted due to insufficient storage space

Remote Neighbors Aged

Number of MDN neighbors that are deleted due to information aging

Total Neighbors

Total number of MDN neighbors

Port information

MDN Status

Whether MDN is enabled on the local interface:
  • enabled
  • disabled

Total Neighbors

Total number of MDN neighbors on the local interface

display lldp mdn neighbor

Function

The display lldp mdn neighbor command displays information about MDN neighbors of all interfaces or a specified interface.

Format

display lldp mdn neighbor [ interface interface-type interface-number ]

Parameters

Parameter Description Value
interface interface-type interface-number
Displays information about MDN neighbors of a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
If this parameter is not specified, the command displays information about MDN neighbors of all interfaces.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

This command enables you to know which MDN neighbors the local device has, Layer 2 information about the neighbors, and to which interfaces the neighbors connect. You can also use this command to check whether the Layer 2 information is configured correctly on the neighbors.

Prerequisites

LLDP has been enabled globally using the lldp enable (system view) command, and MDN has been enabled on the specified interface using the lldp mdn enable (interface view) command.

Example

# Display information about MDN neighbors of all the interfaces.

<HUAWEI> display lldp mdn neighbor
10GE1/0/1 has 1 neighbor(s):
Neighbor index                     :1
MacAddress                         :0023-ea20-b010
Discovered time                    :2012-03-09 13:09:55
Table 18-40  Description of the display lldp mdn neighbor command output

Item

Description

Neighbor index

Index of an MDN neighbor.

MacAddress

MAC address of the MDN neighbor.

Discovered time

Time when the MDN neighbor was discovered.

display lldp mdn neighbor brief

Function

The display lldp mdn neighbor brief command displays brief information about MDN neighbors of the device.

Format

display lldp mdn neighbor brief

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To quickly check information about MDN neighbors, run the display cdp neighbor brief command.

Prerequisites

LLDP has been enabled globally using the lldp enable (system view) command, and MDN has been enabled on the specified interface using the lldp mdn enable (interface view) command.

Example

# Display brief information about MDN neighbors.

<HUAWEI> display lldp mdn neighbor brief
Local Interface                      Neighbor Mac Address
-------------------------------------------------------------------------------
10GE1/0/1                            0023-ea20-b010
Table 18-41  Description of the display lldp mdn neighbor brief command output

Item

Description

Local Interface

Local interface name.

Neighbor Mac Address

MAC address of the neighbor.

display lldp mdn statistics

Function

The display lldp mdn statistics command displays statistics about non-LLDP packets received by all interfaces or a specified interface on a device.

Format

display lldp mdn statistics [ interface interface-type interface-number ]

Parameters

Parameter Description Value
interface interface-type interface-number
Displays statistics about non-LLDP packets that a specified interface receives.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If this parameter is not specified, statistics about non-LLDP packets that all interfaces on the device receive are displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

In the failure scenario, to locate the fault based on statistics about non-LLDP packets that the device receives, run the display lldp mdn statistics command.

NOTE:
To view statistics about non-LLDP packets that a device receives during a specific period, run the reset lldp mdn statistics command to clear existing statistics about the non-LLDP packets. Then run the display lldp mdn statistics command after the specified time period expires.

Prerequisites

LLDP has been enabled using the lldp enable (system view) command, and MDN has been enabled on interfaces using the lldp mdn enable (interface view) command.

Example

# Display statistics about non-LLDP packets that all interfaces on the device receive.

<HUAWEI> display lldp mdn statistics
MDN statistics global Information:
Statistics for 10GE1/0/1:
Received Frames Total:       4060      
Frames Discarded Total:      0         
Frames Error Total:          0         
Last cleared Time:           never
Table 18-42  Description of the display lldp mdn statistics command output

Item

Description

MDN statistics global Information Statistics about non-LLDP packets that a device transmits.

Received Frames Total

Number of received non-LLDP packets.

Frames Discarded Total

Number of discarded non-LLDP packets.

Frames Error Total

Number of received error non-LLDP packets.

Last cleared Time

Time when the latest statistics about non-LLDP packets are cleared.

display lldp local

Function

The display lldp local command displays the global LLDP information or the LLDP information on a specified interface.

Format

display lldp local [ interface interface-type interface-number ]

Parameters

Parameter Description Value
interface interface-type interface-number
Specifies the interface type and number.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If no interface is specified, the command displays LLDP information on all the interfaces with LLDP enabled.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display lldp local command displays the global LLDP information or the LLDP information on an interface.
  • The global LLDP information includes system information, system configuration, and data statistics on the peer device.
  • The LLDP information on an interface includes the interface information.

To verify the LLDP information and Layer 2 information of the system and interfaces, run this command.

Prerequisites

The LLDP function has been enabled globally and on the specified interface.

Example

# Display the global LLDP information.

<HUAWEI> display lldp local

System information
--------------------------------------------------------------------------
Chassis type                       :MAC Address
Chassis ID                         :00c0-2017-7602
System name                        :SwitchA
System description                 :Huawei Versatile Routing Platform Software VRP (R) software, Version 8.150 (CE6850 V200R002C50)
Copyright (C) 2012-2017 Huawei Technologies Co., Ltd.
HUAWEI CE5850-48T4S2Q-EI

System capabilities supported      :bridge router
System capabilities enabled        :bridge router
LLDP Up time                       :2017/09/21 07:00:19

System configuration
--------------------------------------------------------------------------
LLDP Status                        :enabled              (default is disabled)
LLDP Message Tx Interval           :30                   (default is 30s)
LLDP Message Tx Hold Multiplier    :4                    (default is 4)
LLDP Refresh Delay                 :2                    (default is 2s)
LLDP Tx Delay                      :2                    (default is 2s)
LLDP Notification Interval         :5                    (default is 5s)
LLDP Notification Enable           :enabled              (default is enabled)
Management Address                 :IPv4: 10.10.10.2
LLDP Fast Message Count            :4                    (default is 4)

Remote Table Statistics:
--------------------------------------------------------------------------
Remote Table Last Change Time      :12 days,3 hours, 45 minutes,33 seconds
Remote Neighbors Added             :3
Remote Neighbors Deleted           :0
Remote Neighbors Dropped           :0
Remote Neighbors Aged              :2
Total Neighbors                    :1

Port information:
--------------------------------------------------------------------------
Interface 10GE1/0/1:
LLDP Enable Status                 :txAndRx              (default is disabled)

Total Neighbors                    :1

Port ID subtype                    :Interface Name
Port ID                            :10GE1/0/1
Port description                   :

Port and Protocol VLAN ID(PPVID)   :unsupported
Port VLAN ID(PVID)                 :100
VLAN name of VLAN 100              :VLAN100
Protocol identity                  :STP RSTP/MSTP LACP EthOAM
Auto-negotiation supported         :No
Auto-negotiation enabled           :No
OperMau                            :speed (10000) /duplex (Full)
Link aggregation supported         :Yes
Link aggregation enabled           :No
Aggregation port ID                :0
Maximum frame Size                 :9216

EEE support                        :No
Transmit Tw                        :65535
Receive Tw                         :65535
Fallback Receive Tw                :0
Echo Transmit Tw                   :0
Echo Receive Tw                    :0
  ---- More ----
Table 18-43  Description of the display lldp local command output.

Item

Description

System information

System information.

Chassis type

Device ID sub-type:
  • Chassis Component: chassis alias
  • Interface Alias: interface alias
  • Port Component: interface or backplane alias
  • MAC Address: MAC address
  • Network Address: network address
  • Interface Name: name of the interface
  • Local: name of the local device

Chassis ID

Device ID.

System name

Name of the device.

System description

Device description.

System capabilities supported

Capabilities supported by the local device (at least one capability is supported):
  • repeater: repeater
  • bridge: bridge device
  • wlanAccessPoint: wireless access point
  • router: router
  • telephone: wireless device
  • docsisCableDevice: management station
  • stationOnly: base station
  • other: other capabilities

System capabilities enabled

Capabilities enabled on the local device (This field is a subset of the system capabilities supported field, and at least one capability must be enabled).
  • repeater: repeater
  • bridge: bridge device
  • wlanAccessPoint: wireless access point
  • router: router
  • telephone: wireless device
  • docsisCableDevice: management station
  • stationOnly: base station
  • other: other capabilities

LLDP Up time

Time when LLDP is enabled.

System configuration

System configuration information.

LLDP Status

LLDP status:
  • enabled
  • disabled

This parameter is configured using the lldp enable (system view) command.

LLDP Message Tx Interval

Interval for sending LLDP packets.

This parameter is configured using the lldp transmit interval command.

LLDP Message Tx Hold Multiplier

Multiplier of the period in which the message is held.

This parameter is configured using the lldp transmit multiplier command.

LLDP Refresh Delay

Delay in re-initializing the LLDP module.

This parameter is configured using the lldp restart command.

LLDP Tx Delay

Delay in sending the LLDP packets.

This parameter is configured using the lldp transmit delay command.

LLDP Notification Interval

Delay in sending the notification after the remote information changes.

This parameter is configured using the lldp trap-interval command.

LLDP Notification Enable

Status of the notification function.
  • enabled
  • disabled

Management Address

Management address.

This parameter is configured using the lldp management-address command.

LLDP Fast Message Count

Number of fast messages sent by local device.

This parameter is configured using the lldp fast-count command.

Remote Table Statistics

Remote data statistics.

Remote Table Last Change Time

Time that elapsed since the latest modification of remote data.

Remote Neighbors Added

Number of added remote neighbors.

Remote Neighbors Deleted

Number of deleted remote neighbors.

Remote Neighbors Dropped

Number of packets discarded after the buffer is used up.

Remote Neighbors Aged

Number of neighbors that are aged out and deleted.

Total Neighbors

Number of remote neighbors.

Port information

Interface information.

LLDP Enable Status

LLDP status:
  • txOnly: LLDP packets can only be sent.
  • rxOnly: LLDP packets can only be received.
  • txAndRx: LLDP packets can be sent and received.
  • disabled: LLDP is disabled.

Total Neighbors

Number of remote neighbors.

Port ID subtype

Subtypes of a port ID.
  • Interface Alias: interface alias
  • Port Component: interface or backplane alias
  • MAC Address: MAC address
  • Network Address: network address
  • Interface Name: name of the interface
  • Agent Circuit Id: circuit ID of the DHCP agent
  • Local: name of the local device

Port ID

Interface ID.

Port description

Interface description.

Port and Protocol VLAN ID(PPVID)

Protocol VLAN ID of an interface.

Port VLAN ID(PVID)

VLAN ID of an interface.

VLAN name of VLAN 100

Name of VLAN 100.

Protocol identity

Protocol ID.

Auto-negotiation supported

Whether the interface supports auto-negotiation:
  • Yes
  • No

Auto-negotiation enabled

Whether the interface is enabled with auto-negotiation:
  • Yes: enabled
  • No: disabled

OperMau

Auto-sensing rate and duplex mode of the interface.

Link aggregation supported

Whether the interface supports link aggregation.

  • Yes
  • No

Link aggregation enabled

Whether link aggregation is enabled on the interface.

  • Yes: enabled
  • No: disabled

Aggregation port ID

ID of an aggregated interface, If link aggregation is disabled, the value of this field is 0.

Maximum frame Size

Maximum size of a frame supported by the interface.

EEE support

Whether the interface supports energy efficient Ethernet (EEE).

  • Yes
  • No

Transmit Tw

Amount of time the sender waits before starting sending data after leaving LPI mode.

Receive Tw

Amount of time the receiver expects the sender to wait before starting sending data after leaving LPI mode.

Fallback Receive Tw

Additional information provided to the sender, which may be used for more effective configuration.

Echo Transmit Tw

Transmit Tw value specified in the Echo message sent from the remote end.

Echo Receive Tw

Receive Tw value specified in the Echo message sent from the remote end.

display lldp neighbor

Function

The display lldp neighbor command displays information about neighboring device of all interfaces or a specified interface.

Format

display lldp neighbor [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Specifies the interface type and number.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If no interface is specified, the command displays information about neighboring devices of all interfaces with LLDP enabled.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

Using this command, you can know which neighboring devices are connected to the local device, to which interfaces the neighboring devices are connected, layer 2 information about the neighbors, and whether LLDP configuration is correct.

Prerequisites

The LLDP function has been enabled globally and on the specified interface.

Example

# Display information about neighboring devices of interface 10GE1/0/1.

<HUAWEI> display lldp neighbor interface 10ge 1/0/1
10GE1/0/1 has 1 neighbor(s):

Neighbor index                     :1
Chassis type                       :MAC Address
Chassis ID                         :0025-9e95-7c20
Port ID subtype                    :Interface Name
Port ID                            :10GE1/0/1
Port description                   :HUAWEI, CloudEngine Series, 10GE1/0/1 Interface
System name                        :SwitchB
System description                 :Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.150 (CE6850 V200R003C00SPC200)
Copyright (C) 2012-2017 Huawei Technologies Co., Ltd.
HUAWEI CE6850

System capabilities supported      :bridge router 
System capabilities enabled        :bridge router 
Management address type            :IPv4
Management address                 :10.10.10.2
Expired time                       :111s

Port VLAN ID(PVID)                 :100
Port and Protocol VLAN ID(PPVID)   :unsupported
VLAN name of VLAN 100              :VLAN100
Protocol identity                  :--
Auto-negotiation supported         :No
Auto-negotiation enabled           :No
OperMau                            :speed (0) /duplex (Unknown)
Link aggregation supported         :Yes
Link aggregation enabled           :No
Aggregation port ID                :0
Maximum frame Size                 :9216
Discovered time                    :2017-04-05 23:15:17

EEE support                        :No
Transmit Tw                        :65535
Receive Tw                         :65535
Fallback Receive Tw                :0
Echo Transmit Tw                   :0
Echo Receive Tw                    :0

Network Card ID                    :--
Table 18-44  Description of the display lldp neighbor command output

Item

Description

Neighbor index

Index of a neighbor.

Chassis type

ID sub-types of a neighboring device:
  • Chassis Component: chassis alias
  • Interface Alias: interface alias
  • Port Component: interface or backplane alias
  • MAC Address: MAC address
  • Network Address: network address
  • Interface Name: name of the interface
  • Local: name of the local device

Chassis ID

ID of a neighboring device.

Port ID subtype

ID sub-type of a neighboring interface:
  • Interface Alias: interface alias
  • Port Component: interface or backplane alias
  • MAC Address: MAC address
  • Network Address: network address
  • Interface Name: name of the interface
  • Agent Circuit Id: circuit ID of the DHCP agent
  • Local: name of the local device

Port ID

ID of a neighbor interface.

Port description

Description of a neighboring interface.

System name

System name of a neighboring device.

System description

Description of a neighboring device.

System capabilities supported

Capabilities of a neighboring device (at least one capability is supported):
  • other: other capabilities
  • repeater: repeater
  • bridge: bridge device
  • wlanAccessPoint: wireless access point
  • router: router
  • telephone: wireless device
  • docsisCableDevice: management station
  • stationOnly: base station

System capabilities enabled

Capabilities enabled on a neighboring device (This field is a subset of the system capabilities supported field, and at least one capability must be enabled).
  • other: other capabilities
  • repeater: repeater
  • bridge: bridge device
  • wlanAccessPoint: wireless access point
  • router: router
  • telephone: wireless device
  • docsisCableDevice: management station
  • stationOnly: base station

Management address type

Type of the management address.

Management address

Management address of a neighbor.

Expired time

Aging time of a neighbor.

Port VLAN ID(PVID)

VLAN ID of an interface.

Port and Protocol VLAN ID(PPVID)

Protocol VLAN ID of a neighbor interface.

VLAN name of VLAN 100

Name of VLAN 100.

Protocol identity

Protocol ID.

Auto-negotiation supported

Whether the interface supports auto-negotiation.

Auto-negotiation enabled

Whether the interface is enabled with auto-negotiation.

OperMau

Transmission rate and duplex mode of the interface.

Link aggregation supported

Whether link aggregation is supported on the interface.

Link aggregation enabled

Whether link aggregation is enabled on the interface.

Aggregation port ID

ID of an aggregated interface, If link aggregation is disabled, the value of this field is 0.

Maximum frame Size

Maximum size of a frame supported by the interface.

Discovered time

Time when a neighboring device was discovered.

EEE support

Whether the interface supports energy efficient Ethernet (EEE).

Transmit Tw

Amount of time the sender waits before starting sending data after leaving LPI mode.

Receive Tw

Amount of time the receiver expects the sender to wait before starting sending data after leaving LPI mode.

Fallback Receive Tw

Additional information provided to the sender, which may be used for more effective configuration.

Echo Transmit Tw

Transmit Tw value specified in the Echo message sent from the remote end.

Echo Receive Tw

Receive Tw value specified in the Echo message sent from the remote end.

display lldp neighbor brief

Function

The display lldp neighbor brief command displays brief information about neighbors of the device.

Format

display lldp neighbor brief

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To quickly view the neighbors of the local device and the interfaces connected to neighbors, run this command.

Prerequisites

The LLDP function has been enabled globally.

Example

# Display information about neighbor devices.

<HUAWEI> display lldp neighbor brief
Local Interface         Exptime(s) Neighbor Interface      Neighbor Device      
------------------------------------------------------------------------------- 
10GE4/0/1                     111  10GE4/0/25              HUAWEI      
Table 18-45  Description of the display lldp neighbor brief command output

Item

Description

Local Interface

Local interface.

Neighbor Device

Name of neighbor device.

Neighbor Interface

Neighboring interface.

Exptime (s)

Aging time of a neighbor, in seconds.

display lldp statistics

Function

The display lldp statistics command displays statistics about LLDP packets sent and received by all or a specified interface.

Format

display lldp statistics [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays statistics about LLDP packet sent and received by a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If no interface is specified, the command displays statistics about LLDP packets on all interfaces.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display lldp statistics command displays the statistics about sent and received LLDP packets.

To display the LLDP packet statistics within a specified period of time, run the reset lldp statistics command to clear the existing statistics first, and then run the display lldp statistics command to display the new statistics.

Prerequisites

The LLDP function has been enabled globally and on interfaces.

Precautions

If the LLDP function is enabled globally but disabled on an interface, the packet statistics on the interface are 0.

Example

# Display the statistics about sent and received LLDP packets on all interfaces.
<HUAWEI> display lldp statistics
LLDP statistics global Information:                                             
Statistics for 10GE1/0/1:                                            
  Sent Frames            :5
  Received Frames        :5               Frames Discarded    :0
  Frames Error           :0               TLVs Discarded      :0
  TLVs Unrecognized      :0               Neighbors Expired   :0
  DCBX TLVs Transmitted  :0               DCBX TLVs Received  :0
  NetCardID TLVs Received:0
Last Cleared Time      :never                                     
Table 18-46  Description of the display lldp statistics command output

Item

Description

Sent Frames

Number of sent LLDP packets.

Received Frames

Number of received LLDP packets.

Frames Discarded

Number of discarded LLDP packets.

Frames Error

Number of received errored LLDP packets.

TLVs Discarded

Number of discarded TLVs.

TLVs Unrecognized

Number of unknown TLVs.

Neighbors Expired

Number of aged-out neighbors.

DCBX TLVs Transmitted

Number of sent DCBX TLVs.

DCBX TLVs Received

Number of received DCBX TLVs.

NetCardID TLVs Received

Number of received NIC ID TLVs.

Last Cleared Time

Time when the LLDP packet statistics were cleared last time.

display lldp tlv-config

Function

The display lldp tlv-config command displays TLVs that can be sent with LLDP packets on all or a specified interface.

Format

display lldp tlv-config [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Specifies the interface type and number.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If no interface is specified, the command displays TLVs on all interfaces.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display lldp tlv-config command displays the TLVs supported by the specified interface or all interfaces. You can run this command to know whether the required TLVs are enabled and unneeded TLVs are deleted.

Prerequisites

The LLDP function has been enabled globally and on interfaces.

Example

# Display TLVs that can be sent with LLDP packets on 10GE1/0/1.

<HUAWEI> display lldp tlv-config interface 10ge 1/0/1
LLDP tlv-config of port [10GE1/0/1]:
-----------------------------------------------------
Name                                Status    Default
-----------------------------------------------------

Basic optional TLV:
----------------------------------
Port Description TLV                Yes       Yes
System Name TLV                     Yes       Yes
System Description TLV              Yes       Yes
System Capabilities TLV             Yes       Yes
Management Address TLV              Yes       Yes

IEEE 802.1 extend TLV:
----------------------------------
Port VLAN ID TLV                    Yes       Yes
Port And Protocol VLAN ID TLV       Yes       Yes
VLAN Name TLV                       Yes       Yes
Protocol Identity TLV               No        No

IEEE 802.3 extend TLV:
----------------------------------
MAC-Physic TLV                      Yes       Yes
Link Aggregation TLV                Yes       Yes
Maximum Frame Size TLV              Yes       Yes
EEE TLV                             Yes       Yes
DCBX TLV                            No        No
Table 18-47  Description of the display lldp tlv-config command output
Item Description
Name Type of TLV.
Status Whether the interface is configured to send the TLVs of the specified type.
Default Whether the TLVs of the specified types are sent on an interface by default.
Basic optional TLV Basic TLVs that can be sent on an interface.
Port Description TLV Interface description TLV.
System Name TLV System name TLV.
System Description TLV System description TLV.
System Capabilities TLV TLV indicating the system capability set.
Management Address TLV Management address TLV.
IEEE 802.1 extend TLV Type of the IEEE 802.1 organizational-specific TLVs that can be sent on an interface.
Port VLAN ID TLV PVID TLV.
Port And Protocol VLAN ID TLV Port and protocol VLAN ID TLV.
VLAN Name TLV VLAN name TLV.
Protocol Identity TLV Protocol ID TLV.
IEEE 802.3 extend TLV IEEE 802.3 organizational-specific TLVs that can be sent on an interface.
MAC-Physic TLV TLV indicating physical attributes of an interface.
Link Aggregation TLV Link aggregation TLV.
Maximum Frame Size TLV Maximum frame length TLV.
EEE TLV EEE capability TLV.
DCBX TLV DCBX switching capability TLV.

display snmp-agent trap feature-name lldp all

Function

The display snmp-agent trap feature-name lldp all command displays all trap messages of the LLDP module.

Format

display snmp-agent trap feature-name lldp all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The Simple Network Management Protocol (SNMP) is a standard network management protocol widely used on TCP/IP networks. It uses a central computer (a network management station) that runs network management software to manage network elements. The management agent on the network element automatically reports traps to the network management station. The network administrator then immediately takes measures to resolve the problem.

The display snmp-agent trap feature-name lldp all command displays whether all trap functions of the LLDP module are enabled.

Prerequisites

After running the snmp-agent trap enable feature-name lldp command to enable or disable a trap function of the LLDP module, run the display snmp-agent trap feature-name lldp all command to check the status of all trap functions of the LLDP module.

Example

# Display all trap messages of the LLDP module.

<HUAWEI>display snmp-agent trap feature-name lldp all
------------------------------------------------------------------------------
Feature name: LLDP
Trap number : 2
------------------------------------------------------------------------------
Trap name                      Default switch status   Current switch status  
hwLldpMdnRemTablesChange       off                     off                    
lldpRemTablesChange            on                      on                
Table 18-48  Description of the display snmp-agent trap feature-name lldp all command output

Item

Description

Feature name

Name of the module to which a trap message belongs.

Trap number

Number of trap messages.

Trap name

Name of a trap message of the LLDP module:

  • hwLldpMdnRemTablesChange: indicates that the Huawei proprietary trap sent when MDN neighbor information changes.
  • lldpRemTablesChange: indicates that the trap sent when LLDP neighbor information changes.

Default switch status

Status of the default trap switch:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

Current switch status

Status of the current trap switch:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

lldp admin-status

Function

The lldp admin-status command configures an LLDP working mode for an interface, or enables LLDP and configures an LLDP working mode for an LLDP-disabled interface.

The undo lldp admin-status command restores the default LLDP working mode for an interface.

By default, the LLDP working mode of an interface is TX/RX, meaning that the interface both sends and receives LLDP packets.

Format

lldp admin-status { tx | rx | txrx }

undo lldp admin-status

Parameters

Parameter Description Value
tx Indicates the LLDP TX mode, meaning that an interface only sends LLDP packets. -
rx Indicates the LLDP RX mode, meaning that an interface only receives LLDP packets. -
txrx Indicates the LLDP TX/RX mode, meaning that an interface both sends and receives LLDP packets. -

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After LLDP is enabled globally,
  • If LLDP is enabled on an interface, you can run the lldp admin-status command to configure an LLDP working mode for the interface.
  • If LLDP is disabled on an interface, you can run the lldp admin-status command to enable LLDP and configure an LLDP working mode for the interface.
This configuration allows the interface to work only in the specified mode, reducing the number of LLDP packets exchanged on the network. Therefore, the system load is reduced, and other services are not affected.

Prerequisites

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

Example

# Configure the LLDP working mode TX on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] lldp admin-status tx

lldp mdn disable

Function

The lldp mdn disable command disables MAC address discovery neighbor (MDN) on an interface.

The undo lldp mdn disable command enables MDN on an interface.

By default, MDN is disabled on an interface.

Format

lldp mdn disable

undo lldp mdn disable

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After MDN is enabled globally, all interfaces on the device can receive non-LLDP packets. MDN allows the device to uniquely identify MDN neighbors based on the source MAC addresses carried in the packets. This increases system resource consumption, and services are affected. In such a case, you can run the lldp mdn disable command to disable MDN on a specified interface.

Prerequisites

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

Configuration Impact

After MDN is disabled on an interface, the interface cannot receive non-LLDP packets, and the device cannot discover MDN neighbors. The device cannot detect the network topology.

Precautions

To re-enable MDN on a specified interface, run the undo lldp mdn disable or lldp mdn enable (interface view) command. The difference between these two command lines is as follows:
  • After the undo lldp mdn disable command is executed, the interface uses the global MDN configuration.
  • After the lldp mdn enable (interface view) command is executed, the MDN configuration on the interface takes effect.

Example

# Disable MDN on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] lldp mdn disable

lldp mdn enable (interface view)

Function

The lldp mdn enable command enables MDN on an interface.

The undo lldp mdn enable command disables MDN on an interface.

By default, MDN is disabled on an interface.

Format

lldp mdn enable

undo lldp mdn enable

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Neighbors may use other proprietary protocols but LLDP. To ensure that the local device can discover and identify the neighbors, you can use this command to enable MDN. After MDN is enabled, the device can receive packets of other proprietary protocols sent form the neighbors and identify these neighbors based on the MAC addresses carried in the packets.

Prerequisites

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

Precautions

MDN employs exact matching rules.
  • If MDN is configured on an interface and globally, MDN configuration on the interface takes effect.
  • If MDN is not configured on the interface, the interface uses the global MDN configuration.
  • If MDN is not configured globally, the MDN configuration on the interface takes effect.
If MDN is configured on the interface and globally, run the undo lldp mdn enable command on the interface. The interface uses the global MDN configuration. MDN is still enabled on this interface. You can run the lldp mdn disable command to disable MDN on this interface.

Example

# Enable MDN on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] lldp mdn enable

lldp mdn enable (system view)

Function

The lldp mdn enable command enables MDN globally.

The undo lldp mdn enable command disables MDN globally.

By default, MDN is disabled globally.

Format

lldp mdn enable

undo lldp mdn enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Neighbors may use other proprietary protocols but LLDP. To ensure that the local device can discover and identify the neighbors, you can use this command to enable MDN. After MDN is enabled, the device can receive packets of other proprietary protocols sent form the neighbors and identify these neighbors based on the MAC addresses carried in the packets.

Prerequisites

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

Precautions

After MDN is enabled globally, all interfaces on the device can receive packets of other proprietary protocols sent form the neighbors and identify these neighbors based on the MAC addresses carried in the packets. This increases system resource consumption, and services are affected. In such a case, you can run the lldp mdn disable command to disable MDN on a specified interface.

Example

# Enable MDN globally.

<HUAWEI> system-view
[~HUAWEI] lldp mdn enable

lldp disable (interface view)

Function

The lldp disable command disables LLDP on an interface.

The undo lldp disable command enables LLDP on an interface.

After LLDP is enabled in the system view, all interfaces are enabled with LLDP.

Format

lldp disable

undo lldp disable

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After LLDP is enabled on an interface, the interface exchanges LLDP packets with LLDP-enabled neighbors. The interface receives status information from the neighbors and sends the local status information to the neighbors. The NMS then obtains the status information for topology discovery.

Prerequisites

The LLDP function has been enabled globally.

Precautions

LLDP can be enabled in the system view and the interface view.
  • After LLDP is enabled in the system view, all interfaces are enabled with LLDP.
  • After LLDP is disabled in the system view, all LLDP settings are restored to the default settings except the setting of LLDP trap. Therefore, LLDP is also disabled on all interfaces.
  • An interface can send and receive LLDP packets only after LLDP is enabled in both the system view and the interface view.
  • After LLDP is disabled globally, the commands for enabling and disabling LLDP on an interface do not take effect.
  • If LLDP needs to be disabled on some interfaces, enable LLDP globally first, and run the lldp disable command on these interfaces. To re-enable LLDP on these interfaces, run the undo lldp disable command in the views of these interfaces.
NOTE:
  • LLDP can be enabled and disabled only on the physical interfaces, but cannot be used on logical interfaces such as VLANIF interface and Eth-Trunk.
  • On an Eth-Trunk, LLDP can only be enabled on member interfaces. The interfaces enabled with LLDP and not enabled with LLDP can exist in the same Eth-Trunk.

Example

# Disable LLDP on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] lldp disable

lldp enable (system view)

Function

The lldp enable command enables LLDP globally.

The undo lldp enable command disables LLDP globally.

By default, LLDP is disabled globally.

Format

lldp enable

undo lldp enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To view the Layer 2 link status or analyze network topology, run the lldp enable command.

Configuration Impact

After LLDP is enabled globally, the device sends its own status information to LLDP-enabled neighbors and receives the status information from the neighbors.

Precautions

The interval between enabling LLDP globally and disabling LLDP cannot be shorter than 10 seconds; otherwise, an error message is displayed.

LLDP can be enabled in the system view and the interface view.
  • After LLDP is enabled in the system view, all interfaces are enabled with LLDP.
  • After LLDP is disabled in the system view, all LLDP settings are restored to the default settings except the setting of LLDP trap. Therefore, LLDP is also disabled on all interfaces.
  • An interface can send and receive LLDP packets only after LLDP is enabled in both the system view and the interface view.
  • After LLDP is disabled globally, the commands for enabling and disabling LLDP on an interface do not take effect.

Example

# Enable LLDP globally.

<HUAWEI> system-view
[~HUAWEI] lldp enable
Info: Global LLDP is enabled successfully.

# Disable LLDP globally.

<HUAWEI> system-view
[~HUAWEI] undo lldp enable
Warning: This command will delete the configurations of LLDP on all the ports.Continue?[Y/N]:y
Info: Global LLDP is disabled successfully.

lldp fast-count

Function

The lldp fast-count command sets the number of LLDP packets quickly sent by the device to its neighbors.

The undo lldp fast-count command restores the number of LLDP packets quickly sent by the device to its neighbors.

By default, the device quickly sends four LLDP packets to the neighbor.

Format

lldp fast-count count

undo lldp fast-count

Parameters

Parameter Description Value
count

Specifies the number of LLDP packets quickly sent by the device to its neighbors.

The value is an integer ranging from 1 to 8.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the device discovers a neighbor, LLDP status changes from disabled to enabled on the device, or the status of interfaces on the device changes from Down to Up, the device quickly sends a specified number of LLDP packets to the neighbor to notify it of local device information.

To set the number of LLDP packets quickly sent from the device to its neighbors, run this command. The neighbors can quickly obtain status information of the local device, facilitating the layout of the network topology.

Prerequisites

The LLDP function has been enabled globally using the lldp enable (interface view) command.

Precautions

The device sends one LLDP packet to the neighbor per second without any delay. After sending the specified number of LLDP packets to its neighbors, the device sends LLDP packets to its neighbors at the interval set in the lldp transmit interval command.

NOTE:
The interval at which the device sends LLDP packets to the neighbors is set in the lldp transmit delay. You can extend the delay to prevent the device from frequently sending LLDP packets to the neighbors, which suppresses the network topology flapping.

Example

# Set the number of LLDP packets quickly sent by the device to its neighbors to 5.

<HUAWEI> system-view
[~HUAWEI] lldp fast-count 5

lldp management-address

Function

The lldp management-address command configures the LLDP management IP address.

The undo lldp management-address command restores the default setting.

By default, the system automatically obtains the management IP address.

Format

lldp management-address ip-address

undo lldp management-address

Parameters

Parameter

Description

Value

ip-address

Specifies the management IP address.

The value is in dotted decimal notation, and cannot be 0.0.0.0.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The management IP address is carried in the management address TLV field of the LLDP packet. It is used by the NMS to identify and manage devices. A management address identifies a device, facilitating the layout of the network topology and network management. To allocate a management address to a neighbor, run the lldp management-address command.

Prerequisites

The LLDP function has been enabled globally.

Configuration Impact

After the configuration, the management IP address is added to the management address TLV field of the LLDP packet. The NMS then identifies the device according to the management IP address.

Precautions

If no management IP address is configured, the system sets an IP address in the address list as the management IP address. The system selects the IP address in the following sequence: loopback interface address management port address, and VLANIF interface address. Among the IP addresses of the same type, the system selects the smallest one. If the system does not find a management IP address, the bridge MAC address is used as the management IP address.

Example

# Set the LLDP management IP address to 10.10.10.1.

<HUAWEI> system-view
[~HUAWEI] lldp management-address 10.10.10.1

lldp management-address bind

Function

The lldp management-address bind command binds the LLDP management address to an interface.

The undo lldp management-address bind command unbinds the LLDP management address from an interface.

By default, the LLDP management address is not bound to any interface.

Format

lldp management-address bind interface interface-type interface-number

undo lldp management-address bind

Parameters

Parameter Description Value
interface interface-type interface-number Specifies the interface to be bound to the LLDP management address.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The LLDP management address is carried in the Management Address TLV field in LLDP packets. It is used by the NMS to identify a device and implement network management. If you want to specify the IP address of an interface as the LLDP management address, run the lldp management-address bind command to bind the LLDP management address to the interface.

After the LLDP management address is bound to the interface, the device uses the interface's IP address as the management address, if no management address has been configured using the lldp management-address command.

Prerequisites

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

The interface to be bound to the LLDP management address must be a Layer 3 interface. Otherwise, the binding does not take effect.

Precautions

The LLDP management address is selected based on the following principles:
  1. If the LLDP management address has been configured using the lldp management-address command, the device uses this LLDP management address.
  2. If no LLDP management address has been configured using the lldp management-address command, but the management address is bound to an interface, the devices uses the interface's IP address as the LLDP management address.
  3. If no LLDP management address has been configured using the lldp management-address command, and the management address is not bound to any interface, the device searches the IP address list and automatically specifies an IP address as the LLDP management address. If no default IP address is available, the device uses the bridge MAC address as the LLDP management address.
    NOTE:
    The device searches IP addresses of the following interfaces in sequence for the LLDP management address: Loopback interface, management network interface, and VLANIF interface. The device selects the smallest IP address of the same type of interface as the LLDP management address.

Example

# Bind the LLDP management address to VLANIF100.

<HUAWEI> system-view
[~HUAWEI] lldp management-address bind interface vlanif 100

lldp transmit delay

Function

The lldp transmit delay command sets the LLDP packet transmission delay.

The undo lldp transmit delay command restores the default LLDP packet transmission delay.

By default, the LLDP packet transmission delay is 2 seconds.

Format

lldp transmit delay delay

undo lldp transmit delay

Parameters

Parameter

Description

Value

delay

Specifies the LLDP packet transmission delay.

The value is an integer ranging from 1 to 8192, in seconds. The default value is 2 seconds.

The delay value depends on the interval value in lldp transmit interval. The delay value must be equal to or smaller than a quarter of the interval value.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

There is a delay before the interface sends an LLDP packet to the neighbor when the device status changes frequently. After the LLDP packet transmission delay is set on the device, the LLDP-enabled interfaces send LLDP packets to neighbors after a delay (the delay is the same as or longer than the delay you specified). The interfaces may send LLDP packets at different time points.

If the device status changes frequently, extend the delay in preventing the device from frequently sending packets to the neighbors. A delay suppresses the network topology flapping.

Prerequisites

The LLDP function has been enabled globally.

Configuration Impact

The LLDP packet transmission delay must be set properly and adjusted according to network loads.

  • A large value reduces the LLDP packet transmission frequency when the local device status frequently changes. This helps save system resources. However, if the value is too large, the device cannot notify neighbors of its status in a timely manner, and the NMS cannot discover the network topology changes in real time.
  • A small value increases the LLDP packet transmission frequency and enables the NMS to discover network topology changes in real time when the local device status frequently changes. However, if the value is too small, LLDP packets are exchanged frequently, increasing the system load.
  • The default value is recommended.

Precautions

Consider the value of interval when adjusting the value of delay because it is restricted by the value of interval.
  • The value of delay ranges from 1 to 8192.
  • The value of delay must be less than or equal to a quarter of interval. Therefore, if you want to set delay to be greater than a quarter of interval, first increase the interval value to four times the new delay value, and then increase the delay value.
NOTE:

If the interval value is smaller than four times the delay value, the system displays an error message when you run the undo lldp transmit delay command. To run the undo lldp transmit delay command in this case, increase the interval value to at least four times the delay value first.

Example

# Set the LLDP packet transmission delay to 5 seconds.

<HUAWEI> system-view
[~HUAWEI] lldp transmit delay 5

lldp transmit multiplier

Function

The lldp transmit multiplier command sets the hold time multiplier of device information stored on neighbors.

The undo lldp transmit multiplier command restores the default hold time multiplier of device information stored on neighbors.

The default hold time multiplier is 4.

Format

lldp transmit multiplier hold

undo lldp transmit multiplier

Parameters

Parameter

Description

Value

hold

Specifies the hold time multiplier of device information on neighbors.

The value is an integer ranging from 2 to 10. The default value is 4.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The time multiplier is used to calculate how long a packet can be saved on a neighboring node. After receiving an LLDP packet, a neighbor updates the aging time of the device information from the sender based on the TTL.

The storage time calculation formula is: TTL = Min (65535, (interval x hold)).

TTL is the device information storage time. It is the smaller value between 65535 and (interval x hold).

interval indicates the interval at which the device sends LLDP packets to neighbors. This parameter is set by lldp transmit interval. hold indicates the hold time multiplier of device information on neighbors.

After the LLDP function is disabled on the device, its neighbors wait until the TTL of the device information expires, and then delete the device information. This prevents network topology flapping.

Prerequisites

The LLDP function has been enabled globally.

Configuration Impact

The hold time multiplier of device information on neighbors must be set to a proper value.
  • A large value of hold prevents network topology flapping. However, if the value is too large, the device cannot notify neighbors of its status in a timely manner, and the NMS cannot discover the network topology changes in real time.
  • A small value of hold enables the NMS to discover topology change in time. However, if the value is too small, the neighbors update device information too frequently. This increases the load on the system and wastes resources.
  • The default value is recommended.

Example

# Set the hold time multiplier of device information on neighbors to 5.

<HUAWEI> system-view
[~HUAWEI] lldp transmit multiplier 5

lldp transmit interval

Function

The lldp transmit interval command sets the global LLDP transmission interval.

The undo lldp transmit interval command restores the default global LLDP transmission interval.

The default global LLDP transmission interval is 30 seconds.

Format

lldp transmit interval interval

undo lldp transmit interval

Parameters

Parameter

Description

Value

interval

Specifies the global LLDP transmission interval.

The value is an integer ranging from 5 to 32768, in seconds. The default value is 30 seconds.

The interval value depends on the delay value in lldp transmit delay. The value of interval must be greater than or equal to four times the value of delay. Otherwise, an error occurs in the configuration.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the LLDP status of the device keeps unchanged or the device does not discover new neighbors, the interface sends LLDP packets to the neighbors at a certain interval. After the LLDP transmission interval is set on the device, the LLDP enabled interfaces send LLDP packets to neighbors at this interval. The interfaces may send LLDP packets at different time points.

If you want to change the network topology detection frequency, run the lldp transmit interval command to change the LLDP transmission interval.

Prerequisites

The LLDP function has been enabled globally.

Configuration Impact

The global LLDP transmission interval must be set properly and adjusted according to network loads.
  • A large value reduces the LLDP packet transmission frequency. This helps save system resources. However, if the value is too large, the device cannot notify neighbors of its status in a timely manner, and the NMS cannot discover the network topology changes in real time.
  • A short interval increases the LLDP packet transmission frequency and enables the NMS to discover network topology changes in real time. However, if the interval is too short, LLDP packets are exchanged frequently, increasing the system load.
  • The default value is recommended.

Precautions

Consider the value of delay when adjusting the value of interval because it is restricted by the value of delay.
  • The value of interval ranges from 5 to 32768.
  • The value of interval must be greater than or equal to four times the value of delay. Therefore, if you want to set interval to be smaller than four times the value of delay, first reduce the delay value to be equal to or smaller than a quarter of the new interval value, and then reduce the interval value.
NOTE:

If the delay value is greater than a quarter of the interval value, the system displays an error message when you run the undo lldp transmit interval command. To run the undo lldp transmit interval command in this case, reduce the delay value to be equal to or smaller than a quarter of interval first.

Example

# Set the global LLDP transmission interval to 35 seconds.

<HUAWEI> system-view
[~HUAWEI] lldp enable
[*HUAWEI] lldp transmit interval 35

lldp transmit fast-mode interval

Function

The lldp transmit fast-mode interval command configures an interval for an interface to send LLDP packets.

The undo lldp transmit fast-mode interval command restores the default interval.

By default, the interval for an interface to send LLDP packets is the same as the global interval for the device to send LLDP packets.

Format

lldp transmit fast-mode interval interval

undo lldp transmit fast-mode interval [ interval ]

Parameters

Parameter

Description

Value

interval

Specifies the interval for an interface to send LLDP packets.

The value is an integer ranging from 1 to 32768, in seconds.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the LLDP status of a device remains unchanged or no new neighbor is discovered, the interface module periodically sends LLDP packets to its neighbors at a specified interval. By periodically exchanging LLDP packets with neighbors, a device can notify neighbors of its own status to ensure the accuracy and timely discovery of network topology and communication stability.

To adjust the global frequency of network topology discovery, run the lldp transmit interval command to set a global interval for the device to send LLDP packets. Device interfaces may send LLDP packets at different intervals. If the network topology connected to an interface needs to be promptly discovered, run the lldp transmit fast-mode interval command to increase the LLDP packet exchange frequency.

Prerequisites

The LLDP function has been enabled globally.

Configuration Impact

Set interval to a proper value and adjust it based on the network load.
  • The longer the interval, the lower the frequency of LLDP packets being exchanged. This saves system resources. However, if the interval for sending LLDP packets is too long, the device cannot notify neighbors of its status in a timely manner, reducing network topology discovery efficiency.

  • The shorter the interval, the higher the frequency of LLDP packets being exchanged. This ensures prompt network topology discovery. However, if the interval is too short, LLDP packets are exchanged too frequently, increasing the system load and wasting resources.

The default value is recommended.

Precautions

  • The interval value is independent of the delay value.
  • If the global interval and interface-specific interval are both configured, the interface-specific interval is preferred.

Example

# Set the interval for interface 10GE1/0/1 to send LLDP packets to 2 second.

<HUAWEI> system-view
[~HUAWEI] lldp enable
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] lldp transmit fast-mode interval 2

lldp restart

Function

The lldp restart command sets the delay in re-enabling the LLDP function on an interface.

The undo lldp restart command restores the default delay in re-enabling the LLDP function on an interface.

The default delay is 2 seconds.

Format

lldp restart delay

undo lldp restart

Parameters

Parameter

Description

Value

delay

Specifies the delay in re-enabling the LLDP function on an interface.

The value is an integer ranging from 1 to 10, in seconds. The default value is 2 seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

There is a delay before LLDP is re-enabled on an interface. The delay suppresses the topology flapping caused by the frequent LLDP status changes.

Prerequisites

The LLDP function has been enabled globally.

Configuration Impact

The delay in re-enabling the LLDP function on an interface must be set properly.
  • A large value of delay prevents network topology flapping. However, if the value is too large, the device cannot notify neighbors of its status in a timely manner, and the NMS cannot discover the network topology changes in real time.
  • A small value of delay enables the NMS to discover topology change in time. However, if the value is too small, the neighbors update device information too frequently. This increases the load on the system and wastes resources.
  • The default value is recommended.

Example

# Set the delay in re-enabling the LLDP function on an interface to 3 second.

<HUAWEI> system-view
[~HUAWEI] lldp restart 3

lldp tlv-disable

Function

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

The undo lldp tlv-disable command configures TLVs that can be advertised by an interface.

By default, an interface can advertise all TLVs except DCBX TLVs or Protocol Identity TLVs.

Format

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

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

Parameters

Parameter Description Value
basic-tlv Types of basic TLVs that can be advertised:
  • Management-address TLV
  • Port Description TLV
  • System Capabilities TLV
  • System Description TLV
  • System Name TLV
-
all Specifies an interface to or not to advertise optional TLVs contained in basic TLVs. -
management-address Specifies an interface to or not to advertise Management-address TLVs. -
port-description Specifies an interface to or not to advertise Port Description TLVs. -
system-capability Specifies an interface to or not to advertise System Capabilities TLVs. -
system-description Specifies an interface to or not to advertise System Description TLVs. -
system-name Specifies an interface to or not to advertise System Name TLVs. -
dot1-tlv Specifies an interface to or not to advertise TLVs defined by IEEE 802.1, including:
  • Port VLAN TLV
  • Port And Protocol VLAN ID TLV
  • VLAN Name TLV
-
all Specifies an interface to or not to advertise all optional TLVs contained in Dot1 TLVs. -
port-vlan-id Specifies an interface to or not to advertise Port VLAN TLVs. -
protocol-vlan-id vlan-id Specifies the VLAN ID carried in advertised Port and Protocol VLAN ID TLVs.

If you do not specify a value for this parameter, this parameter uses the smallest ID of the VLANs to which the interface that advertises Port and Protocol VLAN TLVs belongs.

The value of vlan-id is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.
vlan-name vlan-id Specifies the VLAN ID carried in advertised VLAN Name TLVs.

If you do not specify a value for this parameter, this parameter uses the smallest ID of the VLANs to which the interface that advertises VLAN Name TLVs belongs.

The value of vlan-id is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.
dot3-tlv Specifies an interface to or not to advertise TLVs defined by IEEE 802.3, including:
  • Link Aggregation TLV
  • MAC/PHY Configuration/Status TLV
  • Maximum Frame Size TLV
  • EEE TLV
-
all Specifies an interface to or not to advertise all optional TLVs contained in Dot3 TLVs: -
link-aggregation Specifies an interface to or not to advertise Link Aggregation TLVs. -
mac-physic Specifies an interface to or not to advertise MAC/PHY Configuration/Status TLVs. -
max-frame-size Specifies an interface to or not to advertise Maximum Frame Size TLVs. -
eee Specifies an interface to or not to advertise Energy Efficient Ethernet TLVs. -

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A TLV is the basic information unit of an LLDPDU. T stands for type, L stands for length, and V stands for value. 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 exchange information with neighbors using LLDP packets. During the process of exchanging LLDP packets between devices, the LLDPDU encapsulated in an LLDP packet carries different TLVs as required. 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, and DCBX TLVs.

Prerequisites

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

Precautions

When you disable advertisement of basic TLVs, TLVs defined by IEEE 802.1, and TLVs defined by IEEE 802.33:
  • You can specify the all parameter to disable advertisement of all optional TLVs of the specified type.
  • If you do not specify the all parameter, the command disables advertisement of only one type of optional TLVs at a time. You can disable advertisement of multiple types of optical TLVs by running the command multiple times.

By default, an interface can advertise all types of TLVs except DCBX TLVs and Protocol Identity TLVs. To enable an interface to advertise DCBX TLVs and Protocol Identity TLVs, run the lldp tlv-enable command.

Example

# Configure 10GE1/0/1 not to advertise the optional Link Aggregation TLV defined by IEEE 802.3.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] lldp tlv-disable dot3-tlv link-aggregation

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 can advertise all TLVs except DCBX TLVs or Protocol Identity TLVs.

Format

lldp tlv-enable { dot1-tlv { protocol-identity | protocol-vlan-id vlan-id | vlan-name vlan-id } | dcbx }

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

Parameters

Parameter Description Value
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

Indicates to advertise protocol identity TLV.

-
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, except reserved VLAN IDs, which can be configured using the vlan reserved command.
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, except reserved VLAN IDs, which can be configured using the vlan reserved command.
dcbx Specifies an interface to advertise DCBX TLVs.
NOTE:

CE6880EI and CE5800 do not support the parameter.

-

Views

GE interface view, 10GE interface view, 25GE 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.

Basic TLVs are essential for managing network devices. The TLVs in the IEEE 802.1 format, TLVs in the IEEE 802.3 format 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.

Example

# Configure 10GE1/0/1 to advertise the Protocol Identity TLV in the IEEE 802.1 format.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] lldp tlv-enable dot1-tlv protocol-identity

lldp trap-interval

Function

The lldp trap-interval command sets the delay in sending neighbor change traps to the NMS.

The undo lldp trap-interval command restores the default delay in sending neighbor change traps to the NMS.

By default, the device sends a neighbor change trap to the NMS after a 5-second delay.

Format

lldp trap-interval interval

undo lldp trap-interval

Parameters

Parameter

Description

Value

interval

Specifies the delay in sending traps.

The value is an integer ranging from 5 to 3600, in seconds. The default value is 5 seconds.

The default value is recommended.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

There is a delay before the device sends LLDP traps about neighbor information changes to the NMS. When neighbor information changes frequently, you can prolong the delay. In this way, the device will not frequently send traps to the NMS, and the network topology flapping is suppressed.

Prerequisites

The LLDP function has been enabled globally.

Configuration Impact

After the delay is set on the device, LLDP-enabled interfaces send LLDP traps to neighbors after a delay (the delay is the same as or longer than the delay you specified). The interfaces may send LLDP traps at different time points.

Precautions

The configured delay applies only to the trap, which reports changes in neighbor information, including the number of added neighbors, number of deleted neighbors, number of neighbors that are aged out, and number of neighbors of which the information is deleted.

Example

# Set the delay in sending neighbor change traps to 6 seconds.

<HUAWEI> system-view
[~HUAWEI] lldp trap-interval 6

reset lldp mdn statistics

Function

The reset lldp mdn statistics command clears statistics about non-LLDP packets that all interfaces receive or non-LLDP packets that a specified interface receives.

Format

reset lldp mdn statistics [ interface interface-type interface-number ]

Parameters

Parameter Description Value
interface interface-type interface-number
Indicates the interface on which statistics about non-LLDP packets are cleared.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If this parameter is not specified, statistics about non-LLDP packets that all interfaces on the device receive are cleared.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To quickly locate and manage an MDN fault, you need to collect statistics about non-LLDP packets received by a device in a specified period. Before collecting statistics, run the reset lldp mdn statistics command to clear existing statistics about non-LLDP packets.

Prerequisites

LLDP has been globally enabled using the lldp enable (system view) command and MDN has been enabled on the interface using the lldp mdn enable (interface view) command.

Follow-up Procedure

After running the reset lldp mdn statistics command to clear existing statistics about non-LLDP packets, you can run the display lldp mdn statistics command to check statistics about non-LLDP packets received by a device for a specific period.

Precautions

If you do not set the interface parameter when running the reset lldp mdn statistics command, statistics about non-LLDP packets received by all interfaces are cleared. Exercise caution when running this command.

Example

# Clear statistics about non-LLDP packets received by all interfaces.

<HUAWEI> reset lldp mdn statistics
Warning: This Command will clear mdn statistics of all the ports. Continue? [Y/N]:y

reset lldp statistics

Function

The reset lldp statistics command clears LLDP packet statistics on all interfaces or on a specified interface.

Format

reset lldp statistics [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Specifies the type and number of the interface where the LLDP statistics you want to reset. In the command:
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If no interface is specified, LLDP packet statistics of all interfaces are cleared.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To troubleshoot LLDP faults, you may need to view LLDP packet statistics within a certain period of time. In this case, you must run the reset lldp statistics command to clear existing LLDP packet statistics, and run the display lldp statistics command to view the new LLDP packet statistics.

Prerequisites

The LLDP function has been enabled globally and on interfaces.

Example

# Clear LLDP packet statistics on all interfaces.

<HUAWEI> reset lldp statistics
Warning: This Command will clear LLDP statistics of all the ports. Continue? [Y/N]:y

# Clear LLDP packet statistics of 10GE1/0/1.

<HUAWEI> reset lldp statistics interface 10ge 1/0/1

snmp-agent trap enable feature-name lldp

Function

The snmp-agent trap enable feature-name lldp command enables the function to send alarms about LLDP neighbor information changes.

The undo snmp-agent trap enable feature-name lldp command restores the default configuration.

By default, the function to send alarms about hwlldpmdnremtableschange is disabled, the other one is enabled.

Format

snmp-agent trap enable feature-name lldp [ trap-name { hwlldpmdnremtableschange | lldpremtableschange } ]

undo snmp-agent trap enable feature-name lldp [ trap-name { hwlldpmdnremtableschange | lldpremtableschange } ]

Parameters

Parameter Description Value
trap-name

Specifies the name of lldp trap.

-
hwlldpmdnremtableschange

Specifies the Huawei proprietary trap sent when MDN neighbor information changes.

-
lldpremtableschange

Specifies the trap sent when LLDP neighbor information changes.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If you want a device to send alarms about LLDP neighbor information changes to the NMS, you can run the snmp-agent trap enable feature-name lldp command to configure the LLDP alarm function on the device.

Configuration Impact

The network topology changes frequently when the networking is formed at first. After the LLDP alarm function is enabled for a device, the device will frequently send alarms about LLDP neighbor information changes to the NMS. This increases the load on the system and wastes resources. It is recommended that you disable the LLDP alarm function when the networking is formed at first.

NOTE:
The lldp trap-interval and lldp mdn trap-interval commands set the delay for a device to send alarms about LLDP neighbor information changes to the NMS. If LLDP neighbor information changes frequently, you can prolong the delay for sending alarms about LLDP neighbor information changes to the NMS to suppress network flapping.

Precautions

The LLDP alarm function takes effect globally to control the capability to send alarms about LLDP neighbor information changes on all interfaces of a device. The LLDP alarm function takes effect even if LLDP is globally disabled.

Example

# Enable the function to send alarms about LLDP neighbor information changes on a device.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name lldp
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 50899

Downloads: 337

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