20-4
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapte r 20 Configuri ng CDP
Configuring CDP
This example shows how to enable CDP if it has bee n 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 receive CDP information.
Beginning in privileged EXEC mode, follow these steps to disable CDP on an interface:
Beginn ing in pri vile ged E XEC mode, follo w these steps to enable CDP on an interf ace when it has been
disabled:
This exam ple sh ows how to enabl e C DP on an i n terface wh en i t ha s be en disa ble d.
Switch# configure terminal
Switch(config)# interface fastethernet0/5
Switch(config-if)# cdp enable
Switch(config-if)# end
Command Purpose
Step 1 configure terminal Enter globa l configurati on mode.
Step 2 int er fa ce interface-id Enter interface configuration mode, and enter the interface on which
you are di sabli ng CD P.
Step 3 no cdp enable Disable CDP on an interface.
Step 4 end Return to privileged EXEC mode.
Step 5 copy running-config startup-config (Optiona l) Save your entries in the co nfigurati on file.
Command Purpose
Step 1 configure terminal Enter globa l configurati on mode.
Step 2 int er fa ce interface-id Enter inter f a ce config u ra tion mode , a nd en te r the interf ac e o n whic h
you are enabling CD P.
Step 3 cdp enable Enable CDP on an interface after disabling it.
Step 4 end Return to privileged EXEC mode.
Step 5 copy running-config startup-config (Optiona l) Save your entries in the co nfigurati on file.