Table Of Contents
New Error Messages Sent to the Console
Unmatching Duplex Error Message Field Descriptions
Unmatching Duplex Error Message Field DescriptionsConfiguring, Monitoring and Maintaining Tasks
Monitor and Maintain CDP Activity
CDP Additions for Cisco IOS
Feature Summary
The Cisco Discovery Protocol (CDP) is a media-independent device discovery protocol that runs on all Cisco manufactured equipment, including routers, bridges, access servers, and switches. CDP Version-2 is the most recent release of the protocol and provides more intelligent device tracking features. This feature module describes the following additions to CDP that provide CDP Version-2 functionality:
•
New error messages sent to the console (and, optionally, to a logging server on another server). The messages provide coverage for instances of unmatching native VLAN IDs (IEEE 802.1Q) on connecting ports, and unmatching port duplex states between connecting devices.
•
cdp advertise-v2 command and new output from show cdp commands.
Each device sends periodic messages to a multicast address and listens to the periodic messages sent by others in order to learn about neighboring devices and determine when their interfaces to the media go up or down. Each device advertises at least one address at which it can receive SNMP messages. The advertisements contain holdtime, information, which indicates the period of time a receiving device should hold CDP information from a neighbor before discarding it.
With CDP, network management applications can learn the device type and the SNMP agent address of neighboring devices. This process enables applications to send SNMP queries to neighboring devices.
Benefits
•
A reporting mechanism saving time for tracking errors that create costly downtime for the following:
•
Unmatching duplex states between devices
•
Unmatching (IEEE 802.1Q) native VLAN IDs between connecting ports
•
Expanded commands providing detailed output on VLAN Trunking Protocol (VTP) management domain and duplex modes of neighbor devices, CDP-related counters, and VLAN IDs of connecting ports
List of Terms
advertisement—An updated information packet sent periodically by the CDP process.
holdtime—The amount of time, in seconds, the receiving device should hold a CDP advertisement from a neighbor before discarding it.
neighbor—A remote system, connected to the subject system on one or more of its interfaces.
Type Length Value (TLV)—A piece of information in a CDP advertisement.
VLAN Trunking Protocol (VTP)—A discovery technique deployed by switches where each switch advertises its management domain on its trunk ports, its configuration revision number, and its known VLANs and their specific parameters. A VTP domain is made up of one or more interconnected devices that share the same VTP domain name. A switch can be configured to be in only one VTP domain.
Platforms
This feature is supported on the following routers and access servers:
•
Cisco 700 series
•
Cisco 1000 series
•
Cisco 1600 series
•
Cisco 2500 series
•
Cisco 2500 series access servers
•
Cisco 3600 series
•
Cisco 3800 series
•
Cisco 4000 series
•
Cisco AS5100 access server
•
Cisco AS5200 universal access server
•
Cisco 7000 series
•
Cisco 7200 series
•
Cisco 7500 series
Supported MIBs and RFCs
This feature supports the CISCO CDP-MIB.
Functional Description
New Type Length Values
Type Length Values (TLVs) are blocks of information embedded in CDP advertisements. Table 1 summarizes existing TLVs.
Table 1 Existing TLV Descriptions
CDP can now advertise new features, using the following new TLVs:
•
VTP management domain TLV. This TLV is used by network operators to verify VTP domain configuration in adjacent network nodes.
•
Native VLAN TLV. This TLV is used by CDP to indicate, per interface, the assumed VLAN for untagged packets on the interface. CDP learns the native VLAN for an interface. This feature is implemented only for devices that support the IEEE 802.1Q protocol.
•
Full/half duplex TLV. This TLV is used by network operators to diagnose connectivity problems between adjacent network elements.
New Error Messages Sent to the Console
CDP sends error messages to the console (and, optionally, to a logging server on another system) during operation. CDP now sends error messages that detail:
•
Unmatching duplex states between devices
•
Unmatching IEEE 802.1Q VLAN IDs on connecting ports
Unmatching Duplex States
Instances where unmatching duplex states are reported between two devices are displayed in the console in the following format:
Error Message%DUPLEX_MISMATCH: duplex mismatch discovered on [local interface (local interface duplex mode)], with [neighbor name neighbor interface (neighbor duplex mode)]Explanation
CDP discovered a mismatch of duplex configuration. The received duplex TLV does not match the interface's configuration:
Recommended Action
Configure the interfaces so that they have the same duplex mode.
Table 2 describes field descriptions shown in the error message syntax statement.
Unmatching Duplex Error Message Field Descriptions
Unmatching Duplex Error Message Field DescriptionsAn example of a system log message reporting unmatching duplex states is as follows:
%DUPLEX_MISMATCH: duplex mismatch discovered on Ethernet1/0 (half), with other-router Ethernet2/3 (full).Note that interface Ethernet1/0 is operating at half duplex and interface Ethernet2/3 is operating at full duplex.
Unmatching VLAN Port IDs
Instances where unmatching VLAN IDs are reported between two devices are displayed in the console in the following format:
Error Message%NATIVE_VLAN_MISMATCH: native VLAN mismatch discovered on [local interface (local interface VLAN ID),] with [neighbor name neighbor interface (neighbor VLAN ID)]Explanation
CDP discovered a mismatch of native VLAN configuration. The received native VLAN TLV does not match the interface's configuration.
Recommended Action
Configure the interfaces so that they have the same native VLAN ID.
Table 3 describes the fields shown in the error message syntax statement.
Table 2 Unmatching Native VLAN ID Error Message Field Descriptions
An example of a system log message reporting unmatching native VLAN IDs is as follows:
Native VLAN mismatch discovered on Ethernet1/0 (5), withrouter1 Ethernet2/3 (27).Note that interface Ethernet1/0 has a native VLAN ID of 5 and interface Ethernet 2/3 has a native VLAN ID of 27.
Configuring, Monitoring and Maintaining Tasks
This section describes configuring, monitoring and maintaining CDP activity.
To enable CDP Version-2 advertisements, use the following command in global configuration mode:
Monitor and Maintain CDP Activity
To show display information about CDP commands, use one of the following commands in privileged EXEC mode:
Command Reference
This section documents the following new or modified commands. All other commands used with this feature are documented in the Cisco IOS Release 12.0 command references.
cdp advertise-v2
To enable advertising CDP Version-2 functionality on a device, use the cdp advertise-v2 global configuration command. To disable advertising CDP Version-2 functionality, use the no form of the command.
cdp advertise-v2
no cdp advertise-v2Syntax Description
This command has no keywords or arguments.
Default
Enabled
Command Mode
Global configuration
Usage Guidelines
This command first appeared in Cisco IOS Release 12.0(3)T. Three new TLVs have been added to CDP Version-2. They are VTP management domain, native VLAN, and full/half duplex TLVs.
Example
The following example enables a device called router1 to send CDP Version-2 advertisements:
router1(config)# cdp advertise-v2Related Commands
cdp enable
cdp runshow cdp
To display global CDP information, including timer and holdtime information, use the show cdp EXEC command.
show cdp
Syntax Description
This command has no keywords or arguments.
Command Mode
EXEC
Usage Guidelines
This command first appeared in Cisco IOS Release 10.3.
Example
The following example shows that the current router is transmitting CDP advertisements every one minute. Also shown is that the current router directs its neighbors to hold its CDP advertisements for three minutes, and that the router is enabled to transmit CDP Version-2 advertisements:
router# show cdpGlobal CDP information:Sending CDP packets every 60 secondsSending a holdtime value of 180 secondsSending CDPv2 advertisements is enabledTable 4 describes the fields shown in the example.
Table 3 show CDP Field Descriptions
Related Commands
cdp advertise-v2
cdp holdtime
cdp timer
show cdp entry
show cdp interface
show cdp neighbors
show cdp trafficshow cdp neighbors
To display information about neighbors, use the show cdp neighbors EXEC command.
show cdp neighbors [type number] [detail]
Syntax Description
Default
None
Command Mode
EXEC
Usage Guidelines
This command first appeared in Cisco IOS Release 10.3.
Example
The following example specifies information related to the show cdp neighbors command:
router# show cdp neighborsCapability Codes:R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - RepeaterDevice ID Local Intrfce Holdtme Capability Platform Port IDjoe Eth 0 133 4500 Eth 0sam Eth 0 152 R AS5200 Eth 0terri Eth 0 144 3640 Eth 0/0maine Eth 0 141 RP1 Eth 0/0sancho Eth 0 164 7206 Eth 1/0Table 5 describes the fields shown in the example.
Table 4 show cdp neighbors Field Descriptions
The following is sample output for one neighbor from the show cdp neighbors detail command. Additional detail is shown about neighbors, including network address, enabled protocols, and software version.
router# show cdp neighbors detailDevice ID: 008024 1EEB00 (milan-sw-1-cat9k)Entry address(es):IP address: 1.15.28.10Platform: CAT5000, Capabilities: SwitchInterface: Ethernet1/0, Port ID (outgoing port): 2/7Holdtime : 162 secVersion :Cisco Catalyst 5000Duplex Mode: fullNative VLAN: 42VTP Management Domain: `Accounting Group'Table 6 describes field descriptions shown in the example.
Table 5 show cdp neighbors detail Field Descriptions
Related Commands
show cdp
show cdp entry
show cdp interface
show cdp trafficshow cdp traffic
To display information from the CDP table, use the show cdp traffic EXEC command.
show cdp traffic
Syntax Description
This command has no keywords or arguments.
Command Mode
EXEC
Usage Guidelines
This command first appeared in Cisco IOS Release 10.3.
Example
The following example specifies information associated with the show cdp traffic command:
router# show cdp trafficTotal packets output: 543, Input: 333Hdr syntax: 0, Chksum error: 0, Encaps failed: 0No memory: 0, Invalid: 0, Fragmented: 0CDP version 1 advertisements output: 191, Input: 187CDP version 2 advertisements output: 352, Input: 146Table 7 describes the fields shown in the example.
Table 6 show cdp traffic Fields
Related Commands
show cdp
show cdp entry
show cdp interface
show cdp neighborsWhat to Do Next
For more information, see sections on IP configuration in the Network Protocols Configuration Guide, Part 1 and the Configuration Fundamentals Configuration Guide.
