Configuring CDP
•
•
With Release 12.1(11b)E and later releases, when you are in configuration mode you can enter EXEC
Note
mode-level commands by entering the do keyword before the EXEC mode-level command.
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}}
Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide—Release 12.1 E
30-2
Displaying the CDP Interface Configuration, page 30-3
Monitoring and Maintaining CDP, page 30-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.
Chapter 30
Configuring CDP
30-3.
78-14099-04