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

AR500, AR510, and AR530 V200R007 Commands Reference

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

NOTE:

AR502G-L-D-H and AR502GR-L-D-H do not support LLDP.

display lldp local

Function

The display lldp local command displays 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
Displays the LLDP information on a specified interface.
  • 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, MED system information, system configuration, and data statistics on the peer device.
  • The LLDP information on an interface includes the interface information and MED 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   :macAddress                                                      
Chassis ID     :00e0-11fc-1710                                                  
System name    :Huawei       
System description  :Huawei AR531 Huawei Versatile Routing Platform Software  V
RP (R) software,Version 5.120 (AR531 V200R007C00 ) Copyright (C) 2011-2013 Huawei
 Technologies Co., Ltd      
System capabilities supported   :bridge                                          
System capabilities enabled     :bridge                                         
LLDP Up time   :2012/05/10 11:40:49                                              
                                                                                
MED system information                                                          
Device class   :Network Connectivity                                            
(MED inventory information of master board)                                     
HardwareRev       :ARMPUQGC VER.A                                              
FirmwareRev       :404                                                           
SoftwareRev       :V200R007C00                                  
SerialNum         :NA                                                           
Manufacturer name :HUAWEI TECH CO., LTD                                                           
Model name        :NA                                                           
Asset tracking identifier :NA
                                                   
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              :IP: 10.10.10.1  MAC: 00e0-11fc-1710

Remote Table Statistics:
Remote Table Last Change Time   :0 days, 5 hours, 57 minutes, 32 seconds

Remote Neighbors Added          :15

Remote Neighbors Deleted        :13

Remote Neighbors Dropped        :0

Remote Neighbors Aged           :0

Total Neighbors                 :2

 
Port information:  
Interface GigabitEthernet0/0/1:                                                 
LLDP Enable Status       :enabled             (default is disabled)             
Total Neighbors          :0                                                     
                                                                                
Port ID subtype     :interfaceName                                              
Port ID             :GigabitEthernet0/0/1                                       
Port description    :HUAWEI, AR Series, GigabitEthernet0/0/1 Interface          
                                                                                
Auto-negotiation supported    :Yes                                              
Auto-negotiation enabled      :Yes                                              
OperMau   :speed(100)/duplex(Full)                                              
                                                                                
Power port class         :PD                                                    
PSE power supported      :No                                                    
PSE power enabled        :No                                                    
PSE pairs control ability:No                                                    
Power pairs              :Unknown                                               
Port power classification:Unknown                                               
                                                                                
Link aggregation supported:Yes                                                  
Link aggregation enabled :No                                                    
Aggregation port ID      :0                                                     
Maximum frame Size       :1628                                                  
                                                          
MED port information                                                            
                                                                                
Power Type               :Unknown                                               
PoE PSE power source     :Unknown                                               
Port PSE Priority        :Unknown                                                
Port Available power value:0 

Interface Ethernet0/0/1:
LLDP Enable Status       :enabled             (default is disabled)           
Total Neighbors          :1                                                     
                                                                                
Port ID subtype     :interfaceName                                              
Port ID             :Ethernet0/0/1                                      
Port description    :HUAWEI, AR Series, Ethernet0/0/1 Interface     
                                                                                
Port And Protocol VLAN ID(PPVID) don't supported                                
Port VLAN ID(PVID)  :1                                                                                
VLAN name of VLAN 1: VLAN1                                                      
Protocol identity   :STP RSTP/MSTP LACP GVRP                                
                                                                                
Auto-negotiation supported    :Yes                                              
Auto-negotiation enabled      :Yes                                              
OperMau   :speed(100)/duplex(Full)                                             
                                                                                
Power port class         :PD                                                    
PSE power supported      :No                                                    
PSE power enabled        :No                                                    
PSE pairs control ability:No                                                    
Power pairs              :Unknown                                               
Port power classification:Unknown                                               
                                                                                
Link aggregation supported:Yes                                                   
Link aggregation enabled :No                                                    
Aggregation port ID      :0                                                     
Maximum frame Size       :1628                             
                                                                                
MED port information                                                            
                                                                                
Media policy type   :Voice                                                     
Unknown Policy      :Defined                                                        
VLAN tagged         :Yes                                                         
Media policy VlanID           :0                                                
Media policy L2 priority      :6                                                
Media policy Dscp             :46                                                
                                                                                
Power Type               :Unknown                                               
PoE PSE power source     :Unknown                                               
Port PSE Priority        :Unknown                                               
Port Available power value:2                                                    
  ---- More ----                                                                                   
Table 16-28  Description of the display lldp local command output.

Item

Description

System information

Chassis type

Device ID sub-type:
  • chassisComponent: chassis alias
  • interfaceAlias: interface alias
  • portComponent: interface or backplane alias
  • macAddress: MAC address
  • networkAddress: network address
  • InterfaceName: 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 of the local device, including:
  • 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, including:
  • 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.

MED system information

Device class

Type of the MED device.

HardwareRev

Hardware version of the device.

FirmwareRev

Firmware version of the product.

SoftwareRev

Software version of the device.

SerialNum

Serial number.

Manufacturer name

Name of the manufacturer

Model name

Name of a model.

Asset tracking identifier

Asset tracking ID.

System configuration

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 message-transmission interval command.

LLDP Message Tx Hold Multiplier

Multiplier of the period in which the message is held.

This parameter is configured using the lldp message-transmission hold-multiplier command.

LLDP Refresh Delay

Delay in re-initializing the LLDP module.

This parameter is configured using the lldp restart-delay command.

LLDP Tx Delay

Delay in sending the LLDP packets.

This parameter is configured using the lldp message-transmission 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.

Remote Table 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

LLDP Enable Status

LLDP status:
  • Enabled
  • Disabled

Total Neighbors

Number of remote neighbors.

Port ID subtype

Subtypes of a port ID.
  • interfaceAlias: interface alias
  • portComponent: interface or backplane alias
  • macAddress: MAC address
  • networkAddress: network address
  • InterfaceName: name of the interface
  • agentCircuitId: circuit ID of the DHCP agent
  • local: name of the local device

Port ID

Interface ID.

Port description

Interface description.

Port VLAN ID(PVID)

VLAN ID of the interface.

VLAN name of VLAN 1

Name of VLAN 1.

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

OperMau

Auto-sensing rate and duplex mode of the interface.

Power port class

PoE type:
  • PSE: power-sourcing equipment
  • PD: powered device

PSE power supported

Whether the PSE power is supported.
  • Yes: PSE power is supported.
  • No: PSE power is not supported.

PSE power enabled

Whether the PSE power is enabled.
  • Yes: enabled.
  • No: disabled.

PSE pairs control ability

Whether the PSE twisted pair control is supported.
  • Yes: PSE twisted pair control is supported.
  • No: PSE twisted pair control is not supported.

Power pairs

PoE remote power supply mode.
  • Signal: power supply mode of signal lines
  • Spare: power supply mode of spare signal lines
  • Unknown: an unknown remote power supply mode

Port power classification

PD power control level on the interface:
  • Class0: indicates level 1.
  • Class1: indicates level 2.
  • Class2: indicates level 3.
  • Class3: indicates level 4.
  • Class4: indicates level 5.
  • Unknown: indicates an unknown level.

Link aggregation supported

Whether the interface supports link aggregation.

  • Yes: The interface supports link aggregation.
  • No: The interface does not support link aggregation.

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.

MED port information

Media policy type

Type of the media policy:
  • voice: indicates that the device supports voice.
  • unknown: indicates that the type of the media policy is unknown.

Unknown Policy

Whether the type of the media policy is unknown:
  • Yes: unknown
  • Defined: known

VLAN tagged

Whether to add tag to the packets of the voice VLAN.
  • Yes: Adds a VLAN tag to packets of the voice VLAN.
  • No: Not to add a VLAN tag to packets of the voice VLAN.

Media policy VlanID

ID of the voice VLAN.

Media policy L2 priority

Layer 2 priority.

Media policy Dscp

DSCP value.

Power Type

Power supply type.

PoE PSE power source

Type of the PSE:
  • Primary: indicates primary power supply.
  • Backup: indicates backup power supply.
  • Unknown: indicates power supply of an unknown type.

Port PSE Priority

PSE priority of an interface:
  • Unknown: indicates an unknown priority.
  • Critical: indicates the highest priority.
  • High: indicates the medium priority.
  • Low: indicates the lowest priority.

Port Available power value

Port power supply.

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

Displays information about neighboring devices of a specified interface.
  • 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 neighbor devices of interfaces Ethernet0/0/1.

<Huawei> display lldp neighbor interface ethernet 0/0/1
Ethernet0/0/1 has 1 neighbors:                                     
                                                                                
Neighbor index : 1                                                              
Chassis type   :macAddress                                                      
Chassis ID     :00e0-11fc-1710                                                  
Port ID type   :interfaceName                                                   
Port ID        :Ethernet0/0/1                                    
Port description    :HUAWEI, AR Series, Ethernet0/0/1 Interface     
System name         :Huawei                                                    
System description  :Huawei AR531 Huawei Versatile Routing Platform Software  V
RP (R) software,Version 5.120 (AR531 V200R007C00) Copyright (C) 2011-2013 Huawei
 Technologies Co., Ltd      
System capabilities supported   :bridge                                         
System capabilities enabled     :bridge                                         
Management address type  :ipV4                                                  
Management address       : 10.0.0.1                                            
Expired time   :104s                                                            
                                                                                
                                                                                
Port VLAN ID(PVID)  :1                                                          
VLAN name of VLAN  1: VLAN1                                                     
Protocol identity   :STP RSTP/MSTP LACP GVRP                              
                                                                                
Auto-negotiation supported    :Yes                                              
Auto-negotiation enabled      :Yes                                              
OperMau   :speed(100)/duplex(Full)                                             
                                                                                
Power port class         :PD                                                    
PSE power supported      :No                                                    
PSE power enabled        :No                                                    
PSE pairs control ability:No                                                    
Power pairs              :Unknown                                               
Port power classification:Unknown                                               
                                                                                
Link aggregation supported:Yes                                                  
Link aggregation enabled :No                                                    
Aggregation port ID      :0                                                     
Maximum frame Size       :1628                                                  
                                                                                
MED Device information                                                          
Device class   :Network Connectivity                                            
                                                                                
HardwareRev       :ARMPUQGC VER.A                                               
FirmwareRev       :100                                                           
SoftwareRev       :V200R007C00                                 
SerialNum         :NA                                                           
Manufacturer name :HUAWEI TECH CO., LTD                                                           
Model name        :NA                                                           
Asset tracking identifier :NA                                                   
                                                                                
Media policy type   :Voice                                                    
Unknown Policy      :Defined                                                         
VLAN tagged         :Yes                                                         
Media policy VlanID      :0                                                     
Media policy L2 priority :6                                                     
Media policy Dscp        :46                                                     
                                                                                
Power Type               :Unknown                                               
PoE PSE power source     :Unknown                                               
Port PSE Priority        :Unknown                                               
Port Available power value:2                                                    
Table 16-29  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:
  • chassisComponent: chassis alias
  • interfaceAlias: interface alias
  • portComponent: interface or backplane alias
  • macAddress: MAC address
  • networkAddress: network address
  • InterfaceName: name of the interface
  • local: name of the local device

Chassis ID

ID of a neighboring device.

Port ID type

ID sub-type of a neighboring interface:
  • interfaceAlias: interface alias
  • portComponent: interface or backplane alias
  • macAddress: MAC address
  • networkAddress: network address
  • InterfaceName: name of the interface
  • agentCircuitId: 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 (AP)
  • 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.

Protocol identity

Protocol ID.

VLAN name of VLAN 1

Name of VLAN 1.

Auto-negotiation supported

Whether the interface supports auto-negotiation:
  • Yes: Auto-negotiation is supported.
  • No: Auto-negotiation is not supported.

Auto-negotiation enabled

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

OperMau

Transmission rate and duplex mode of the interface.

Power port class

PoE type:
  • PSE: power-sourcing equipment.
  • PD: powered device.

PSE power supported

Whether the PSE power is supported.
  • Yes: PSE power is supported.
  • No: PSE power is not supported.

PSE power enabled

Whether the PSE power is enabled.
  • Yes: enabled.
  • No: disabled.

PSE pairs control ability

Whether the PSE control is supported.
  • Yes: PSE control is supported.
  • No: PSE control is not supported.

Power pairs

PoE remote power supply mode.
  • Signal: power supply mode of signal lines.
  • Spare: power supply mode of spare signal lines.
  • Unknown: an unknown remote power supply mode.

Port power classification

PD power control level on the interface:
  • Class0: indicates level 1.
  • Class1: indicates level 2.
  • Class2: indicates level 3.
  • Class3: indicates level 4.
  • Class4: indicates level 5.
  • Unknown: indicates an unknown control level.

Link aggregation supported

Whether link aggregation is supported on the interface.

  • Yes: The interface supports link aggregation.
  • No: The interface does not support link aggregation.

Link aggregation enabled

Whether link aggregation is enabled on an interface.

  • Yes: The interface supports link aggregation.
  • No: The interface does not support link aggregation.

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.

Device class

Type of the MED device.

HardwareRev

Hardware version of the product.

FirmwareRev

Firmware version of the product.

SoftwareRev

Software version of the product.

SerialNum

Serial number.

Manufacturer name

Name of the manufacturer.

Model name

Name of a model.

Asset tracking identifier

Asset tracking ID.

Media policy type

Type of the media policy:
  • voice: indicates that the device supports voice.
  • unknown: indicates that the type of the media policy is unknown.

Unknown Policy

Whether the type of the media policy is unknown. Yes indicates that the media policy type is unknown. No indicates that the media policy type is known.

VLAN tagged

Whether to add tag to the packets of the voice VLAN.

Media policy VlanID

ID of the voice VLAN.

Media policy L2 priority

Layer 2 priority.

Media policy Dscp

DSCP value.

Power Type

Power supply type:
  • PSE: power-sourcing equipment.
  • PD: powered device.

PoE PSE power source

Type of the PSE:
  • Primary: indicates primary power supply.
  • Backup: indicates backup power supply.
  • Unknown: indicates power supply of an unknown type.

Port PSE Priority

PSE priority of an interface:
  • Unknown: indicates an unknown priority.
  • Critical: indicates the highest priority.
  • High: indicates the medium priority.
  • Low: indicates the lowest priority.

Port Available power value

Port power supply

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 Intf   Neighbor Dev             Neighbor Intf             Exptime
Eth0/0/1     Huawei                   Eth0/0/2                  103
Table 16-30  Description of the display lldp neighbor brief command output

Item

Description

Local Intf

Local interface.

Neighbor Dev

Name of neighbor device.

Neighbor Intf

Neighboring interface.

Exptime

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 Ethernet0/0/1:                                            
Transmitted Frames Total: 2839                                                  
Received Frames Total:    2728      Frames Discarded Total:  0                  
Frames Error Total:       0         TLVs Discarded Total:    0                  
TLVs Unrecognized Total:  0         Neighbors Expired Total: 0                  
Table 16-31  Description of the display lldp statistics command output

Item

Description

Transmitted Frames Total

Number of sent LLDP packets.

Received Frames Total

Number of received LLDP packets.

Frames Discarded Total

Number of discarded LLDP packets.

Frames Error Total

Number of received errored LLDP packets.

TLVs Discarded Total

Number of discarded TLVs.

TLVs Unrecognized Total

Number of unknown TLVs.

Neighbors Expired Total

Number of aged-out neighbors.

display lldp tlv-config

Function

The display lldp tlv-config command displays optional 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

Displays optional TLVs supported by a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If no interface is specified, the command displays optional 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, and thus you can know whether the required TLVs are enabled and unneeded TLVs are disabled.

Prerequisites

The LLDP function has been enabled globally and on interfaces.

Example

# Display Optional TLVs that can be sent with LLDP packets on Ethernet0/0/1.

<Huawei> display lldp tlv-config interface ethernet 0/0/1
LLDP tlv-config of port [Ethernet0/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              Yes       Yes
IEEE 802.3 extend TLV:
MAC-Physic TLV                     Yes       Yes
Power via MDI TLV                  Yes       Yes
Link Aggregation TLV               Yes       Yes
Maximum Frame Size TLV             Yes       Yes
LLDP-MED extend TLV:
Capabilities TLV                   Yes       Yes
Network Policy TLV                 Yes       Yes
Extended Power via MDI TLV         Yes       Yes
Inventory TLV                      Yes       Yes
Location Identification TLV        No        No
Table 16-32   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.
Power via MDI TLV Power capability TLV.
Link Aggregation TLV Link aggregation TLV.
Maximum Frame Size TLV Maximum frame length TLV.
LLDP-MED extend TLV LLDP MED TLV.
Capabilities TLV TLV indicating MED capability sets.
Extended Power via MDI TLV TLV indicating the extended power supply capabilities.
Inventory TLV Inventory information, including Hardware Revision TLV, Firmware Revision TLV, Software Revision TLV, Serial Number TLV, Manufacturer Name TLV, Model name TLV, and Asset id TLV.
Network Policy TLV Network policy TLV.
Location Identification TLV Location ID TLV.

display snmp-agent trap feature-name lldptrap all

Function

The display snmp-agent trap feature-name lldptrap all command displays the status of all traps on the LLDP module.

Format

display snmp-agent trap feature-name lldptrap all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Before running the display snmp-agent trap feature-name lldptrap all command, run the snmp-agent command to enable the SNMP Agent function.

Example

# Display the status of all traps on the LLDP module.

<Huawei> display snmp-agent trap feature-name lldptrap all
------------------------------------------------------------------------------  
Feature name: LLDPTRAP                                                          
Trap number : 4                                                                 
------------------------------------------------------------------------------  
Trap name                       Default switch status   Current switch status   
lldpRemTablesChange             on                      on                      
hwLldpEnabled                   on                      on                      
hwLldpDisabled                  on                      on                      
hwLldpLocManIPAddrChange        on                      on
Table 16-33  Description of the display snmp-agent trap feature-name lldptrap all command output

Item

Description

Feature name

Name of the module to which a trap belongs.

Trap number

Number of traps.

Trap name

Names of a trap, traps of the LLDP module include:

  • lldpRemTablesChange: Sends a trap when LLDP neighbor information changes.

  • hwLldpEnabled: Sends a Huawei proprietary trap when the LLDP function is enabled globally.

  • hwLldpDisabled: Sends a Huawei proprietary trap when the LLDP function is disabled globally.

  • hwLldpLocManIPAddrChange: Sends a Huawei proprietary trap when the LLDP management address of the device changes.

Default switch status

Default status of a trap:

  • on: The trap is enabled.
  • off: The trap is disabled.

Current switch status

Status of a trap:

  • on: The trap is enabled.
  • off: The trap is disabled.

lldp clear neighbor

Function

The lldp clear neighbor command clears neighbor information in the system or on an interface.

Format

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

Parameters

Parameter

Description

Value

interface interface-type interface-number

Indicates the type and number of the interface whose neighbor information to be cleared. In the command:
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If no interface is specified, neighbor information of all interfaces is cleared.

-

Views

User view

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

If you want to obtain the latest neighbor information of interfaces, use the lldp clear neighbor command to clear existing neighbor information. When an interface receives new packets, new neighbor information is generated.

Prerequisites

The LLDP function has been enabled globally and on interfaces.

Example

# Clear neighbor information of all interfaces.

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

lldp dot3-tlv power

Function

The lldp dot3-tlv power command sets the standard to which the 802.3 Power via MDI TLV sent by an interface conforms.

By default, the 802.3 Power via MDI TLV conforms to 802.1 ab.

Format

lldp dot3-tlv power { 802.1ab | 802.3at }

Parameters

Parameter

Description

Value

802.1ab

Indicates that the 802.3 Power via MDI TLV sent by the interface conforms to 802.1 ab.

-

802.3at

Indicates that the 802.3 Power via MDI TLV sent by the interface conforms to 802.3 at.

-

Views

Ethernet interface view, GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The 802.3 Power via MDI TLV has the following formats:
  • 802.1 ab format: [ TLV type | TLV information string length | 802.3 OUI | MDI power support | PSE power pair | power class ]
  • 802.3 at format: [ TLV type | TLV information string length | 802.3 OUI | MDI power support | PSE power pair | power class | type/source/priority | PD requested power value | PSE allocated power value ]
Based on 802.1 ab, 802.3 at extends three fields: type/source/priority, PD requested power value, and PSE allocated power value.

Prerequisites

The LLDP function has been enabled globally and on interfaces.

Precautions

After the global LLDP is disabled, the LLDP configuration is deleted from all interfaces.

Before selecting a format of the 802.3 Power via MDI TLV, you must know the TLV format supported by the neighbors. The TLV format on the local device must be the same as that on the neighbors.

Member interfaces of the Eth-Trunk do not support this command.

Example

# Configure the interface to send the 802.3 Power via MDI TLV conforming to 802.3 at.

<Huawei> system-view
[Huawei] interface ethernet 0/0/1
[Huawei-Ethernet0/0/1] lldp dot3-tlv power 802.3at

lldp enable (interface view)

Function

The lldp enable command enables LLDP on an interface.

The undo lldp enable command disables LLDP on an interface.

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

Format

lldp enable

undo lldp enable

Parameters

None

Views

Ethernet interface view, GE 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 undo lldp enable command on these interfaces. To re-enable LLDP on these interfaces, run the lldp enable 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 Ethernet0/0/1.

<Huawei> system-view
[Huawei] interface ethernet 0/0/1
[Huawei-Ethernet0/0/1] undo lldp enable
Info: The LLDP is disable on the port successfully.   

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

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.

The management IP address to be allocated must be a valid IP address existing on the device.

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 the configured management IP address is invalid or 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 message-transmission delay

Function

The lldp message-transmission delay command sets the LLDP packet transmission delay.

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

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

Format

lldp message-transmission delay delay

undo lldp message-transmission 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 message-transmission 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 smaller 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 message-transmission delay command. To run the undo lldp message-transmission 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 second.

<Huawei> system-view
[Huawei] lldp message-transmission delay 5

lldp message-transmission hold-multiplier

Function

The lldp message-transmission hold-multiplier command sets the hold time multiplier of device information stored on neighbors.

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

The default hold time multiplier is 4.

Format

lldp message-transmission hold-multiplier hold

undo lldp message-transmission hold-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 message-transmission interval. hold indicates the hold time multiplier of device information on neighbors.

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

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 message-transmission hold-multiplier 5

lldp message-transmission interval

Function

The lldp message-transmission interval command sets the LLDP transmission interval.

The undo lldp message-transmission interval command restores the default LLDP transmission interval.

The default LLDP transmission interval is 30 seconds.

Format

lldp message-transmission interval interval

undo lldp message-transmission interval

Parameters

Parameter

Description

Value

interval

Specifies the 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 message-transmission delay. The value of interval must be equal to or greater than 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 message-transmission interval command to change the LLDP transmission interval.

Prerequisites

The LLDP function has been enabled globally.

Configuration Impact

The 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 equal to or greater than 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 message-transmission interval command. To run the undo lldp message-transmission interval command in this case, reduce the delay value to be equal to or smaller than a quarter of interval first.

Example

# Set the LLDP transmission interval to 35 seconds.

<Huawei> system-view
[Huawei] lldp message-transmission interval 35

lldp restart-delay

Function

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

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

The default delay is 2 seconds.

Format

lldp restart-delay delay

undo lldp restart-delay

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-delay 3

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.

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
NOTE:

Only Layer 2 physical interfaces such as Ethernet and GE interfaces support dot1-tlv and related parameters.

-

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. A switch 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

Ethernet interface view, GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In LLDP, all device information is encapsulated in Link Layer Discovery Protocol data units (LLDPDUs), which are then sent to neighbors. An LLDPDU contains a variety of TLVs. In a TLV, T indicates the information type, L indicates the information length, and V indicates the value or the content to be sent.

Devices exchange LLDPDUs carrying TLVs to obtain neighbor information. The TLVs that can be encapsulated in an LLDP packet include basic TLVs, TLVs in the IEEE 802.1 format, TLVs in the IEEE 802.3 format, and MED TLVs.

Basic TLVs are essential for managing network devices. The TLVs in the IEEE 802.1 format, TLVs in the IEEE 802.3 format, and MED TLVs are defined by standardization organizations and other organizations, which are used to enhance the network device management. You can determine whether to advertise the IEEE 802.1 format, TLVs in the IEEE 802.3 format, and MED TLVs.

Devices on both ends can have different TLV types configured. You only need to configure TLV types according to networking requirements.

Prerequisites

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 Ethernet0/0/1 to advertise the Link Aggregation TLV in the IEEE 802.3 format.

<Huawei> system-view
[Huawei] interface ethernet 0/0/1
[Huawei-Ethernet0/0/1] lldp tlv-enable dot3-tlv link-aggregation

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 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 Ethernet0/0/1.

<Huawei> reset lldp statistics interface ethernet 0/0/1

snmp-agent trap enable feature-name lldptrap

Function

The snmp-agent trap enable feature-name lldptrap command enables the LLDP trap function on the device.

The undo snmp-agent trap enable feature-name lldptrap command disables the LLDP trap function on the device.

By default, the LLDP trap function is enabled.

Format

snmp-agent trap enable feature-name lldptrap [ trap-name { hwlldpdisabled | hwlldpenabled | hwlldplocmanipaddrchange | lldpremtableschange } ]

undo snmp-agent trap enable feature-name lldptrap [ trap-name { hwlldpdisabled | hwlldpenabled | hwlldplocmanipaddrchange | lldpremtableschange } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

hwlldpdisabled

Sends a Huawei proprietary trap when the LLDP function is disabled globally.

-

hwlldpenabled

Sends a Huawei proprietary trap when the LLDP function is enabled globally.

-

hwlldplocmanipaddrchange

Sends a Huawei proprietary trap when the LLDP management address of the device changes.

-

lldpremtableschange

Sends a trap when LLDP neighbor information changes.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To enable the device to send traps when the LLDP status changes, run the snmp-agent trap enable feature-name lldptrap command.

Prerequisites

A reachable route exists between the device and the NMS, and the SNMP parameters are set.

Configuration Impact

After the LLDP trap function is enabled, the device sends traps to the NMS in one of the following cases:
  • The LLDP function is enabled or disabled globally.
  • The local management address changes.
  • A neighbor is added, deleted, discarded, or aged out.

Precautions

The LLDP trap function applies to all interfaces.

If the network topology is unstable, disable the LLDP trap function to prevent frequent trap sending.

To set the interval between sending neighbor change traps to the NMS, run the lldp trap-interval command. If neighbor information changes frequently, extend the interval to reduce the number of traps.

Example

# Enable the LLDP trap function on the device.

<Huawei> system-view
[Huawei] snmp-agent trap enable feature-name lldptrap
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 52795

Downloads: 102

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