cdp

Syntax

cdp

描述

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.

The没有form of this command disables CDP support globally on all active interfaces or on a specific interface.

Command context

config

config-if

权威

Administrators or local user group members with execution rights for this command.

Examples

使得CDP globally:

switch(config)#cdp

Disabling CDP globally:

switch(config)#没有cdp

Enabling CDP on interface1/1/1:

switch(config)#interface 1/1/1switch(config-if)#cdp

Disabling CDP on interface1/1/1:

switch(config)#interface 1/1/1switch(config-if)#没有cdp