Configuring CDP on the Switch
Table 21-1 CDP Default Configuration
Feature
CDP global enable state
CDP port enable state
CDP message interval
CDP holdtime
Configuring CDP on the Switch
The following sections describe how to configure CDP.
Setting the CDP Global Enable State
To set the CDP global enable state on the switch, perform this task in privileged mode:
Task
Step 1
Set the CDP global enable state.
Step 2
Verify the CDP configuration.
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
Message Interval
Hold Time
Console> (enable)
This example shows how to disable CDP globally and verify the configuration:
Console> (enable) set cdp disable
CDP disabled globally
Console> (enable) show cdp
CDP
Message Interval
Hold Time
Console> (enable)
Setting the CDP Enable State on a Port
You can enable or disable CDP on a per-port basis. You must enable CDP globally before the switch can
transmit CDP messages on any ports.
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
21-2
Default Value
Enabled
Enabled on all ports
60 sec
180 sec
: enabled
: 60
: 180
: disabled
: 60
: 180
Chapter 21
Command
set cdp {enable | disable}
show cdp
Configuring CDP
78-15908-01