Friday 29 November 2013

How to Configure Cisco Discovery Protocol (CDP)

Real World Application & Core Knowledge:


Cisco Discovery Protocol every day by network engineers worldwide record and all understand the physical network topology and not stall. CDP runs on the 2nd layer of the OSI model and exchanging information between IP addresses of most Cisco devices, physical link connection port identifier, interface device IOS version, device capabilities, such as the native VLAN, duplex and VTP management domain.


In this lab, you will familiarize yourself with the following command;

Lab Prerequisites:

  • Than load if you use GNS3 CCNA free Binder GNS3 topology than starting system R1 and SW1
  • Building R1 and SW1 configuration console sessions respecting the hostname of the device (s).
  • IP addresses configured on R1 ′ s FastEthernet0/0 interface 192.168.255.1/24
  • SW1 ′ s Vlan1 interface configuration on IP address 192.168.255.254/24.
Lab Objectives:

  • Use only R1, determine if SW1 IOS feature set and version that is running on.
  • Use only the SW1, determine the IP address of R1 through CDP learned.
  • Use only R1, determine the ports of R1 is connected to SW1.
  • Use only R1, determine if the native VLAN and VTP domain are on the R1 is connected directly to the switch ports.
  • Clear R1 on the CDP table, and verify that it has been cleared; ex post facto verifying R1 relearns about the SW1.
  • Change the default timer R1 and SW1 from one to sixty-one hundred and eightieths and verify that your configuration changes.
Step 1. Use the only the R1, determine if SW1 IOS feature set and version that is running on. To determine this information in user or privileged mode, as shown below on the R1 show CDP neighbors detail command is executed.

The statement as shown above with the bottom line SW1; run the enterprise/FW/ID plus IPSEC 3DES version 12.4 (13A).

Step 2. Use only the SW1, determine the IP address of R1 through CDP learned. To obtain this information, you will use the show CDP neighbors detail command on SW1 in user or privileged mode see below;

SW1#show cdp neighbors detail
-------------------------
Device ID: R1
Entry address(es): 
  IP address: 192.168.255.1
Platform: Cisco 3725,  Capabilities: Router Switch IGMP 
Interface: FastEthernet0/1,  Port ID (outgoing port): FastEthernet0/0
Holdtime : 168 sec
Version :
Cisco IOS Software, 3700 Software (C3725-ADVENTERPRISEK9-M), Version
12.4(15)T14, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Tue 17-Aug-10 12:08 by prod_rel_team
advertisement version: 2
VTP Management Domain: ''
Duplex: full
SW1#

The statement as shown above with the bottom line R1 has an IP address assigned to the interface of the CDP frame is sent out 192.168..

Step 3. Use the only the R1, determine the ports of R1 is connected to SW1. To obtain this information or CDP neighbor display you can use the show CDP neighbors detail command.

R1#show cdp neighbors
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
SW1                  Fas 0/0              125        R S I         3640       Fas 0/1
R1#

Step 4. Change the default timer on the R1 and SW1 from one to sixty-one hundred and eightieths and verify that your configuration changes. To make these changes using CDP timer and CDP Holdtime global configuration command. To verify that the changes in the user or privileged mode, use the show CDP command, as shown below;

R1>enable
R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#cdp timer 15
R1(config)#cdp holdtime 45
R1(config)#end
%SYS-5-CONFIG_I: Configured from console by console         
R1#show cdp
Global CDP information:
Sending CDP packets every 15 seconds
Sending a holdtime value of 45 seconds
Sending CDPv2 advertisements is  enabled
R1#

0 comments:

Post a Comment