29-5
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 29 Configuring CDP
Configuring CDP
Displaying CDP Neighbor Information
To display information about 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 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 directly connected Cisco devices, perform this task:
This example shows how to display CDP neighbor information for 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 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)
This example shows how to display detailed information about the neighboring device:
Console> (enable)
show cdp neighbors 2/3 detail
Port (Our Port): 2/3
Device-ID: JAB023807H1(2948)
Device Addresses:
IP Address: 172.20.52.36
Holdtime: 132 sec
Capabilities: TRANSPARENT_BRIDGE SWITCH
Task
Command
Display information about CDP neighbors.
show cdp neighbors
[
mod
[
/port
]] [
vlan
|
duplex
|
capabilities
|
detail
]