16- and 36-Port Ethernet Switch Module for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series
Configuration Tasks
75
Cisco IOS Release 12.2(2)XT, 12.2(8)T, and 12.2(15)ZJ
Enabling Cisco Discovery Protocol
To enable Cisco Discovery Protocol (CDP) globally, use the following command in global configuration
mode:
Verifying the CDP Global Configuration
Step 1
Use the show cdp command to verify the CDP configuration:
Router#
show cdp
Global CDP information:
Sending CDP packets every 120 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
Router#
Enabling CDP on an Interface
To enable CDP on an interface, use the following command in interface configuration mode:
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
Step 1
Use the show cdp interface command to verify the CDP configuration for an interface:
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#
Command
Purpose
Step 1
Router(config)#
cdp run
Enables CDP globally.
Command
Purpose
Step 1
Router(config-if)#
cdp enable
Enables CDP on an interface.