Chapter 27 Configuring CDP

Configuring CDP

This example shows how to enable CDP if it has been disabled.

Switch# configure terminal

Switch(config)# cdp run

Switch(config)# end

Disabling and Enabling CDP on an Interface

CDP is enabled by default on all supported interfaces to send and to receive CDP information.

Beginning in privileged EXEC mode, follow these steps to disable CDP on a port:

 

Command

Purpose

Step 1

 

 

configure terminal

Enter global configuration mode.

Step 2

 

 

interface interface-id

Specify the interface on which you are disabling CDP, and enter

 

 

interface configuration mode.

Step 3

 

 

no cdp enable

Disable CDP on the interface.

Step 4

 

 

end

Return to privileged EXEC mode.

Step 5

 

 

copy running-config startup-config

(Optional) Save your entries in the configuration file.

 

 

 

 

Beginning in privileged EXEC mode, follow these steps to enable CDP on a port when it has been

 

disabled:

 

 

 

 

 

Command

Purpose

Step 1

 

 

configure terminal

Enter global configuration mode.

Step 2

 

 

interface interface-id

Specify the interface on which you are enabling CDP, and enter

 

 

interface configuration mode.

Step 3

 

 

cdp enable

Enable CDP on the interface after disabling it.

Step 4

 

 

end

Return to privileged EXEC mode.

Step 5

 

 

copy running-config startup-config

(Optional) Save your entries in the configuration file.

 

 

 

This example shows how to enable CDP on a port when it has been disabled.

Switch# configure terminal

Switch(config)# interface gigabitethernet1/0/1

Switch(config-if)# cdp enable

Switch(config-if)# end

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

27-4

OL-9775-02

 

 

Page 618
Image 618
Cisco Systems 3750E manual Disabling and Enabling CDP on an Interface, No cdp enable Disable CDP on the interface, 27-4