Chapter 27 Configuring CDP

Configuring CDP

 

Command

Purpose

Step 3

 

 

cdp holdtime seconds

(Optional) Specify the amount of time a receiving device should hold the

 

 

information sent by your device before discarding it.

 

 

The range is 10 to 255 seconds; the default is 180 seconds.

Step 4

 

 

cdp advertise-v2

(Optional) Configure CDP to send Version-2 advertisements.

 

 

This is the default state.

Step 5

 

 

end

Return to privileged EXEC mode.

Step 6

 

 

show cdp

Verify your settings.

Step 7

 

 

copy running-config startup-config

(Optional) Save your entries in the configuration file.

 

 

 

Use the no form of the CDP commands to return to the default settings.

This example shows how to configure CDP characteristics.

Switch# configure terminal

Switch(config)# cdp timer 50

Switch(config)# cdp holdtime 120

Switch(config)# cdp advertise-v2

Switch(config)# end

For additional CDP show commands, see the “Monitoring and Maintaining CDP” section on page 27-5.

Disabling and Enabling CDP

CDP is enabled by default.

 

 

Note

Switch clusters and other Cisco devices (such as Cisco IP Phones) regularly exchange CDP messages.

 

 

 

 

Disabling CDP can interrupt cluster discovery and device connectivity. For more information, see

 

 

 

 

Chapter 6, “Clustering Switches” and see Getting Started with Cisco Network Assistant, available on

 

 

 

 

Cisco.com.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Beginning in privileged EXEC mode, follow these steps to disable the CDP device discovery capability:

 

 

 

 

 

 

 

 

 

 

 

Command

 

Purpose

 

 

 

Step 1

 

 

 

 

 

 

configure terminal

 

Enter global configuration mode.

 

 

 

Step 2

 

 

 

 

 

 

no cdp run

 

Disable CDP.

 

 

 

Step 3

 

 

 

 

 

 

end

 

Return to privileged EXEC mode.

 

 

 

 

 

 

 

 

 

 

 

Beginning in privileged EXEC mode, follow these steps to enable CDP when it has been disabled:

 

 

 

 

 

 

 

 

 

Command

 

Purpose

 

 

Step 1

 

 

 

 

configure terminal

Enter global configuration mode.

 

 

Step 2

 

 

 

 

 

cdp run

 

Enable CDP after disabling it.

 

 

Step 3

 

 

 

 

 

end

 

Return to privileged EXEC mode.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Catalyst 3750-E and 3560-E Switch Software Configuration Guide

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OL-9775-02

 

 

 

 

27-3

 

 

 

 

 

 

 

Page 617
Image 617
Cisco Systems 3750E manual Disabling and Enabling CDP, Cdp holdtime seconds, Cdp advertise-v2, Show cdp, 27-3