[SwitchA]
interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1]
bpdu enable
# Configure SwitchB.
[SwitchB]
interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1]
bpdu enable
Step 3
Configure management addresses for SwitchA and SwitchB.
# Configure SwitchA.
[SwitchA]
lldp management-address 10.10.10.1
# Configure SwitchB.
[SwitchB]
lldp management-address 10.10.10.2
Step 4
Enable the LLDP trap function on SwitchA and SwitchB.
# Configure SwitchA.
[SwitchA]
snmp-agent trap enable feature-name lldptrap
# Configure SwitchB.
[SwitchB]
snmp-agent trap enable feature-name lldptrap
Step 5
Verify the configuration.
# Check whether the LLDP function is enabled, management addresses are configured, and the
LLDP trap function is enabled.
l
View the configurations on SwitchA.
[SwitchA]
display lldp local
System
information
Chassis
type :macAddress
Chassis ID :00e0-
fc33-0011
System name :SwitchA
System description :Quidway
Huawei Versatile Routing Platform
Software
VRP (R) Software, Version 5.70 (S5700 V200R006C00)
Copyright (c) 2003-2010 Huawei Technologies Co.,
Ltd
System capabilities
supported :bridge
System capabilities
enabled :bridge
LLDP Up time :2009/2/13
18:31:37
MED system information
Device class :Network Connectivity
(MED inventory information of master board)
HardwareRev :VER B
FirmwareRev :NC
SoftwareRev :Version 5.70 V200R006C00
SerialNum :NA
Manufacturer name :NA
Model name :NA
Asset tracking identifier :NA
System configuration
LLDP Status :enabled (default is disabled)
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.
64