Enabling and Disabling CDP Operation

Enabling CDP operation (the default) on the switch causes the switch to add entries to its CDP Neighbors table for any CDP packets it receives from other neighboring CDP devices.

Disabling CDP operation clears the switch's CDP Neighbors table and causes the switch to drop inbound CDP packets from other devices without entering the data in the CDP Neighbors table.


no cdp run

Enables or disables CDP read-only operation on the switch.

(Default: Enabled)


To disable CDP read-only on the switch:

switch(config)# no cdp run
When CDP is disabled:
  • show cdp neighbors

    displays an empty CDP Neighbors table

  • show cdp

    displaysGlobal CDP informationEnable CDP [Yes]: No