Vous êtes sur la page 1sur 3

Cisco Discovery Protocol is used every single day by network engineers world wid

e to document and understand physical network topologies with no documentation a


t all. CDP operates at Layer 2 of the OSI model and exchanges device information
between MOST Cisco devices such as IP address(es), physical link connectivity,
port identifiers, IOS version of neighboring devices, device capabilities, nativ
e VLAN, duplex and VTP management domain.
####################################################################
Step 1.
Using only R1, determine which IOS feature set and version is running on
SW1. To determine this information you will execute the show cdp neighbor detai
l command in user or privileged mode on R1 as shown below.
R1>show cdp neighbors detail
------------------------Device ID: Router
Entry address(es):
Platform: Cisco 3640, Capabilities: Router Switch IGMP
Interface: FastEthernet0/0, Port ID (outgoing port): FastEthernet0/1
Holdtime : 134 sec
Version :
Cisco IOS Software, 3600 Software (C3640-JK9O3S-M), Version 12.4(13a),
RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Tue 06-Mar-07 20:25 by prod_rel_team
advertisement version: 2
VTP Management Domain: ''
Duplex: full
As shown above by the underlined statements; SW1 is running ENTERPRISE/FW/IDS PL
US IPSEC 3DES Version 12.4(13a).
##################################################################
Step 2. Using only SW1, determine the IP address of R1 learned via CDP. To obtai
n this information you will use the show cdp neighbors detail command on SW1 in
either user or privileged mode as shown 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#
As shown above by the underlined statements; R1 has the IP address 192.168.255.1

assigned to the interface which the CDP frame was sent out.
##############################################################################
Step 3.
Using only R1, determine the port R1 is connected to on SW1. To obtain t
his information you can use either the show cdp neighbors or 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
SW1
R1#

Local Intrfce
Fas 0/0

Holdtme
125

Capability Platform Port ID


R S I
3640
Fas 0/1

As shown above by the underlined statements; R1 FastEthernet0/0 interface is con


nected to SW1 s FastEthernet0/1 port.
#########################################################################
Step 4.
Using only R1, determine what the Native VLAN and VTP Domain is on the s
witchport that R1 is directly connected to. This information is obtained by usin
g the show cdp neighbors detail command as shown below;
R1>show cdp neighbors detail
------------------------Device ID: SW1
Entry address(es):
IP address: 192.168.255.254
Platform: Cisco 3640, Capabilities: Router Switch IGMP
Interface: FastEthernet0/0, Port ID (outgoing port): FastEthernet0/1
Holdtime : 157 sec
Version :
Cisco IOS Software, 3600 Software (C3640-JK9O3S-M), Version 12.4(13a),
RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Tue 06-Mar-07 20:25 by prod_rel_team
advertisement version: 2
VTP Management Domain: ''
Duplex: full
R1>
As shown above by the underlined statements; the VTP Domain is blank. This is ca
lled NULL which simply means that no VTP domain has been configured on the switch
that advertised that CDP Frame. The native VLAN number on the switch s port that R
1 is directly connected to is VLAN 1.
################################################################################
##
Step 5. Clear the CDP table on R1 and verify that it has been cleared; afterward
s verify that R1 relearns about SW1. To clear the CDP table, use the clear cdp t
able command in privileged mode as shown below followed by the verification;
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
173
R S I
2650XM
Fas 1/0
R1#clear cdp table
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
R1#

Local Intrfce

Holdtme

Capability Platform Port ID

###########################################################################
Step 6.
Change the default timers on both R1 and SW1 from 60/180 to 15/45 and ve
rify your configuration changes. To make these changes you will use the cdp time
r and cdp holdtime commands in global configuration. To verify the changes made
use the show cdp command in user or privileged mode 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#

Vous aimerez peut-être aussi