The display cdp neighbor brief command displays brief information about CDP neighbors of the device.
Usage Scenario
You can run this command to quickly view brief information about CDP neighbors connected to a switch, such as CDP neighbor names and interfaces on which CDP neighbor relationships are set up.
Prerequisites
LLDP has been enabled globally using the lldp enable (system view) command, and LLDP compatibility with CDP has been enabled on the specified interface using the lldp compliance cdp receive command.
# Display brief information about CDP neighbors.
<HUAWEI> display cdp neighbor brief Local Intf Neighbor Dev Neighbor Intf Exptime(s) GE0/0/1 ME3400 GE0/0/4 144
Item |
Description |
---|---|
Local Intf |
Local interface of the switch that sets up a CDP neighbor relationship with a peer device. |
Neighbor Dev |
Name of a CDP neighbor. |
Neighbor Intf |
Interface of a peer device that sets up a CDP neighbor relationship with the switch. |
Exptime(s) |
Time left before a CDP neighbor relationship expires, in seconds. |