
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
4-6
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 4 C Commands
cdp
cdp
To globally configure the Cisco Discovery Protocol parameters, Use the
cdp
command . Use the
no
form
of this command to revert to factory defaults.
cdp
{
enable
|
advertise
{
v1
|
v2
} |
holdtime
holdtime-seconds
|
timer
timer-seconds
}
no cdp
{
enable
|
advertise
|
holdtime
holdtime-seconds
|
timer
timer-seconds
}
Syntax Description
Defaults
CDP is enabled.
The hold time default interval is 180 seconds.
The refresh time interval is 60 seconds.
Command Modes
Configuration mode.
Command History
Usage Guidelines
Use the
cdp enable
command to enable the Cisco Discovery Protocol (CDP) feature at the switch level
or at the interface level. Use the
no
form of this command to disable this feature. When the interface link
is established, CDP is enabled by default
CDP version 1 (v1) and version 2 (v2) are supported in Cisco MDS 9000 Family switches. CDP packets
with any other version number are silently discarded when received.
Examples
The following example disables the CDP protocol on the switch. When CDP is disabled on an interface,
one packet is sent to clear out the switch state with each of the receiving devices:
switch(config)#
no cdp enable
Operation in progress. Please check global parameters
switch(config-console)#
enable
Enables CDP globally on all interfaces on the switch.
advertise
Specifies the EXEC command to be executed.
v1
Specifies CDP version 1.
v2
Specifies CDP version 2.
holdtime
Sets the hold time advertised in CDP packets.
holdtime-seconds
Specifies the holdtime in seconds. The default is 180 seconds and the valid
range is from 10 to 255 seconds.
timer
Sets the refresh time interval.
timer-seconds
Specifies the time interval in seconds. The default is 60 seconds and the valid
range is from 5 to 255 seconds.
Release
Modification
1.1(1)
This command was introduced.