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
So let’s do a capture on this link between router 1 and router 2
2
we can see some loop messages which are used to ensure that the interface is up
3
and we may have to wait a while for CDP message to be sent.
4
We can see that by typing sh cdp and pressing enter.
5
CDP only sends packets every 60 seconds
6
so we may have to wait a while as you can see in the output here
7
CDP packets are sent every 60 seconds
8
and an entry in the table is held for 180 seconds
9
I’ll show you more about that later but scrolling down
10
here’s a CDP message
11
we can see that it's using 802.3 Ethernet
12
and is using a specific Cisco address which I'll talk about in more detail later.
13
It's using logical link control with the organizational or unit of Cisco
14
in other words, the protocol used at a high layer is CDP
15
and here’s the CDP information version 2
16
we can see that it's router 2 advertising itself
17
with it's platform, port number and other details
18
what’s interesting is you can get a lot of detail through a CDP message
19
which is great for discovering the network
20
but is bad from a security point of view
21
you can see version of software, you can see platform
22
you can see IP addresses configured, so IP address port number
23
you can see its capabilities and so forth
24
here's router 1, so you can see the device ID is router 1, as an example
25
So the important thing to remember is the CDP does not rely
26
on higher layer protocols, messages are sent every 60 seconds by default.
27
You can use CDP to map an entire network
28
so as an example, if you were connected to router 1
29
and you use the command sh cdp neighbors
30
you could discover which device you directly connected to
31
and then you could use details
32
so show CDP neighbor details
33
to see detailed information about that neighbor including its IP address
34
and then if telnet is enabled on your network
35
you could telnet from router 1 to router 2
36
and then use the command CDP neighbors
37
to discover what devices are connected to that router.
38
So as an example, here’s a core 3750 router
39
let’s see what's connected to that switch.
40
So I could use this command sh cdp entry
41
and the name of the device, to just see the output for the specific device
42
here’s its IP address, so I'll telnet to that IP address
43
I can log in assuming that I know the username and password
44
and once again I could use the command
45
sh cdp neighbors
46
to discover what's connected to that device.
47
And here as an example, we can see some other devices
48
which we weren't seeing previously, such as the Cisco 1841 router.
49
So you could map out the entire network by simply using CDP on 1 device
50
and telnetting to the next device using CDP
51
to discover what’s connected to that and then telnetting to the next device
52
and discovering what’s connected to that device.
53
Now the Cisco APIC-EM SDN software does a lot of this for you
54
and so does othersSCNMP or Simple Network Management Protocol
55
management software such as software from Solarwinds
56
you could do this manually but there is software out there
57
that can help you automate this process.
58
You could also use a combination of protocols.
59
So as an example, here’s router 2
60
sh cdp neighbors
61
shows me that I have this core 3750 switch
62
I could then discover the IP address of that switch
63
which in this example is this and then I could simply telnet to that switch
64
and then use a protocol such as LLDP to discover devices connected to that switch.
65
In this example, you can see the 2 Cisco IP phones, and an Ubuntu hypervisor
66
I could look at details.
67
So sh lldp neighbors detail
68
and here I can see the IP address
69
and model of phone as well as the firmware being used by that phone
70
and other information about it.
71
Scrolling down, lot of detail notice firmware revision
72
serial number and quite a bit of other information
73
such as the layer 2 quality of service and layer 3 quality of service
74
set on that phone, we'll talk more about quality of service later.
75
Here's the Cisco DX650, so we can see its system name
76
we can see an IP address we can see a firmware version
77
we can see quality of service information
78
we can see once again that it's a Cisco phone
79
we can see how much power is being used a lot of detail
80
here’s Linux so we can see Ubuntu server running Ubuntu 14.04 LTS
81
you can see the name of the server and it's IP address.
82
So once again CDP and LLDP allows you to discover devices in your network
83
and also allow you to see how the devices
84
are connected to each other in your network.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.