User Guide

30-3
Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide—Release 12.1 E
78-14099-04
Chapter 30 Configuring CDP
Configuring CDP
This example shows how to enable CDP on Fast Ethernet port 5/1:
Router(config)# interface fastethernet 5/1
Router(config-if)# cdp enable
Displaying the CDP Interface Configuration
To display the CDP configuration for a port, perform this task:
This example shows how to display the CDP configuration of Fast Ethernet port 5/1:
Router# show cdp interface fastethernet 5/1
FastEthernet5/1 is up, line protocol is up
Encapsulation ARPA
Sending CDP packets every 120 seconds
Holdtime is 180 seconds
Router#
Monitoring and Maintaining CDP
To monitor and maintain CDP on your device, perform one or more of these tasks:
Step 2
Router(config-if)# cdp enable
Enables CDP on the port.
Router(config-if)# no cdp enable
Disables CDP on the port.
1. type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
Command Purpose
Command Purpose
Router# show cdp interface [{{type
1
slot/port} |
{port-channel number}}]
1. type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
Displays information about ports where CDP is enabled.
Command Purpose
Router# clear cdp counters
Resets the traffic counters to zero.
Router# clear cdp table
Clears information about neighbors from the CDP table.
Router# show cdp
Displays global information such as frequency of
transmissions and the holdtime for packets being transmitted.
Router# show cdp entry entry_name [protocol |
version]
Displays information about a specific neighbor. The display
can be limited to protocol or version information.
Router# show cdp interface [type
1
slot/port}]
Displays information about interfaces on which CDP is
enabled.
Router# show cdp neighbors [type
1
slot/port] [detail]
Displays information about neighbors. The display can be
limited to neighbors on a specific interface and expanded to
provide more detailed information.