Jared Heinrichs

  • Technology Blog
  • Winnipeg Computer Repair
  • Winnipeg Photographer
  • Cooking With Jared
You are here: Home / Networking / Cisco CDP commands and output

May 21, 2013 By Jared Heinrichs Leave a Comment

Cisco CDP commands and output

First off… CDP stands for “Cisco Discovery Protocol”. It’s a protocol that… You guessed it.. Discovers other connected Cisco devices on your network.

There are several CDP commands and their output can look similar or completely different to other CDP commands.

On a Cisco exam you might be asked something like:

  • “Which of the following commands could tell you information about IOS” or
  • “Which of the following CDP command could identify a neighbor’s model of hardware”
  • “What Port does switch “s1” connect to switch “s3”.

To explain CDP I will be using Packet Tracer… Here is my Map:

image

A couple of things to also give you…

  • s1 – Port fa0/24 is connected to “fa0/24 on s2”.
  • s1 – Port fa0/23 is connected to “fa0/1 on s3”.
  • s2 – Port fa0/23 is connected to “fa0/2” on s3”

Look at s1’s perspective:

First we’ll look at both the “show cdp” and “show cdp neighbors” commands:

image

If we didn’t already know the names of the switches we now do. It’s listed under “Device ID” column. Also please note under Port ID you can see what port the switch connects to on the neighbor switch.

Next command will show all switches connected to a single switch. The command is “show cdp neighbors detail”.

 image

A command that gives similar output as the last one is: “show cdp entry s2”. This command though only shows the detailed info for switch you select.

image

Cisco recommends that you disabled CDP on any port that doesn’t connect to another Cisco device.

To completely disable/re-enable CDP on a switch run:

  • no cdp run (gloabal config) (disable for whole switch)
  • cdp run (global Config) (enable for whole switch)

To disable and enable the cdp on switch per interface you need to run these commands:

  • no cdp enable (interface subcommand)
  • cdp enable (interface subcommand)

Hope this helps explain CDP and what some of the information CDP can give you depending on what CDP command you use.

Filed Under: Networking

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Board Game Rules
  • Camera
  • Computer Hardware
    • Blackberry
    • drivers
    • iPad
    • Magic Jack
    • USB
  • Damn Small Linux
  • Exam Notes
  • Facebook
  • FREE Flashcards
  • Games
    • PC
      • League of Legends
    • Wii
    • xbox 360
  • Music
  • Networking
    • Cisco Certification
    • Mitel
    • Palo Alto Firewall
  • News
    • Google
    • Microsoft
  • Operating System
    • Active Directory (2003)
    • Android
    • Command Prompt
    • Damn Small Linux
    • Group Policy
    • Hyper-V
    • IIS
    • ISA 2006
    • Mac OS X
    • Microsoft Exchange Server
    • Powershell
    • Security
    • SME Server
    • Terminal Server 2003
    • Ubuntu Linux
      • Adito Web SSL VPN
      • OpenVpn-als
      • Webmin
    • Virtual Machine Manager
    • Windows 2003 SBS
    • Windows 2003 Server
    • Windows 2008
    • Windows 2008 R2
    • Windows 2012R2
    • Windows 7
    • Windows 8
    • Windows Command Line
    • Windows Deployment Services
    • Windows Server Backup
    • Windows Vista
    • Windows XP
  • Phones
  • Photography
  • Photos
    • Animals
    • Misc
    • Nature
    • Portraits
  • Portfolio
  • Programming
    • CSS
    • HTML
    • jQuery
    • MySQL
    • PHP
    • Script
  • Programs
    • Acrobat
    • Acrobat Reader
    • Adobe Dreamweaver
    • Adobe Illustrator
    • Adobe Photoshop
    • Anti-virus Software
    • Antivirus
    • Backup Exec
    • Bittorent
    • Blackberry BESADMIN
    • Internet Explorer 9
    • Lightroom
    • Microsoft Office
    • Netbeans
    • Onenote
    • Outlook
    • Shelby
    • Sysprep
    • Trend
    • Video Editing
    • Visual Studio
    • Windows Live Writer
    • WireShark
    • XP Mode
    • Zarafa
  • Recipe
  • Review
  • Software Links
  • Troubleshooting
  • Uncategorized
  • Videos
  • Web Applications
    • Brage
    • Google
    • Spiceworks
    • Wordpress
  • Web Browsers
    • Internet Explorer
  • Web Server
    • XAMPP
  • Winnipeg
    • ISP

Try searching this site!

Copyright © 2021 Winnipeg Web Design