cdp
To enable the Cisco Discovery Protocol (CDP) globally or on an interface, use the cdp command in the appropriate configuration mode. To disable CDP globally or on an interface, use the no form of this command.
cdp
no cdp
Syntax Description
This command has no keywords or arguments.
Command Default
CDP is disabled.
Command Modes
Interface configuration
Command History
Release |
Modification |
---|---|
Release 7.0.12 |
This command was introduced. |
Usage Guidelines
By default, CDP is disabled globally. To enable CDP, CDP must be enabled globally and then enabled for each interface.
To enable CDP globally, use the cdp command in global configuration mode. To disable CDP globally, use the no form of this command in global configuration mode.
To enable CDP on a specific interface, use the cdp command in interface configuration mode. To disable CDP on a specific interface, use the no form of this command in interface configuration mode.
Task ID
Task ID |
Operations |
---|---|
cdp |
read, write |
Examples
The following example shows how to globally enable CDP:
RP/0/RP0/CPU0:router(config)# cdp
The following example shows how to enable CDP on an interface:
RP/0/RP0/CPU0:router(config-if)# cdp