LLDP Configuration Example 1189
LLDP Configuration 
Example
LLDP Configuration
Example
Network requirements
■ The NMS and Switch A are located in the same Ethernet. An MED device and 
Switch B are connected to GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 of 
Switch A.
■ Enable LLDP on the ports of Switch A and Switch B to monitor the link 
between Switch A and Switch B and the link between Switch A and the MED 
device on the NMS.
Network diagram
Figure 354   Network diagram for LLDP configuration
 
Configuration procedure
1 Configure Switch A.
# Enter system view.
<SwitchA> system-view 
# Enable LLDP globally.
[SwitchA] lldp enable 
# Enable LLDP on GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2, setting the 
LLDP operating mode to Rx.
Display LLDP status of a port  display lldp status 
[ interface interface-type 
interface-number ] 
Available in any view 
Display the types of the LLDP 
TLVs that are currently sent 
display lldp tlv-config 
[ interface interface-type 
interface-number ] 
Available in any view
To do…  Use the command…  Remarks 
NMS
Switch A
Switch B
MED䆒
GE1/0/1 GE1/0/2
GE1/0/1