Configuring CDP
•
•
Enabling CDP Globally
To enable CDP globally, perform this task:
Command
Router(config)# cdp run
Router(config)# no cdp run
This example shows how to enable CDP globally:
Router(config)# cdp run
Displaying the CDP Global Configuration
To display the CDP configuration, perform this task:
Command
Router# show cdp
This example shows how to display the CDP configuration:
Router# show cdp
Global CDP information:
Router#
For additional CDP show commands, see the
Enabling CDP on a Port
To enable CDP on a port, perform this task:
Command
Step 1
Router(config)# interface {{type
{port-channel number}}
Step 2
Router(config-if)# cdp enable
Router(config-if)# no cdp enable
1.
type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
Catalyst Supervisor Engine 32 PISA Cisco IOS Software Configuration Guide, Release 12.2ZY
44-2
Displaying the CDP Interface Configuration, page 44-3
Monitoring and Maintaining CDP, page 44-3
Sending CDP packets every 120 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
1
slot/port} |
Purpose
Enables CDP globally.
Disables CDP globally.
Purpose
Displays global CDP information.
"Monitoring and Maintaining CDP" section on page
Purpose
Selects the port to configure.
Enables CDP on the port.
Disables CDP on the port.
Chapter 44
Configuring CDP
44-3.
OL-11439-03