INCLUDE_DATA

Cisco Discovery Protocol - CDP

Written by Tshepho Koboyatshwene on September 7, 2008 – 6:40 am -

This weekend was yet another CCNA Laboratory session, this time around it was divided into two:

  1. Using CDP to gather information
  2. Building a Hosts table in a router

A Cisco Discovery Protocol (CDP) is a protocol which was designed by Cisco guys to promote “spying” on neighbouring devices by network administrators. Well, of course, not the Alex Litvinenko spying but spying as in being used to collect information about attached and remote devices, this could be hardware information, protocol information etc.

Cisco uses the commands such as:

  • show cdp neighbors” : to display information about other devices connected to your device. Using the configuration in Basic Router and Switch Configuration Lab, suppose that you are in Router 2 (PxR2) and you want to check all the devices connected to that router: The much simplier way will be to use the command
  • PxR2#show cdp neighbors
    which outputs the information :
    Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
    S - Switch, H - Host, I - IGMP, r - Repeater

    Device ID Local Intrfce Holdtime Capability Platform Port ID
    PxR1 Ser 0/0/0 167 R 2610 Ser 0/0
    PxS1 Fas 0/0 134 S I WS-C2950- Fas 0/1

    A switch, PxS1 and one router, PxR1 are the only devices connected to router 2, PxR2.

  • Obviously the information is not of much value, so that’s why Cisco came up with another command show cdp neighbor detail” which provides a much more detailed information about connected devices such as their IP Addresses, Cisco version, holdtime etc are revealed.
  • PxR2#show cdp neighbor detail
    ————————-
    Device ID: PxR1
    Entry address(es):
    IP address: 172.16.17.1
    Platform: cisco 2610, Capabilities: Router
    Interface: Serial0/0/0, Port ID (outgoing port): Serial0/0
    Holdtime : 124 sec

    Version :
    Cisco Internetwork Operating System Software
    IOS ™ C2600 Software (C2600-JK9O3S-M), Version 12.2(24), RELEASE SOFTWARE (fc1)
    Copyright (c) 1986-2004 by cisco Systems, Inc.
    Compiled Wed 28-Apr-04 15:30 by kellmill

    advertisement version: 2

    ————————-
    Device ID: PxS1
    Entry address(es):
    IP address: 192.168.27.1
    Platform: cisco WS-C2950-24, Capabilities: Switch IGMP
    Interface: FastEthernet0/0, Port ID (outgoing port): FastEthernet0/1
    Holdtime : 151 sec

    Version :
    Cisco Internetwork Operating System Software
    IOS ™ C2950 Software (C2950-I6Q4L2-M), Version 12.1(11)EA1, RELEASE SOFTWARE (fc1)
    Copyright (c) 1986-2002 by cisco Systems, Inc.
    Compiled Wed 28-Aug-02 10:25 by antonino

    advertisement version: 2
    Protocol Hello: OUI=0×00000C, Protocol ID=0×0112; payload len=27, value=00000000FFFFFFFF010221FF000000000000000
    9E40FF0000
    VTP Management Domain: ‘null’
    Duplex: full

  • The “show cdp ?” was rather useful when I needed to get any Cisco Discovery Protocol command. For instance
  • PxR2#show cdp ?
    entry - Information for specific neighbor entry
    interface - CDP interface status and configuration
    neighbors - CDP neighbor entries
    traffic - CDP statistics
    | - Output modifiers

The next article will be about the second part of this laboratory session, that is, Building a Hosts table. In addition to that, I will talk about how I collected information of neighbouring devices (using Cisco Discovery Protocol + Hosts table) as well as obtaining information of neighbouring devices of neighbours and neighbouring devices of neighbour’s neighbouring devices; We could be here all day, I guess you see where I’m going with this.

Thanks for your comments ;-)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Webnews
  • MisterWong
  • Y!GG
  • Facebook
  • Google Bookmarks
  • Slashdot
  • Technorati

Tags: , , , , , , ,
Posted in CCNA | 1 Comment »

Basic Router and Switch Configuration Lab

Written by Tshepho Koboyatshwene on September 1, 2008 – 3:08 pm -

Last weekend I had my first CCNA laboratory session which consisted of 3 lab activities.The laboratory was meant to take 6 hours but i had a head start having played around with my simulator under similar configuration. I was given 3 cisco routers and 1 switch to play with using the configuration ( at least that is what I was supposed to have by the end of the lab) as shown in the image below:

Basically, the aim of the lab was to configure the three routers by:

  • Setting IP addresses
  • Giving them Hostnames
  • Configuring each routers interface
  • Setting passwords
  • Banner message of the day e.t.c

It was just a basic lab except I had a slight difficulty when setting password using the “service password-encryption” command but I finally figured it out by :

  1. First setting a secret password for the router, using command
    secret password [your password]
  2. Set the passwords for a line console, line aux and line vty, using command :
    password [your password]
  3. And then finally to do the actual encryption of all the passwords I had to use “service password-encryption” command. I checked the passwords using “show running-config command”.
  4. Afterwards I used “no service password-encryption” command. The passwords were still encrypted. So I was convinced that “no service password-encryption” command does not un-encrypt passwords, instead it leaves the passwords as there are (in this particular case encrypted).

All in all the lab was good experience. I am looking forward to my next lab which will be on the 6th September. Based on the notes so far, i have a feeling that it will be much more interesting than the other one. Apparently it is going to be about CDP (Cisco Discovery Protocol) lab.

Till next time

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Webnews
  • MisterWong
  • Y!GG
  • Facebook
  • Google Bookmarks
  • Slashdot
  • Technorati

Tags: , , , , ,
Posted in CCNA | 1 Comment »
RSS