Chapter 30
Configuring CDP
Command
Step 2
Router(config-if)# cdp enable
Router(config-if)# no cdp enable
1.
type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
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:
Command
Router# show cdp interface [{{type
{port-channel number}}]
1. type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
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:
Command
Router# clear cdp counters
Router# clear cdp table
Router# show cdp
Router# show cdp entry entry_name [protocol |
version]
Router# show cdp interface [type
Router# show cdp neighbors [type
78-14064-04
1
slot/port} |
1
slot/port}]
1
slot/port] [detail]
Cisco 7600 Series Router Cisco IOS Software Configuration Guide—12.1E
Purpose
Enables CDP on the port.
Disables CDP on the port.
Purpose
Displays information about ports where CDP is enabled.
Purpose
Resets the traffic counters to zero.
Clears information about neighbors from the CDP table.
Displays global information such as frequency of
transmissions and the holdtime for packets being transmitted.
Displays information about a specific neighbor. The display
can be limited to protocol or version information.
Displays information about interfaces on which CDP is
enabled.
Displays information about neighbors. The display can be
limited to neighbors on a specific interface and expanded to
provide more detailed information.
Configuring CDP
30-3