The display cdp neighbor command displays information about CDP neighbors of all interfaces or a specified interface.
Parameter | Description | Value |
---|---|---|
interface interface-type interface-number | Displays information about CDP neighbors of a specified interface.
If this parameter is not specified, the command displays information about CDP neighbors of all interfaces.
|
- |
Usage Scenario
This command enables you to know which CDP neighbors the local device has, Layer 2 information about the neighbors, and to which interfaces the neighbors connect. You can also use this command to check whether the Layer 2 information is configured correctly on the neighbors.
Prerequisites
LLDP has been enabled globally using the lldp enable command, and LLDP compatibility with CDP has been enabled on the specified interface using the lldp compliance cdp receive command.
# Display information about CDP neighbors of all the interfaces.
<HUAWEI> display cdp neighbor GigabitEthernet0/0/1 has 1 neighbor(s): Neighbor index :1 Device ID :ME3400 Port ID :GigabitEthernet0/4 Version :SCCP75.8-3-3SR2S Platform :cisco ME-3400EG-2CS-A Capabilities :host MacAddress :b4a4-e3cf-e984 Discovered time :0 days, 22 hours, 33 minutes, 36 seconds Expired time :122 Power drawn :12000 mw Power request ID :39308 Power management ID :2 Power request levels :12000 mw 0 mw ---- More ----
Item |
Description |
---|---|
m has n neighbor(s) | The interface m has n CDP neighbors. |
Neighbor index |
Index of a CDP neighbor. |
Device ID |
ID of the CDP neighbor. |
Port ID |
Interface of the CDP neighbor connecting to the switch. |
Version |
Version of the CDP neighbor. |
Platform |
Software platform of the CDP neighbor. |
Capabilities | Type of the CDP neighbor:
|
MacAddress |
MAC address of the CDP neighbor. |
Discovered time |
Time when the CDP neighbor was discovered, that is, the time difference between the system time when the device discovers the CDP neighbor and the startup time of the switch. |
Expired time |
The aging time remaining of CDP neighbor, in seconds. |
Power drawn |
Power set on the source. |
Power request ID |
Requested power ID. |
Power management ID |
ID used to manage power. The ID is the number of times the power is changed. |
Power request levels |
Requested power level. The maximum power among the negotiated power values is selected. |