16- and 36-Port Ethernet Switch Module for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series
Enabling Cisco Discovery Protocol
To enable Cisco Discovery Protocol (CDP) globally, use the following command in global configuration
mode:
Command
Step 1
Router(config)# cdp run
Verifying the CDP Global Configuration
Step 1
Use the show cdp command to verify the CDP configuration:
Router# show cdp
Global CDP information:
Router#
Enabling CDP on an Interface
To enable CDP on an interface, use the following command in interface configuration mode:
Command
Step 1
Router(config-if)# cdp enable
The following example shows how to enable CDP on Fast Ethernet interface 5/1:
Router(config)# interface fastethernet 5/1
Router(config-if)# cdp enable
Verifying the CDP Interface Configuration
Use the show cdp interface command to verify the CDP configuration for an interface:
Step 1
Router# show cdp interface fastethernet 5/1
FastEthernet5/1 is up, line protocol is up
Encapsulation ARPA
Sending CDP packets every 120 seconds
Holdtime is 180 seconds
Router#
Sending CDP packets every 120 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
Purpose
Enables CDP globally.
Purpose
Enables CDP on an interface.
Cisco IOS Release 12.2(2)XT, 12.2(8)T, and 12.2(15)ZJ
Configuration Tasks
75