31-3
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 31 Configuring CDP
Configuring CDP on the Switch
Console> (enable)
show cdp
CDP : disabled
Message Interval : 60
Hold Time : 180
Console> (enable)
Setting the CDP Enable and Disable States on a Port
You can enable or disable CDP on a per-port basis. You must enable CDP globally before the switch will
transmit the CDP messages on any ports.
To set the CDP enable state on a per-port basis, perform this task in privileged mode:
This example shows how to enable CDP on ports 3/1-2 and verify the configuration:
Console> (enable)
set cdp enable 3/1-2
CDP enabled on ports 3/1-2.
Console> (enable)
show cdp port 3
CDP : enabled
Message Interval : 60
Hold Time : 180
Port CDP Status
-------- ----------
3/1 enabled
3/2 enabled
3/3 disabled
3/4 disabled
3/5 disabled
3/6 disabled
3/7 enabled
3/8 enabled
3/9 enabled
3/10 enabled
3/11 enabled
3/12 enabled
Console> (enable)
This example shows how to disable CDP on ports 3/1-6 and verify the configuration:
Console> (enable)
set cdp disable 3/1-6
CDP disabled on ports 3/1-6.
Console> (enable)
show cdp port 3
CDP : enabled
Message Interval : 60
Hold Time : 180
Port CDP Status
-------- ----------
3/1 disabled
3/2 disabled
3/3 disabled
3/4 disabled
3/5 disabled
3/6 disabled
Task
Command
Step 1
Set the CDP enable state on the individual ports.
set cdp
{
enable
|
disable
} [
mod
/
port
]
Step 2
Verify the CDP configuration.
show cdp port
[
mod
[
/
port
]]