31-2
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 31 Configuring CDP
Default CDP Configuration
Default CDP Configuration
Table 31-1
shows the default CDP configuration.
Note
The CDP message interval can be configured in the range of 5–254 seconds.
Configuring CDP on the Switch
These sections describe how to configure CDP:
•
Setting the CDP Global Enable and Disable States, page 31-2
•
Setting the CDP Enable and Disable States on a Port, page 31-3
•
Setting the CDP Message Interval, page 31-4
•
Setting the CDP Holdtime, page 31-4
•
Displaying CDP Neighbor Information, page 31-5
Setting the CDP Global Enable and Disable States
To set the CDP global enable state, perform this task in privileged mode:
This example shows how to enable CDP globally and verify the configuration:
Console> (enable)
set cdp enable
CDP enabled globally
Console> (enable)
show cdp
CDP : enabled
Message Interval : 60
Hold Time : 180
Console> (enable)
This example shows how to disable CDP globally and verify the configuration:
Console> (enable)
set cdp disable
CDP disabled globally
Table 31-1
CDP Default Configuration
Feature
Default Value
CDP global enable state
Enabled
CDP port enable state
Enabled on all ports
CDP message interval
60 seconds
CDP holdtime
180 seconds
Task
Command
Step 1
Set the CDP global enable state on the switch.
set cdp
{
enable
|
disable
}
Step 2
Verify the CDP configuration.
show cdp