- Overview
- Assigning the Switch IP Address and Default Gateway
- Configuring Switch Boot Optimization
- Administering the Switch
- Configuring the Switch Alarms
- Configuring SDM Templates
- Configuring Smartports Macros
- Configuring LLDP and LLDP-MED
- Configuring Port-Based Traffic Control
- Configuring CDP
- Configuring SPAN and RSPAN
- Configuring RMON
- Configuring System Message Logging
- Configuring SNMP
- Configuring Embedded Event Manager
- Configuring Cisco IOS IP SLAs Operations
- Configuring Ethernet OAM, CFM, and E-LMI
- Configuring Online Diagnostics
- Supported MIBs
Configuring CDP
This chapter describes how to configure Cisco Discovery Protocol (CDP) on the Cisco Industrial Ethernet 2000U Series (IE 2000U) and Connected Grid Switches, hereafter referred to as switch .
Note
For complete syntax and usage information for the commands used in this chapter, see the documents listed in the“Related Documents” section.
Information About CDP
CDP is a device discovery protocol that runs over Layer 2 (the data link layer) on all Cisco-manufactured devices (routers, bridges, access servers, and switches) and allows network management applications to discover Cisco devices that are neighbors of already known devices. With CDP, network management applications can learn the device type and the Simple Network Management Protocol (SNMP) agent address of neighboring devices running lower-layer, transparent protocols. This feature enables applications to send SNMP queries to neighboring devices.
CDP runs on all media that support Subnetwork Access Protocol (SNAP). Because CDP runs over the data-link layer only, two systems that support different network-layer protocols can learn about each other.
Each CDP-configured device sends periodic messages to a multicast address, advertising at least one address at which it can receive SNMP messages. The advertisements also contain time-to-live, or hold time information, which is the length of time a receiving device holds CDP information before discarding it. Each device also listens to the messages sent by other devices to learn about neighboring devices.
Prerequisites
Interfaces must support Subnetwork Access Protocol (SNAP) headers.
Guidelines and Limitations
Default Settings
|
|
|
|---|---|
Configuring CDP
This section includes the following topics:
- Configuring the CDP Characteristics
- Disabling and Enabling CDP
- Disabling and Enabling CDP on an Interface
Configuring the CDP Characteristics
You can configure the frequency of CDP updates, the amount of time to hold the information before discarding it, and whether or not to send Version-2 advertisements.
CDP packets are sent with a time to live, or hold time, value. The receiving device will discard the CDP information in the CDP packet after the hold time has elapsed.
You can set the hold time lower than the default setting of 180 seconds if you want the receiving devices to update their CDP information more rapidly. The CDP hold time must be set to a higher number of seconds than the time between CDP transmissions, which is set using the cdp timer command.
BEFORE YOU BEGIN
Steps 2 through 4 are all optional and can be performed in any order.
DETAILED STEPS
Use the no form of the CDP commands to return to the default settings.
EXAMPLE
This example shows how to configure CDP characteristics:
Disabling and Enabling CDP
CDP is enabled by default on NNIs. It is disabled by default on ENIs but can be enabled.
Disabling CDP
BEFORE YOU BEGIN
Cisco devices (such as Cisco IP phones) regularly exchange CDP messages with connected devices. Disabling CDP can interrupt device connectivity.
DETAILED STEPS
|
|
|
|
|---|---|---|
EXAMPLE
Enabling CDP
DETAILED STEPS
|
|
|
|
|---|---|---|
EXAMPLE
Disabling and Enabling CDP on an Interface
CDP is enabled by default on NNIs to send and to receive CDP information. You can enable CDP on ENIs, but it is not supported on UNIs.
Disabling CDP on an Interface
BEFORE YOU BEGIN
Cisco devices (such as Cisco IP phones) regularly exchange CDP messages with connected devices. Disabling CDP can interrupt device connectivity.
DETAILED STEPS
EXAMPLE
Enabling CDP on an Interface
DETAILED STEPS
EXAMPLE
This example shows how to enable CDP on a port when it has been disabled:
This example shows how to change a UNI to an ENI and enable CDP on the port:
Verifying Configuration
Configuration Example
This example shows how to configure CDP characteristics:
This example shows how to globally enable CDP if it has been disabled:
This example shows how to enable CDP on a port when it has been disabled:
This example shows how to change a UNI to an ENI and enable CDP on the port:
Related Documents
Feature History
|
|
|
|---|---|
Feedback