Lab 4 1 6
Lab 4 1 6
Objective
Use CDP commands to obtain information about neighboring networks and devices.
Display information on how CDP is configured for its advertisement and discovery frame
transmission.
Background/Preparation
CDP discovers and shows information about directly connected Cisco devices, including routers and
switches. CDP is a Cisco proprietary protocol that runs at the data link layer of the OSI model. The
data link layer is Layer 2 of the OSI model. This allows devices that may be running different network
Layer 3 protocols, such as IP or IPX, to learn about each other. CDP begins automatically upon a
device system startup. However, if Cisco IOS Release 10.3 or a newer version is used, CDP must be
enabled on each of the device interfaces. Enable CDP by using the cdp enable command. Using
the command show cdp interface gathers the information that CDP uses for its advertisement
and discovery frame transmission. Use show cdp neighbors and show cdp neighbors
detail to display the CDP updates received on the local router.
Cable a network similar to the one in the previous diagram. Any router that meets the interface
requirements may be used. Possible routers include 800, 1600, 1700, 2500, 2600 routers, or a
combination. Refer to the chart at the end of the lab to correctly identify the interface identifiers to be
used based on the equipment in the lab. The configuration output used in this lab is produced from
1-6
1721 series routers. Any other router used may produce slightly different output. The following steps
are intended to be executed on each router unless specifically instructed otherwise.
Start a HyperTerminal session as performed in the Establishing a HyperTerminal session lab.
Note: Go to the erase and reload instructions at the end of this lab. Perform those steps on all
routers in this lab assignment before continuing.
__________________________________________________________________
Step 3 Gather information about the router interfaces
a. Enter show interface command at either the user EXEC or the privileged EXEC router
prompt.
Document the following information about the router:
b. What is the name of the router? __________________________________________
c.
Interface
Interface Up or Down?
(Carrier Detect Signal)
2-6
________________________________________
Interface
Step 6 Display the values of the CDP timers, the interface status, and encapsulation used
a. Enter show cdp interface command at the router prompt.
b. How often is the router sending CDP packets?
c.
________________________________
d. Global CDP settings can be seen using the show cdp command by itself.
e. What information is not shown in the show cdp command?
_________________________
Step 7 Display the CDP updates received on the local router
a. Enter show cdp neighbors command at the router prompt.
b. Fill in the following table:
Device and Port ID
Local Interface
Hold Time
Capability
Platform
Step 9 Display details about CDP updates received on the local router
a. Enter show cdp neighbors detail from the router prompt.
b. Fill in the following table:
Information Gathered
Device 1
Device 2
Device 3
3-6
Step 10 Observe CDP packets being sent and received on the router
a. Enter the debug cdp packets command from the privileged EXEC mode.
b. What is the output? (Wait for at least two minutes)
__________________________________________________________________
c.
After observing the output enter the undebug all command to stop debugging activity.
__________________________________________________________________
c.
__________________________________________________________________
d. show cdp traffic
__________________________________________________________________
4-6
5-6
6-6