The display lldp neighbor command displays Link Layer Discovery Protocol (LLDP) neighbor information about a specific or all interfaces.
Usage Scenario
To view information about LLDP neighbors, Layer 2 information about these neighbors, and interfaces used by these neighbors to connect to a local device, run the display lldp neighbor command.
Prerequisites
LLDP has been globally enabled using the lldp enable command in the system view, and LLDP has also been enabled on interfaces using the lldp enable command in the interface view.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display lldp neighbor Gigabitethernet0/1/16 has 1 neighbor(s): Neighbor index :1 Chassis type :macAddress Chassis ID :00-e0-fc11-1110 Port ID type :interfaceName Port ID :Gigabitethernet0/1/16 Port description :-- System name :HUAWEI System description :Huawei Versatile Routing Platform Software VRP (R) software, Version 8.200 (NetEngine 8000 F1A-8H20Q V800R021C00SPC100) Copyright (C) 2012-2020 Huawei Technologies Co., Ltd. HUAWEI VRP System capabilities supported :bridge router System capabilities enabled :bridge router Management address type :ipv4 Management address :10.138.216.1 Expired time :104s Port VLAN ID(PVID) :1 Port and Protocol VLAN ID(PPVID) :unsupported Port and Protocol VLAN supported :-- Port and Protocol VLAN enabled :-- VLAN name of VLAN 1 :VLAN1 Protocol identity :-- Auto-negotiation supported :Yes Auto-negotiation enabled :No OperMau :speed (0) /duplex (Auto) Link aggregation supported :Yes Link aggregation enabled :No Aggregation port ID :0 Maximum frame Size :9216 Discovered time :2015-10-25 09:44:40 Unrecognized basic TLV TLV type 9 :01 02 03 04 05 06 07 08 00 00 00 40 TLV type 9 :11 12 13 14 15 16 17 18 00 00 00 40 TLV type 10 :00 00 00 00 00 00 00 00 00 00 00 40 TLV type 126 :
Item | Description |
---|---|
Neighbor index | Neighbor index. |
Chassis type | ID subtype of an LLDP neighbor:
|
Chassis ID | ID of an LLDP neighbor. |
Port ID type | ID subtype of an LLDP neighbor interface:
|
Port ID | ID of an LLDP neighbor interface. |
Port description | Description of an LLDP neighbor interface. |
Port VLAN ID(PVID) | ID of the VLAN to which an LLDP neighbor interface belongs. |
Port and Protocol VLAN ID(PPVID) | ID of the protocol VLAN to which an LLDP neighbor interface belongs. |
Port and Protocol VLAN supported | Whether protocol VLANs are supported. |
Port and Protocol VLAN enabled | Whether protocol VLANs are enabled. |
System name | Name of an LLDP neighbor. |
System description | Description of an LLDP neighbor. |
System capabilities supported | Capabilities supported by an LLDP neighbor:
|
System capabilities enabled | Capabilities enabled on an LLDP neighbor:
|
Management address type | Management IP address type of an LLDP neighbor. |
Management address | Management IP address of an LLDP neighbor. |
Expired time | Aging time of an LLDP neighbor. |
VLAN name of VLAN | Name of VLAN. |
Protocol identity | ID of protocol identity. |
Auto-negotiation supported | Support for auto-negotiation:
|
Auto-negotiation enabled | Auto-negotiation status:
|
OperMau | Self-adaptive rate and duplex status of a local interface. |
Link aggregation supported | Support for link aggregation by an LLDP neighbor interface:
|
Link aggregation enabled | Link aggregation status on an LLDP neighbor interface:
|
Aggregation port ID | ID of an aggregated LLDP neighbor interface. The value is 0 if link aggregation is not enabled. |
Maximum frame Size | Maximum frame size supported by an LLDP neighbor interface. |
Discovered time | Date and time when an LLDP neighbor was discovered. |
Unrecognized basic TLV | Basic TLV unrecognized by the local end. |
Unrecognized organizationally defined TLV | Organizationally defined TLV unrecognized by the local end. |
TLV type | Basic TLV type unrecognized by the local end. |
TLV OUI | Identifier of the organizationally defined TLV unrecognized by the local end. |
TLV subtype | Sub-type of the organizationally defined TLV unrecognized by the local end. |
TLV information | Information about the organizationally defined TLV unrecognized by the local end. |
Index | Index of the organizationally defined TLV unrecognized by the local end. |