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-7
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 4 C Commands
cdp
The following example enables (default) the CDP protocol on the switch. When CDP is enabled on an
interface, one packet is sent immediately. Subsequent packets are sent at the configured refresh time.
switch(config)#
cdp enable
Operation in progress. Please check global parameters
switch(config)#
The following example configures the Gigabit Ethernet interface 8/8 and disables the CDP protocol on
this interface. 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)#
interface gigbitethernet 8/8
switch(config-if)#
no cdp enable
Operation in progress. Please check interface parameters
switch(config-console)#
The following example enables (default) the CDP protocol on the selected interface. When CDP is
enabled on this interface, one packet is sent immediately. Subsequent packets are sent at the configured
refresh time.
switch(config-if)#
cdp enable
Operation in progress. Please check interface parameters
switch(config)#
The following example globally configures the refresh time interval for the CDP protocol in seconds.
The default is 60 seconds and the valid range is from 5 to 255 seconds.
switch#
config terminal
switch(config)#
cdp timer 100
switch(config)#
The following example globally configures the hold time advertised in CDP packet in seconds. The
default is 180 seconds and the valid range is from 10 to 255 seconds.
switch#
config terminal
switch(config)#
cdp holdtime 200
switch(config)#
The following example globally configures the CDP version. The default is version 2 (v2). The valid
options are v1 and v2.
switch#
config terminal
switch(config)#
cdp advertise v1
switch(config)#
Related Commands
Command
Description
clear cdp
Clears global or interface-specific CDP configurations.
show cdp
Displays configured CDP settings and parameters.