Beruflich Dokumente
Kultur Dokumente
CDP can also be used for On-Demand Routing, which is a method of including routing information in CDP announcements so that dynamic routing protocols do not need to be used in simple network.
Network management applications can retrieve the device type and SNMP-agent address of neighboring Cisco devices using CDP. This enables applications to send SNMP queries to neighboring devices. CDP allows network management applications to discover Cisco devices that are neighbors of already known devices, in particular, neighbors running lower-layer, transparent protocols. CDP runs on all media that support Subnetwork Access Protocol (SNAP), including LAN and Frame Relay. CDP runs over the Data Link layer only. Cisco devices never forward CDP packets. When new CDP information is received, Cisco devices discard old information. The LLC header is 3 octets, and the SNAP header is 5 octets, so the LLC+SNAP headers are 8 octets long in total. Cisco devices send CDP announcements to the multicast destination address 01-00-0c-cc-cc-cc, out each connected network interface.
It is important to understand that because CDP operates at Layer 2 (data link layer of the OSI model), it functions independently of the Layer 3 (network) protocol (IP or IPX). CDP is on by default, but it can be disabled. In many cases, CDP is disabled on dial backup links, such as ISDN, so as to not keep the link up constantly.
Feature
CDP global enable state CDP port enable state CDP message interval CDP holdtime
Default Value
Enabled Enabled on all ports 60 seconds 180 seconds
CDP can be disabled with the no cdp run command in global configuration mode (conf t).
Router_2#sho cdp entry Router1 ------------------------Device ID: Router1 Entry address(es): IP address: 192.168.1.2 Platform: cisco 2500, Capabilities: Router Interface: Ethernet1, Port ID (outgoing port): Ethernet0 Holdtime : 180 sec Version: Cisco Internetwork Operating System Software IOS (tm) 2500 Software (2500-JS-L), Version 11.2(15) RELEASED SOFTWARE (fcl) Copyright (c) 1986-1998 by Cisco Systems, Inc. Compiled Mon 06-Jul-98 22:22 by tmullins
Field
Device ID Entry address(es) [network protocol] address Platform Capabilities
Definition
The name of the neighbor device and either the MAC address or the serial number of this device. A list of network addresses of neighbor devices. The network address of the neighbor device. The address can be in IP, IPX, AppleTalk, DECnet, or CLNS protocol conventions. The product name and number of the neighbor device. The device type of the neighbor. This device can be a router, a bridge, a transparent bridge, a source-routing bridge, a switch, a host, an IGMP device, or a repeater.
Interface Holdtime Version Duplex Mode Native VLAN VTP Management Domain
The protocol and port number of the port on the current device. The remaining amount of time, in seconds, the current device will hold the CDP advertisement from a transmitting router before discarding it. The software version of the neighbor device. The duplex state of connection between the current device and the neighbor device. The ID number of the VLAN on the neighbor device. A string that is the name of the collective group of VLANs associated with the neighbor device.
Field
Total packets output
Definition
The number of CDP advertisements transmitted by the local device. Note this value is the sum of the CDP Version-1 advertisements output and CDP Version-2 advertisements output fields. The number of CDP advertisements received by the local device. Note this value is the sum of the CDP Version-1 advertisements input and CDP Version-2 advertisements input fields. The number of CDP advertisements with bad headers, received by the local device. The number of times the checksum (verifying) operation failed on incoming CDP advertisements. The number of times CDP failed to transmit advertisements on an interface because of a failure caused by the local device's bridge port. The number of times the local device did not have enough memory to store the CDP advertisements in the advertisement cache table when the device was attempting to assemble advertisement packets for transmission and parse them when receiving them. The number of invalid CDP advertisements received and transmitted by the local device. The number of times fragments or portions of a single CDP advertisement were received by the local device instead of the complete advertisement.
Input
Invalid Fragmented
CDP version 1 advertisements output Input CDP version 2 advertisements output Input
The number of CDP Version-1 advertisements received by the local device. The number of CDP Version-2 advertisements transmitted by the local device.