2.4.1 Clearing LLDP Statistics
To clear LLDP statistics, run the following reset command in the user view.
Procedure
l
Run the
reset lldp statistics
[
interface
interface-type interface-number
] command to
clear LLDP statistics.
----End
2.4.2 Monitoring LLDP Status
To view LLDP status, run the following display commands.
Procedure
l
Run the
display lldp local
[
interface
interface-type interface-number
] command to view
LLDP status in the entire system or on an interface.
l
Run the
display lldp statistics
[
interface
interface-type interface-number
] command to
view statistics about packets sent and received on an interface.
l
Run the
display lldp neighbor
[
interface
interface-type interface-number
] command to
view neighbor information of an interface.
----End
2.5 Configuration Examples
This section provides LLDP configuration examples.
2.5.1 Example for Configuring LLDP on the Device That Has a
Single Neighbor
After LLDP is configured on the network devices, the NMS can obtain the network topology.
The following example describes how to configure LLDP on the devices that have a single
neighbor.
Networking Requirements
, SwitchA is directly connected to SwitchB and media endpoint (ME).
The NMS needs to obtain Layer 2 information about SwitchA, SwitchB, and ME. By using the
Layer 2 information, a network administrator can know the detailed network topology
information and configuration conflicts. These requirements can be met by configuring LLDP
on SwitchA and SwitchB.
In addition, the administrator requires that SwitchA and SwitchB send LLDP traps to the NMS
when the LLDP management address changes, global LLDP is enabled or disabled, or the
neighbor information changes. This ensures that the administrator detects topology changes in
time.
The ME supports the LLDP function. Reachable routes exist between the NMS and Switches.
The SNMP parameters are set on all devices.
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.
62