Context
After the LLDP trap function is enabled, the switch sends traps to the NMS in one of the following
cases:
l
The LLDP function is enabled or disabled globally. The traps are
LLDP_1.3.6.1.4.1.2011.5.25.134.2.1 hwLldpEnabled and
LLDP_1.3.6.1.4.1.2011.5.25.134.2.2 hwLldpDisabled.
l
The local management address changes. The trap is LLDP_1.3.6.1.4.1.2011.5.25.134.2.5
hwLldpLocManIPAddrChange.
l
Neighbor information changes. The trap is LLDP_1.0.8802.1.1.2.0.0.1
lldpRemTablesChange. A trap is not generated if the management address of a neighbor
changes.
The LLDP trap function is applied to all interfaces. The LLDP trap function can take effect no
matter whether the LLDP function is enabled globally. If the network topology is unstable,
disable the LLDP function to prevent frequent trap sending.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
snmp-agent trap enable feature-name lldptrap
The LLDP trap function is enabled.
By default, the LLDP trap function is disabled on the S5700.
----End
2.3.8 Checking the Configuration
Prerequisite
All configurations are complete.
Procedure
l
Run the
display lldp local
[
interface
interface-type
interface-number
] command to view
local LLDP status.
l
Run the
display lldp neighbor
[
interface
interface-type
interface-number
] command to
view neighbor information of an interface.
l
Run the
display lldp neighbor brief
command to view brief information about neighbors.
l
Run the
display lldp tlv-config
command to view the TLV types supported by the interface.
----End
2.4 Maintaining LLDP
This section describes how to clear LLDP statistics and monitor LLDP status.
Quidway S5700 Series Ethernet Switches
Configuration Guide - Network Management
2 LLDP Configuration
Issue 01 (2011-10-26)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
61