22-4
Cisco ME 3400 EthernetAccess Switch SoftwareConfiguration Guide
78-17058-01
Chapter22 Config u ring CDP
Configuring CDP
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:
Beginning in privileged EXEC mode, follow these steps to enable CDP on a po rt w hen i t ha s be en
disabled:
This example shows how to enable CDP on a port when it has been disable d.
Switch# configure terminal
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# cdp enable
Switch(config-if)# end
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Specify the interface on which you are d isab lin g C DP, and enter
interface configuration mode.
Note If the interface is a UNI, you must enter the port-type nni
interface configuration command before configuring CDP.
Step3 no cdp enable Disable CDP on the interface.
Step4 end Return to privileged EXEC mode.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Specify the interface on which you are enabling CDP, and enter
interface configuration mode.
Note If the interface is a UNI, you must enter the port-type nni
interface configuration command before configuring CDP.
CDP is enabled on NNIs by default.
Step3 cdp enable Enable CDP on the interface after disabling it.
Step4 end Return to privileged EXEC mode.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.