31-5
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 31 Configuring CDP
Configuring CDP on the Switch
Displaying CDP Neighbor Information
To display information about the directly connected Cisco devices, enter the
show cdp neighbors
command. Enter the
vlan
keyword to display the native VLAN for the connected ports. Enter the
duplex
keyword to display the duplex mode for the connected ports. Enter the
capabilities
keyword to display
the device capability codes for the connected device. Enter the
detail
keyword to display the detailed
information about the neighboring device.
Note
If you enter the
show cdp neighbors
command for a device that supports earlier versions of CDP,
“unknown” is displayed in the following fields: VTP Management Domain, Native VLAN, and Duplex.
To display information about the directly connected Cisco devices, perform this task:
This example shows how to display the CDP neighbor information for the connected Cisco devices:
Console> (enable)
show cdp neighbors
* - indicates vlan mismatch.
# - indicates duplex mismatch.
Port Device-ID Port-ID Platform
-------- ------------------------------- ------------------------- ------------
2/3 JAB023807H1(2948) 2/2 WS-C2948
3/1 JAB023806JR(4003) 2/1 WS-C4003
3/2 JAB023806JR(4003) 2/2 WS-C4003
3/5 JAB023806JR(4003) 2/5 WS-C4003
3/6 JAB023806JR(4003) 2/6 WS-C4003
Console> (enable)
This example shows how to display the native VLAN for each port that is connected on the neighboring
device (there is a native VLAN mismatch between port 3/6 on the local switch and port 2/6 on the
neighboring device, as indicated by the asterisk [*]):
Console> (enable)
show cdp neighbors vlan
* - indicates vlan mismatch.
# - indicates duplex mismatch.
Port Device-ID Port-ID NativeVLAN
-------- ------------------------------- ------------------------- ----------
2/3 JAB023807H1(2948) 2/2 522
3/1 JAB023806JR(4003) 2/1 100
3/2 JAB023806JR(4003) 2/2 100
3/5 JAB023806JR(4003) 2/5 1
3/6 JAB023806JR(4003) 2/6* 1
Console> (enable)
Task
Command
Display information about the CDP neighbors.
show cdp neighbors
[
mod
[
/port
]] [
vlan
|
duplex
|
capabilities
|
detail
]