CDP default settings:
- sends packets every 60 seconds
- hold time is 180 seconds
- CDPv2
To enable:
- Global: CDP RUN
- Interface: CDP ENABLE
show cdp – to see the cdp settings
sh cdp ?
entry Information for specific neighbor entry
interface CDP interface status and configuration
neighbors CDP neighbor entries
traffic CDP statistics
| Output modifiers
<cr>
sw1#sh cdp entry *
————————-
Device ID: r1
Entry address(es):
IPv6 address: FE80::200:11FF:FE11:1111 (link-local)
IPv6 address: 23::1 (global unicast)
Novell address: ABCD.0000.1111.1111
Platform: Cisco 3640, Capabilities: Router Switch IGMP
Interface: FastEthernet1/1, Port ID (outgoing port): Ethernet0/0
Holdtime : 156 sec
Version :
Cisco IOS Software, 3600 Software (C3640-JK9O3S-M), Version 12.4(16a), RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Mon 10-Sep-07 12:25 by prod_rel_team
advertisement version: 2
VTP Management Domain: ”
Duplex: full
( the same output as sw1#sh cdp nei f1/1 det)
sh cdp int f1/1
FastEthernet1/1 is up, line protocol is up
Encapsulation ARPA
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
sw1#sh cdp nei
Capability Codes: R – Router, T – Trans Bridge, B – Source Route Bridge
S – Switch, H – Host, I – IGMP, r – Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
r1 Fas 1/1 126 R S I 3640 Eth 0/0
sw1#sh cdp traffic
CDP counters :
Total packets output: 4618, Input: 1139
Hdr syntax: 0, Chksum error: 0, Encaps failed: 0
No memory: 0, Invalid packet: 0, Fragmented: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 4618, Input: 1139