Chapter
Show Commands
show cdp neighbors
To display the Cisco Discovery Protocol (CDP) neighbors, use the show cdp neighbors command.
Syntax Description
interface
ethernet
slot/[QSFP-module/]port
mgmt mgmt-num
detail
Command Default
None
Command Modes
EXEC mode
Command History
Release
6.0(2)N1(1)
5.2(1)N1(1)
Examples
This example shows how to display all CDP neighbors:
switch# show cdp neighbors
Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge
Device-ID
sw-sw70
switch(FOC16333ZER)
switch(FOC16333ZER)
switch(FOC16333ZER)
switch(FOC16333ZER)
switch#
This example shows how to display the CDP neighbors for a specific Ethernet interface:
OL-27880-02
show cdp neighbors [interface {ethernet slot/[QSFP-module/]port | mgmt mgmt-num}] [detail]
(Optional) Displays CDP neighbor information for an interface, Ethernet
or management.
(Optional) Displays CDP neighbor information for an Ethernet interface.
The slot number is from 1 to 255. The QSFP-module number is from 1
to 4. The port number is from 1 to 128.
Note
(Optional) Displays CDP neighbor information for a management
interface. The management interface number is 0.
(Optional) Displays the detailed information about CDP neighbors.
Modification
Support for the QSFP+ GEM was added.
This command was introduced.
S - Switch, H - Host, I - IGMP, r - Repeater,
V - VoIP-Phone, D - Remotely-Managed-Device,
s - Supports-STP-Dispute
Local Intrfce Hldtme Capability
mgmt0
Eth1/4
Eth1/6
Eth1/10
Eth1/12
The QSFP-module number applies only to the QSFP+ Generic
Expansion Module (GEM).
145
S I
WS-C3560E-48T Gig0/30
169
S I s
N6K-C6004-96Q Eth1/12
173
S I s
N6K-C6004-96Q Eth1/10
175
S I s
N6K-C6004-96Q Eth1/6
169
S I s
N6K-C6004-96Q Eth1/4
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
show cdp neighbors
Platform
Port ID
1271
Need help?
Do you have a question about the Nexus 5500 Series and is the answer not in the manual?
Questions and answers