31-2
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 31 Configuring CDP
Configuring CDP
•
Displaying the CDP Interface Configuration, page 31-3
•
Monitoring and Maintaining CDP, page 31-3
Enabling CDP Globally
To enable CDP globally, use this command:
This example shows how to enable CDP globally:
Switch(config)#
cdp run
Displaying the CDP Global Configuration
To display the CDP configuration, use this command:
This example shows how to display the CDP configuration:
Switch#
show cdp
Global CDP information:
Sending CDP packets every 120 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
Switch#
For additional CDP
show
commands, see the
“Monitoring and Maintaining CDP” section on page 31-3
.
Enabling CDP on an Interface
To enable CDP on an interface, use this command:
This example shows how to enable CDP on Fast Ethernet interface 5/1:
Switch(config)#
interface fastethernet 5/1
Switch(config-if)#
cdp enable
Command
Purpose
Switch(config)# [
no
]
cdp run
Enables CDP globally.
Use the
no
keyword to disable CDP globally.
Command
Purpose
Switch#
show cdp
Displays global CDP information.
Command
Purpose
Switch(config-if)#
[no] cdp enable
Enables CDP on an interface.
Use the
no
keyword to disable CDP on an interface.
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...