48-3
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 12.2SX
OL-4266-08
Chapter 48 Configuring CDP
Configuring CDP
Enabling CDP on a Port
To enable CDP on a port, perform this task:
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:
Command Purpose
Step 1
Router(config)# interface {{
type
1
slot/port
} |
{port-channel
number
}}
1. type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
Selects the port to configure.
Step 2
Router(config-if)# cdp enable
Enables CDP on the port.
Router(config-if)# no cdp enable
Disables CDP on the port.
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.