![Cisco 2948G - Catalyst Switch Configuration Manual Download Page 353](http://html.mh-extra.com/html/cisco/2948g-catalyst-switch/2948g-catalyst-switch_configuration-manual_67462353.webp)
21-5
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
—
Release 8.1
78-15486-01
Chapter 21 Configuring CDP
Configuring CDP on the Switch
Displaying CDP Neighbor Information
To display information about directly connected Cisco devices, enter the show cdp neighbors command.
To display specific information, use the following keywords:
•
To display the native VLAN for the connected ports, enter the vlan keyword.
•
To display the duplex mode for the connected ports, enter the duplex keyword.
•
To display the device capability codes for the connected device, enter the capabilities keyword.
•
To display the device capability codes for the connected device, enter the detail keyword.
To display information about directly connected Cisco devices, perform this task in privileged mode:
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 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
neighbor 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
Version:
WS-C2948 Software, Version McpSW: 5.1(57) NmpSW: 5.1(1)
Copyright (c) 1995-1999 by Cisco Systems, Inc.
Task
Command
View information about CDP neighbors.
show cdp neighbors [mod_num[/port_num]] [vlan |
duplex | capabilities | detail]