cdp run

Syntax

[no] cdp run

Description

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

Parameters

no

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.

run

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.

Disable CDP read-only

switch# no cdp run
When CDP is disabled:
  • show cdp neighbors displays an empty CDP Neighbors table

  • show cdp displays

    Global CDP information

    Enable CDP [Yes]: No