30% off every course until Sunday, October 11. Our biggest update yet, and we'd like you to try it. Applied automatically at checkout.

Choose your certification
Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

3.3.1. Cisco Discovery Protocol (CDP)

CDP is enabled by default on Cisco devices and shares:

  • Device name and IP address
  • Platform and capabilities
  • Interface information
  • VLAN information
Switch# show cdp neighbors
Capability Codes: R-Router, S-Switch, I-IGMP, r-Repeater, P-Phone

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
Router1          Gig 0/1           175             R S    ISR4331   Gig 0/0
Switch2          Gig 0/24          162              S     WS-C3850  Gig 0/24

Switch# show cdp neighbors detail    (adds each neighbor's IP address and IOS version)
Switch# show cdp entry Router1       (the same detail for one neighbor)
CDP Configuration:
Switch(config)# cdp run                           ! Enable globally
Switch(config)# no cdp run                        ! Disable globally
Switch(config)# interface GigabitEthernet0/1
Switch(config-if)# no cdp enable                  ! Disable on interface
See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•20 professional certifications