cdp
To enable Cisco Discovery Protocol (CDP) globally or on an interface, use cdp command in the global or interface 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 mode.
Command History
Release | Modification |
---|
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.
By default, CDP is disabled globally. You must first enable CDP globally and then enable CDP 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:
Router# configure
Router(config)# cdp
The following example shows how to enable CDP on an interface:
Router# configure
Router(config)# interface gigabitethernet 0/8
Router(config-if)# cdp