cdp
Syntax
cdp
Description
Configures CDP support globally on all active interfaces or on a specific interface. By default, CDP is enabled on all active interfaces.
When CDP is enabled, the switch adds entries to its CDP Neighbors table for any CDP packets it receives from neighboring CDP devices.
When CDP is disabled, the CDP Neighbors table is cleared and the switch drops all inbound CDP packets without entering the data in the CDP Neighbors table.
Theno
form of this command disables CDP support globally on all active interfaces or on a specific interface.
Command context
config
config-if
Authority
Administrators or local user group members with execution rights for this command.
Examples
Enabling CDP globally:
switch(config)# cdp
Disabling CDP globally:
switch(config)# no cdp
Enabling CDP on interface 1/1/1:
switch(config)# interface 1/1/1 switch(config-if)# cdp
Disabling CDP on interface 1/1/1:
switch(config)# interface 1/1/1 switch(config-if)# no cdp