Configuring CDP
•
•
Enabling CDP Globally
To enable CDP globally, use this command:
Command
Switch(config)# [no] cdp run
This example shows how to enable CDP globally:
Switch(config)# cdp run
Displaying the CDP Global Configuration
To display the CDP configuration, use this command:
Command
Switch# show cdp
This example shows how to display the CDP configuration:
Switch# show cdp
Global CDP information:
Switch#
For additional CDP show commands, see the
Enabling CDP on an Interface
To enable CDP on an interface, use this command:
Command
Switch(config-if)# [no] cdp enable
This example shows how to enable CDP on Fast Ethernet interface 5/1:
Switch(config)# interface fastethernet 5/1
Switch(config-if)# cdp enable
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
31-2
Displaying the CDP Interface Configuration, page 31-3
Monitoring and Maintaining CDP, page 31-3
Sending CDP packets every 120 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
Purpose
Enables CDP globally.
Use the no keyword to disable CDP globally.
Purpose
Displays global CDP information.
"Monitoring and Maintaining CDP" section on page
Purpose
Enables CDP on an interface.
Use the no keyword to disable CDP on an interface.
Chapter 31
Configuring CDP
31-3.