Professional Documents
Culture Documents
التقريرالنهائي
للعام الدراس ي 9191-9102الفصل الدراس ي (الاول /الثاني)
جقريربعنوان
Describe the Use of The CDP Protocol
اعداد الطالب
حيدرابراهيم حسين السبيدي
املادة Internetworking with Routers And Switches -:
املرحلت -:الرابعت
الدراست -:املسائي
باشراف الاستاذ
عالء حمود
Page 1 of 9
Republic of Iraq جمهوريت العراق
Ministry of Higher Education and وزارة التعليم العالي والبحث العلمي
Scientific Research جامع ــتباب ــل
University of Babylon كلي ـ ــتجكنولوجيااملعلوماث
College of Information Technology قسم شبكاث املعلوماث
Department of Information Network التقريرالنهائي
Abstract
Page 2 of 9
Republic of Iraq جمهوريت العراق
Ministry of Higher Education and وزارة التعليم العالي والبحث العلمي
Scientific Research جامع ــتباب ــل
University of Babylon كلي ـ ــتجكنولوجيااملعلوماث
College of Information Technology قسم شبكاث املعلوماث
Department of Information Network التقريرالنهائي
Introduction
you can use CDP (Cisco Discovery Protocol) to help you build network
maps and what other information it can reveal.
Most networks have multiple switches and/or routers and to make our life
easier it’s good to have a network map that shows us how everything is
connected to each other, what kind of devices we have, to what VLAN
they belong and the IP addresses that we are using. CDP is a Cisco
protocol that runs on all Cisco devices that helps us discover Cisco devices
on the network. CDP is Cisco proprietary, runs on the data-link layer and
is enabled by default.
Page 3 of 9
Republic of Iraq جمهوريت العراق
Ministry of Higher Education and وزارة التعليم العالي والبحث العلمي
Scientific Research جامع ــتباب ــل
University of Babylon كلي ـ ــتجكنولوجيااملعلوماث
College of Information Technology قسم شبكاث املعلوماث
Department of Information Network التقريرالنهائي
Use the show cdp neighbors command to see all directly connected neighbors.
Above you see that R1 is connected to R2 and you can also see the platform (3640
router) and the interfaces on both sides. Let me show you the other
routers as well:
Page 4 of 9
Republic of Iraq جمهوريت العراق
Ministry of Higher Education and وزارة التعليم العالي والبحث العلمي
Scientific Research جامع ــتباب ــل
University of Babylon كلي ـ ــتجكنولوجيااملعلوماث
College of Information Technology قسم شبكاث املعلوماث
Department of Information Network التقريرالنهائي
Now we have all the information we need to build a network map with the router names
and interfaces. CDP can tell us even more however
Page 5 of 9
Republic of Iraq جمهوريت العراق
Ministry of Higher Education and وزارة التعليم العالي والبحث العلمي
Scientific Research جامع ــتباب ــل
University of Babylon كلي ـ ــتجكنولوجيااملعلوماث
College of Information Technology قسم شبكاث املعلوماث
Department of Information Network التقريرالنهائي
Configuring CDP
Typically, CDP announcements are sent every 60 seconds, but you can verify
the frequency by using the show cdp interface command.
P2R3#show cdp interface
FastEthernet0/0 is up, line protocol is up
encapsulation ARPA
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Page 6 of 9
Republic of Iraq جمهوريت العراق
Ministry of Higher Education and وزارة التعليم العالي والبحث العلمي
Scientific Research جامع ــتباب ــل
University of Babylon كلي ـ ــتجكنولوجيااملعلوماث
College of Information Technology قسم شبكاث املعلوماث
Department of Information Network التقريرالنهائي
You’ll notice in figure 5 that the holdtime value is 180 seconds. This value is
the amount of time that the device will hold on to the CDP packet before
discarding it. So, if you disconnect a neighboring device, the CDP information
will still show until the holdtime has expired. You can change the holdtime
value by using the cdp holdtime seconds command from global configuration
mode.
CDP can be enabled or disabled globally on the device, or per interface. If you
want to disable CDP for a device, you should use the command no cdp
run from global configuration mode. To disable CDP per interface, use the no
cdp enable command from interface configuration mode. Figure 6 illustrates
disabling and enabling CDP globally on P2R3 and on a single interface,
FastEthernet 0/0:
Page 7 of 9
Republic of Iraq جمهوريت العراق
Ministry of Higher Education and وزارة التعليم العالي والبحث العلمي
Scientific Research جامع ــتباب ــل
University of Babylon كلي ـ ــتجكنولوجيااملعلوماث
College of Information Technology قسم شبكاث املعلوماث
Department of Information Network التقريرالنهائي
The Cisco Discovery Protocol (CDP) is designed to help tackle such a problem.
Physically inspecting devices to document a network is often inefficient and
impractical. With CDP, you can use a few show commands to quickly view
information about directly connected devices. Depending on the type of device
and version of IOS, you can view information such as the host name, the local
and remote ports, and the device platform..
Page 8 of 9
Republic of Iraq جمهوريت العراق
Ministry of Higher Education and وزارة التعليم العالي والبحث العلمي
Scientific Research جامع ــتباب ــل
University of Babylon كلي ـ ــتجكنولوجيااملعلوماث
College of Information Technology قسم شبكاث املعلوماث
Department of Information Network التقريرالنهائي
References
1. (his command is supported in the Cisco IOS Release 12.2SX train.
Support in a specific 12.2SX release of this train depends on your
feature set, 2014)
2. (Official, CCNA Routing and Switching ICND2 200-105 Official,
2016)
Page 9 of 9