Send documentation comments to mdsfeedback-doc@cisco.com
4-7
Cisco MDS 9000 Family Command Reference
OL-8413-07, Cisco MDS SAN-OS Release 3.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.