Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
1
Sometimes you believe the network is cabled in a certain way
2
whereas in reality it's cabled differently
3
so you may think that 1 device is connected to another device
4
but that’s not actually how it's cabled.
5
Cisco discovery protocol or CDP
6
and the industry standard version Link Layer Discovery Protocol or LLDP
7
are protocols that run at layer 2 in the OSI model
8
and allow you to discover how devices are connected to each other
9
this runs independently of protocol such as IPv4 and IPv6
10
CDP and LLDP are a great way to discover how devices are connected
11
and allow you to verify documentation as well as great new documentation.
12
CDP is Cisco propriety and well typical only discover other Cisco devices.
13
please be aware that some vendors such as HPE do not send CDP messages
14
but will receive CDP messages
15
and hence they can see which Cisco devices are connected directly to them
16
but a Cisco devices will not be able to see the switches
17
and routers from other vendors
18
such as HPE unless the Cisco devices are enabled for LLDP.
19
CDP uses multicast frames which I'll demonstrate in a moment
20
but once again doesn’t rely on higher layer protocols.
21
We'll start with the simple GNS3 topology
22
and then I’ll show you a more complex 1 in a different video.
23
In this GNS3 topology, I’ve got 3 Cisco routers.
24
one of them is connected to a hub which is bridge to my Local Area Network
25
which will allow me to see physical devices in the network.
26
Router 1 and router 2 are configured with IP addresses
27
on their FastEthernet 0 interfaces, router 2 is using DHCP on this interface
28
but this network hasn’t been configured.
29
So let’s see how that affects CDP.
30
Firstly on router 1, sh cdp neighbors
31
What you'll notice is it sees the directly connected neighbor router 2
32
but no others neighbors.
33
I could also use the details command
34
to see detailed information about that neighboring router.
35
you can see as an example the IP address of the neighbor
36
the platform, the capabilities, in other words, this supports routing
37
it supports switching and it supports IGMP
38
IGMP is used in multicast applications.
39
We could see the version of operating system that that router is using.
40
on router 2 sh cdp neighbors this shows a lot more detail
41
we can see router 1 once again, connected via FastEthernet 0/0
42
we can see its a 3725 router
43
but in addition, we can see a Cisco Unified Communication Manager
44
this is a Linux server that runs the Cisco Unified Communication Manager software
45
that’s running within the VMware and is using Ethernet 0
46
somewhere in the cloud here to connect back through the hub to router 2.
47
Now CDP only shows you directly connected devices that are running CDP
48
so as an example, router 1 doesn’t see these devices
49
because router 1 is separated from them by router 2
50
but CDP messages are sent through a hub
51
and any other layer 2 switches in the topology that are not running CDP
52
so there are actually some Cisco switches in this cloud
53
that connect router 2 to some of these devices such as the IP phones
54
but those Cisco switches are not running CDP
55
and hence are not seen in the topology.
56
So be careful CDP shows you directly connected devices that are running CDP.
57
This hub as an example is not running CDP
58
it's layer 1 device so CDP messages are transparently sent through it
59
to devices in the cloud
60
and they transparently send CDP messages back to router 2.
61
In addition, there are layer 2 Cisco switches
62
these are small personal switches that are not running CDP
63
and they don’t show up in the topology
64
these 2 phones as an example are powered by Cisco switch.
65
So CDP does show you directly connected neighbors
66
that would be the exam answer, in the real world, it’s not as simple as that.
67
Let’s look at some details so sh cdp neighbor detail
68
We can see some information about the Cisco Unified Communication Manager server
69
you can see as an example that it’s running on Linux
70
we can see a Cisco 3750 switch here
71
scrolling down, we can see a Cisco IP phone
72
notice it's Cisco DX650 that’s it's IP address.
73
We could as an example, open up a web browser to that phone.
74
In this case, the phone is supporting a web browser
75
so we can see details about the phone including its telephone number.
76
CDP is great for discovering devices on the network
77
but also is a security risk because you can discover the devices on the network.
78
That may be good for you but maybe bad if you have a hacker
79
or someone inquisitive to find out what you’re running.
80
So as an example, I can connect to the Cisco Communication Manager
81
and if I knew the username and password or hack it
82
I could then discover other devices in the topology.
83
So back on router 2, there’s a CUCM, there’s a 3750
84
here’s my Cisco phone DX650, I can see as an example
85
the power that's drawn by that phone
86
I can see the operating system that it's running
87
I can see which port it's using to connect back to router 2
88
so router 2 is using F0/1 that phone is using port 1.
89
Here’s another phone Cisco 7970, its port is 1
90
the local interface on the router is FastEthernet 0/1
91
here’s router 1 its outgoing port is FastEthernet 0/0
92
and router 2 is local interface is FastEthernet 0/0.
93
In this case, the router can see itself
94
because CDP message is being loop back to the router in the cloud
95
but once again sh cdp neighbors
96
we can see the local interface that's receiving CDP messages
97
and we can see devices
98
and their local interfaces is used to connect back to this local router.
99
now, what about R3? It’s not showing in the topology
100
and that’s because the interface isn't up, this interface is shutdown
101
so I’m gonna no shut that interface
102
but I’m not going to enable an IP address on the interface.
103
So we'll enable this link but configure no IP addresses.
104
So interface f0/0 no shut but that’s all we’ve done.
105
sh cdp neighbor
106
no neighbors are shown yet
107
it takes a while for CDP messages to be sent
108
you might have to wait 30 seconds before you see any CDP messages.
109
but sh ip int brief
110
will allow us to see the state of the interface, FastEthernet 0/0 is up up
111
on router 3, router 3 is connected and FastEthernet 0/0 to router 1
112
and FastEthernet 0/1 to router 3
113
router 3 is connected using FastEthernet 0/0
114
to router 2 is fast Ethernet interface 1/0.
115
sh cdp neighbors
116
we can now see router 2
117
the reason why the domain is showing up is I've configured
118
a domain name of cisco.com on router 2
119
so the local router interface is F0/0 and the interface of router 2 is F1/0
120
but please be aware that there are no IP addresses configured on this router.
121
so sh run int f0/0 sh ip int brief
122
what you’ll see is no IP addresses are assigned to any interfaces on this router
123
but CDP still works because CDP does not rely on IP.
124
Let’s have a look at detail
125
so on router 3 sh cdp neighbor detail
126
we're seeing router 2, we're seeing it's IP address
127
the local interface of router 3 is F0/0
128
and the interface used on router 2 is F1/0
129
the outgoing port is the port of the remote device in this output
130
which can be very confusing
131
That’s a basic example of CDP and the next video I'll do a Wireshark capture
132
and then on subsequent videos, we'll look at a more complex topology.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.