16- and 36-Port Ethernet Switch Module for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series
Configuration Tasks
76
Cisco IOS Release 12.2(2)XT, 12.2(8)T, and 12.2(15)ZJ
Verifying CDP Neighbors
Step 1
Use the show cdp neighbors command to verify information about the neighboring equipment:
Router#
show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
JAB023807H1 Fas 5/3 127 T S WS-C2948 2/46
JAB023807H1 Fas 5/2 127 T S WS-C2948 2/45
JAB023807H1 Fas 5/1 127 T S WS-C2948 2/44
JAB023807H1 Gig 1/2 122 T S WS-C2948 2/50
JAB023807H1 Gig 1/1 122 T S WS-C2948 2/49
JAB03130104 Fas 5/8 167 T S WS-C4003 2/47
JAB03130104 Fas 5/9 152 T S WS-C4003 2/48
Monitoring and Maintaining CDP
To monitor and maintain CDP on your device, use one or more of the following commands in privileged
EXEC mode:
Configuring Switched Port Analyzer
•
Specifying the Switched Port Analyzer Session, page 77
•
Configuring SPAN Destinations, page 77
•
Removing Sources or Destinations from a SPAN Session, page 77
Command
Purpose
Router#
clear cdp counter
s
Resets the traffic counters to zero.
Router#
clear cdp table
Deletes the CDP table of information about neighbors.
Router#
show cdp
Verifies global information such as frequency of transmissions and
the holdtime for packets being transmitted.
Router#
show cdp entry entry
_
name
[
protocol
|
version
]
Verifies information about a specific neighbor. The display can be
limited to protocol version information.
Router#
show cdp interface
[
slot
/
port
]
Verifies information about interfaces on which CDP is enabled.
Router#
show cdp neighbors
[
slot
/
port
] [
detail
]
Verifies information about neighbors. The display can be limited to
neighbors on a specific interface and can be expanded to provide
more detailed information.
Router#
show cdp traffic
Verifies CDP counters, including the number of packets sent and
received and checksum errors.