238
Task Command
Display local LLDP information.
display lldp local-information
[
global
|
interface interface-type
interface-number
]
Display the information contained
in the LLDP TLVs sent from
neighboring devices.
display lldp neighbor-information
[ [ [
interface
interface-type
interface-number
] [
agent
{
nearest-bridge
|
nearest-customer
|
nearest-nontpmr
} ] [
verbose
] ] |
list
[
system-name
system-name
] ]
Display LLDP statistics.
display lldp statistics
[
global
| [
interface interface-type
interface-number
] [
agent
{
nearest-bridge
|
nearest-customer
|
nearest-nontpmr
} ] ]
Display LLDP status of a port.
display lldp status
[
interface interface-type interface-number
]
[
agent
{
nearest-bridge
|
nearest-customer
|
nearest-nontpmr
} ]
Display types of advertisable
optional LLDP TLVs.
display lldp tlv-config
[
interface interface-type interface-number
]
[
agent
{
nearest-bridge
|
nearest-customer
|
nearest-nontpmr
} ]
LLDP configuration examples
Basic LLDP configuration example
Network requirements
As shown in
, the NMS and Switch A are located in the same Ethernet network. A MED
device and Switch B are connected to GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 of Switch A.
Enable LLDP globally on Switch A and Switch B to perform the following tasks:
•
Monitor the link between Switch A and Switch B.
•
Monitor the link between Switch A and the MED device on the NMS.
Figure 72 Network diagram
Configuration procedure
1.
Configure Switch A:
# Enable LLDP globally.
<SwitchA> system-view
[SwitchA] lldp global enable
# Enable LLDP on GigabitEthernet 1/0/1. By default, LLDP is enabled on ports.
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] lldp enable
# Set the LLDP operating mode to Rx.
NMS
Switch A
MED
Switch B
GE1/0/2
GE1/0/1
GE1/0/1