Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:04,120 --> 00:00:07,800
This is a free, complete course for the CCNA.
2
00:00:07,799 --> 00:00:11,580
If you like these videos, please subscribe\n
3
00:00:11,580 --> 00:00:16,129
Also, please like and leave a comment, and\n
4
00:00:19,359 --> 00:00:26,059
In this video we will cover two Layer 2 discovery\n
5
00:00:26,059 --> 00:00:30,409
You might not have heard of a Layer 2 discovery\n
6
00:00:33,159 --> 00:00:40,169
CDP and LLDP are exam topic 2.3, which says\n
7
00:00:40,170 --> 00:00:44,109
2 discovery protocols CDP and LLDP.
8
00:00:44,109 --> 00:00:50,369
CDP and LLDP are important topics for the\n
9
00:00:50,369 --> 00:00:55,128
to absorb compared to topics like ACLs, IPv6,\nand OSPF.
10
00:00:55,128 --> 00:00:58,829
So, hopefully this video will be a little\neasier to get through.
11
00:00:58,829 --> 00:01:02,660
Here’s what we’ll cover in this video.
12
00:01:02,659 --> 00:01:06,929
First I’ll give a brief overview of Layer\n2 discovery protocols.
13
00:01:06,930 --> 00:01:10,149
Then I’ll cover Cisco Discovery Protocol,\nCDP.
14
00:01:10,149 --> 00:01:14,978
Finally I’ll cover Link Layer Discovery\nProtocol, LLDP.
15
00:01:14,978 --> 00:01:20,780
CDP and LLDP are very similar in terms of\n
16
00:01:23,519 --> 00:01:28,280
Watch until the end of today’s video for\n
17
00:01:30,739 --> 00:01:36,140
ExSim simulates the style and difficulty of\n
18
00:01:36,140 --> 00:01:40,739
exams, and I highly recommend ExSim to anyone\n
19
00:01:40,739 --> 00:01:46,929
Let’s get started with a brief intro to\n
20
00:01:46,929 --> 00:01:53,019
Layer 2 discovery protocols such as CDP and\n
21
00:01:53,019 --> 00:01:57,069
information about, neighboring (connected)\ndevices.
22
00:01:57,069 --> 00:02:01,618
They are called ‘Layer 2’ discovery protocols\n
23
00:02:01,618 --> 00:02:04,590
Layer 2, they don’t use IP addresses.
24
00:02:04,590 --> 00:02:09,800
We’ll look at some Wireshark captures later,\n
25
00:02:09,800 --> 00:02:14,930
inside of the frames sent by CDP and LLDP.
26
00:02:14,930 --> 00:02:20,010
Although they are Layer 2 discovery protocols,\n
27
00:02:23,169 --> 00:02:29,439
The shared information includes host name,\n
28
00:02:29,439 --> 00:02:36,019
CDP is a Cisco proprietary protocol, developed\n
29
00:02:36,019 --> 00:02:41,750
LLDP is an industry standard protocol, IEEE\n802.1AB.
30
00:02:41,750 --> 00:02:47,299
So, if your network uses only Cisco devices\nCDP is fine.
31
00:02:47,299 --> 00:02:53,459
However if there is a mix of vendors, for\n
32
00:02:53,459 --> 00:02:59,348
Palo Alto firewalls, you will have to use\n
33
00:03:00,919 --> 00:03:05,859
However, because these protocols share information\n
34
00:03:05,860 --> 00:03:09,870
be considered a security risk and are often\nnot used.
35
00:03:09,870 --> 00:03:14,129
It’s up to the network engineer or admin\n
36
00:03:15,689 --> 00:03:20,349
At my workplace, for example, we always disable\n
37
00:03:22,500 --> 00:03:28,739
To demonstrate how these protocols work, here\n
38
00:03:28,739 --> 00:03:35,830
R1 will periodically send frames to SW1, telling\n
39
00:03:35,830 --> 00:03:39,660
type, interface ID, IP address, etc.
40
00:03:39,659 --> 00:03:44,609
SW1 will do the same, periodically sending\nframes to R1.
41
00:03:44,610 --> 00:03:49,500
Note that SW1 doesn’t include an IP address\n
42
00:03:50,650 --> 00:03:55,860
Its interface doesn’t have an IP address.
43
00:03:55,860 --> 00:03:59,269
So let’s move on to talk about CDP specifically.
44
00:03:59,269 --> 00:04:03,400
To repeat, CDP is a Cisco proprietary protocol.
45
00:04:03,400 --> 00:04:06,219
It is enabled on Cisco devices by default.
46
00:04:06,219 --> 00:04:12,740
For example Cisco routers, Cisco switches,\n
47
00:04:12,740 --> 00:04:16,370
All of these devices have CDP enabled by default.
48
00:04:16,370 --> 00:04:25,860
CDP messages are periodically sent to multicast\n
49
00:04:25,860 --> 00:04:28,050
Remember that MAC address, it will be in the\nflashcards.
50
00:04:28,050 --> 00:04:37,079
I know the MAC addresses used by different\n
51
00:04:39,939 --> 00:04:43,029
The Anki flashcards are very helpful for this.
52
00:04:43,029 --> 00:04:48,469
You can add a specific tag to these MAC address\n
53
00:04:50,579 --> 00:04:55,569
This will help you remember all of these MAC\n
54
00:04:55,569 --> 00:05:00,399
Anyway, if you want to learn Anki functions\n
55
00:05:02,750 --> 00:05:07,110
Because the messages use a multicast MAC address\n
56
00:05:07,110 --> 00:05:09,860
multiple devices, but it isn’t.
57
00:05:09,860 --> 00:05:15,030
When a device receives a CDP message, it processes\n
58
00:05:15,029 --> 00:05:17,388
It does not forward it to other devices.
59
00:05:17,389 --> 00:05:23,240
So, only directly connected neighbors can\nbecome CDP neighbors.
60
00:05:23,240 --> 00:05:28,819
By default, CDP messages are sent once every\n
61
00:05:31,129 --> 00:05:36,379
These are the messages that contain the information\n
62
00:05:36,379 --> 00:05:43,168
in the previous When a device receives these\n
63
00:05:43,168 --> 00:05:47,490
adds an entry for the device in its CDP neighbor\ntable.
64
00:05:47,490 --> 00:05:52,728
If a neighbor is disconnected, there is a\n
65
00:05:52,728 --> 00:05:58,800
So, if a message isn’t received from a neighbor\n
66
00:06:01,209 --> 00:06:05,508
This makes sure the CDP neighbor table doesn’t\n
67
00:06:05,509 --> 00:06:08,240
to be connected, but no longer are.
68
00:06:08,240 --> 00:06:12,288
CDP version 2 messages are sent by default.
69
00:06:12,288 --> 00:06:18,319
There are two versions of CDP, version 1 and\n
70
00:06:18,319 --> 00:06:23,509
CDP version 1 is very old so you’ll probably\n
71
00:06:23,509 --> 00:06:28,100
You don’t need to know the differences between\n
72
00:06:28,100 --> 00:06:33,939
2 provides a few more advanced features like\n
73
00:06:33,939 --> 00:06:40,660
Okay let’s get right into the CLI to see\n
74
00:06:40,660 --> 00:06:45,550
To demonstrate CDP, as well as LLDP later,\n
75
00:06:45,550 --> 00:06:50,470
Two routers and two multilayer switches, although\n
76
00:06:52,420 --> 00:06:58,189
Before looking at the CDP neighbor table,\n
77
00:06:58,189 --> 00:07:05,750
SHOW CDP tells us the CDP timer, 60 seconds\n
78
00:07:05,750 --> 00:07:12,800
by default, and it also shows which version\n
79
00:07:12,800 --> 00:07:16,930
Note that if CDP isn’t enabled on the device,\n
80
00:07:16,930 --> 00:07:21,780
try to use the SHOW CDP command: CDP is not\nenabled.
81
00:07:21,779 --> 00:07:26,409
Okay, next I used the command SHOW CDP TRAFFIC.
82
00:07:26,410 --> 00:07:31,770
This command tells us how many CDP packets,\n
83
00:07:34,220 --> 00:07:41,100
At the time that I used this command, R1 had\n
84
00:07:41,100 --> 00:07:46,500
messages, and all of those messages were CDP\nversion 2 messages.
85
00:07:46,500 --> 00:07:51,750
Finally, you can use the SHOW CDP INTERFACE\n
86
00:07:53,889 --> 00:07:58,009
You can also specify a certain interface when\n
87
00:07:58,009 --> 00:08:02,319
SHOW CDP INTERFACE you’ll get information\nabout all interfaces.
88
00:08:02,319 --> 00:08:06,639
Here you can see the info for G0/0.
89
00:08:06,639 --> 00:08:11,990
You can see the same CDP message timer and\n
90
00:08:13,908 --> 00:08:16,389
ARPA is actually a type of Ethernet encapsulation.
91
00:08:16,389 --> 00:08:20,860
I haven’t talked about the different types\n
92
00:08:20,860 --> 00:08:25,009
that’s beyond the scope of the CCNA, but\n
93
00:08:25,009 --> 00:08:27,649
sure some of you would be wondering about\nit.
94
00:08:27,649 --> 00:08:32,490
This type of Ethernet is also known as Ethernet\n
95
00:08:34,909 --> 00:08:41,000
Okay, finally down here you can see a basic\n
96
00:08:41,000 --> 00:08:45,110
and how many interfaces are in an up state\nand a down state.
97
00:08:45,110 --> 00:08:54,070
So, remember these three commands, SHOW CDP,\n
98
00:08:54,070 --> 00:08:57,140
Finally let’s look at the CDP neighbor table.
99
00:08:57,139 --> 00:09:01,960
Here it is, on R1 I used the command SHOW\n
100
00:09:01,960 --> 00:09:04,980
Let’s look at what you can learn from this\ncommand.
101
00:09:04,980 --> 00:09:10,710
First, the ‘device ID’ column lists the\n
102
00:09:10,710 --> 00:09:16,790
So, R1 has received CDP messages from SW1\nand R2.
103
00:09:16,789 --> 00:09:19,480
Next is the ‘local interface’ column.
104
00:09:19,480 --> 00:09:23,080
This states the interface on the local device,\non R1.
105
00:09:23,080 --> 00:09:28,290
So, if we didn’t have a proper network diagram\n
106
00:09:28,289 --> 00:09:32,099
to which interface on R1, we can use this\ncommand.
107
00:09:32,100 --> 00:09:39,980
SW1 is connected to R1’s G0/0 interface,\n
108
00:09:39,980 --> 00:09:43,560
as shown in the network diagram below.
109
00:09:45,789 --> 00:09:52,099
This will reset to 180 each time R1 receives\n
110
00:09:52,100 --> 00:09:57,820
With the default timers, it should count down\n
111
00:09:57,820 --> 00:10:02,200
and reset it to 180, and that cycle will repeat.
112
00:10:02,200 --> 00:10:08,170
If this timer reaches 0, the neighbor will\n
113
00:10:08,169 --> 00:10:10,389
Next is the ‘capability’ column.
114
00:10:10,389 --> 00:10:14,279
This helps you identify what kind of device\n
115
00:10:14,279 --> 00:10:18,610
For example, SW1 has the letters R, S, and\nI.
116
00:10:22,919 --> 00:10:26,979
First off, let me point out that I means IGMP.
117
00:10:26,980 --> 00:10:32,340
This is related to multicast and is beyond\n
118
00:10:32,340 --> 00:10:37,149
Then, R means router and S means switch.
119
00:10:37,149 --> 00:10:41,439
Switch is obvious, SW1 is a switch, but why\nrouter?
120
00:10:41,440 --> 00:10:46,350
It’s because this is a multilayer switch,\n
121
00:10:46,350 --> 00:10:49,889
That’s why it’s listed as both a router\nand a switch.
122
00:10:52,500 --> 00:10:55,629
It has R and B in its capability column.
123
00:10:55,629 --> 00:11:01,169
Once again, R stands for router, which is\n
124
00:11:01,169 --> 00:11:04,649
And B means ‘source route bridge’.
125
00:11:04,649 --> 00:11:10,168
This is another thing that isn’t necessary\n
126
00:11:10,190 --> 00:11:15,760
So, I recommend just remembering R for router\nand S for switch.
127
00:11:18,129 --> 00:11:21,210
This displays the model of the neighboring\ndevice.
128
00:11:21,210 --> 00:11:26,750
As you know, Cisco has various models of routers,\n
129
00:11:28,409 --> 00:11:34,439
However, for these lessons I use virtual devices\n
130
00:11:34,440 --> 00:11:37,720
is displayed here, since they aren’t physical\ndevices.
131
00:11:37,720 --> 00:11:43,200
So, let’s refer to Packet Tracer which actually\n
132
00:11:43,200 --> 00:11:49,550
For example, in the Packet Tracer network\n
133
00:11:49,549 --> 00:11:55,179
router, R2, and a catalyst 2960 series switch,\nSW1.
134
00:11:55,179 --> 00:11:58,669
Okay, last column is ‘port ID’.
135
00:11:58,669 --> 00:12:01,149
This tells you the port ID on the neighboring\ndevice.
136
00:12:01,149 --> 00:12:08,939
So, R1 is connected to SW1’s G0/0 interface\n
137
00:12:08,940 --> 00:12:12,350
Make sure you know the difference between\n
138
00:12:12,350 --> 00:12:17,879
on this device, and the ‘port ID’ field,\n
139
00:12:17,879 --> 00:12:23,230
Okay, those are all of the fields of SHOW\n
140
00:12:26,919 --> 00:12:33,579
To view that additional information you can\n
141
00:12:33,580 --> 00:12:37,820
As you can see, more information is displayed\nfor each neighbor.
142
00:12:37,820 --> 00:12:41,060
For example, here’s SW1’s entry.
143
00:12:41,059 --> 00:12:44,859
Some of the information you can see here that\n
144
00:12:44,860 --> 00:12:50,000
NEIGHBORS command is the software version,\n
145
00:12:51,879 --> 00:12:56,439
Because SW1 is a switch, you can also see\nVTP information here.
146
00:12:56,440 --> 00:13:00,110
This is something CDP can do but LLDP can’t.
147
00:13:00,110 --> 00:13:06,259
VTP is a Cisco proprietary protocol, so only\n
148
00:13:07,960 --> 00:13:12,730
You can also see the native VLAN of SW1’s\n
149
00:13:14,210 --> 00:13:17,790
The duplex setting of SW1’s interface is\ndisplayed, also.
150
00:13:17,789 --> 00:13:24,699
So, with these last two fields CDP helps identify\n
151
00:13:25,860 --> 00:13:31,060
Actually, if a mismatch is found CDP will\n
152
00:13:35,379 --> 00:13:39,830
I just wanted to point out that you can see\n
153
00:13:39,830 --> 00:13:46,889
SW1 doesn’t have any IP addresses, so none\n
154
00:13:46,889 --> 00:13:50,990
DETAIL command lets you view the neighbor’s\nIP address.
155
00:13:50,990 --> 00:13:56,680
Now, if the device has a lot of CDP neighbors\n
156
00:13:56,679 --> 00:14:01,059
However, there is another command which lets\n
157
00:14:03,629 --> 00:14:09,439
That is this command, SHOW CDP ENTRY, followed\n
158
00:14:11,100 --> 00:14:15,930
The output here is exactly the same as in\n
159
00:14:18,169 --> 00:14:21,979
Here’s a brief summary of each of the commands\n
160
00:14:21,980 --> 00:14:26,509
I won’t go over them individually, feel\n
161
00:14:28,480 --> 00:14:33,221
Because CDP is enabled by default, if you\n
162
00:14:33,221 --> 00:14:38,289
have to do any configuration, you can just\n
163
00:14:38,289 --> 00:14:43,269
But now let’s take a look at some basic\nCDP configurations.
164
00:14:43,269 --> 00:14:48,889
As I just said, CDP is globally enabled by\n
165
00:14:50,429 --> 00:14:54,389
Each interface also has CDP enabled by default.
166
00:14:54,389 --> 00:15:00,389
If you want to enable or disable CDP globally,\n
167
00:15:01,659 --> 00:15:08,449
Use CDP RUN to enable it, which is default,\n
168
00:15:08,450 --> 00:15:14,740
To enable CDP on an interface, which is the\n
169
00:15:14,740 --> 00:15:18,000
in front of the command to disable it.
170
00:15:18,000 --> 00:15:21,409
These commands are done from interface config\nmode.
171
00:15:21,409 --> 00:15:26,980
You can configure the CDP timer, how often\n
172
00:15:26,980 --> 00:15:29,600
command from global config mode.
173
00:15:29,600 --> 00:15:33,740
You can also configure the holdtime with CDP\nHOLDTIME.
174
00:15:33,740 --> 00:15:40,360
And you can enable CDP version 2, which is\n
175
00:15:40,360 --> 00:15:44,550
or use NO in front of the command to disable\n
176
00:15:44,549 --> 00:15:49,089
You’ll probably never use that last command,\n
177
00:15:49,090 --> 00:15:54,420
So, these are the CDP configuration commands\n
178
00:15:54,419 --> 00:16:04,009
CDP RUN, CDP ENABLE, CDP TIMER, CDP HOLDTIME,\n
179
00:16:04,009 --> 00:16:08,669
Finally let’s move on to LLDP, Link Layer\nDiscovery Protocol.
180
00:16:08,669 --> 00:16:13,809
LLDP is an industry standard protocol, so\n
181
00:16:15,179 --> 00:16:21,829
CDP was the original, and LLDP was later invented\n
182
00:16:21,830 --> 00:16:27,020
It is usually disabled on Cisco devices by\n
183
00:16:27,019 --> 00:16:32,329
A device can run CDP and LLDP at the same\n
184
00:16:32,330 --> 00:16:35,750
them, although usually you’ll just use one.
185
00:16:35,750 --> 00:16:38,399
Here’s another MAC address to remember.
186
00:16:38,399 --> 00:16:46,809
LLDP messages are periodically sent to multicast\n
187
00:16:46,809 --> 00:16:50,929
Again, use the flashcards to remember that\none.
188
00:16:52,980 --> 00:16:57,950
When a device receives an LLDP message, it\n
189
00:16:57,950 --> 00:17:00,050
It does not forward it to other devices.
190
00:17:00,049 --> 00:17:05,809
So, only directly connected devices can become\nLLDP neighbors.
191
00:17:05,809 --> 00:17:11,500
By default, LLDP messages are sent once every\n
192
00:17:13,578 --> 00:17:17,799
LLDP’s default holdtime is 120 seconds.
193
00:17:17,799 --> 00:17:21,889
LLDP also has an additional timer called the\n
194
00:17:21,890 --> 00:17:27,819
I don’t think you need to know this for\n
195
00:17:27,818 --> 00:17:33,670
If LLDP is enabled, either globally or on\n
196
00:17:33,670 --> 00:17:38,880
the actual initialization of LLDP, and the\n
197
00:17:38,880 --> 00:17:43,880
I believe the purpose of this timer is to\n
198
00:17:43,880 --> 00:17:46,990
is rapidly enabled or disabled for some reason.
199
00:17:46,990 --> 00:17:52,769
So, the device won’t send LLDP messages\n
200
00:17:52,769 --> 00:17:57,660
is enabled, it will wait for the initialization\ntimer to expire.
201
00:17:57,660 --> 00:18:01,930
As I said, you probably don’t have to know\n
202
00:18:01,930 --> 00:18:09,370
in the output of the commands I’m going\n
203
00:18:09,369 --> 00:18:14,239
Because LLDP is disabled by default, before\n
204
00:18:14,240 --> 00:18:18,450
the configuration commands you should know\nfor LLDP.
205
00:18:18,450 --> 00:18:24,049
To review, LLDP is usually globally disabled\n
206
00:18:25,759 --> 00:18:32,200
So, to enable LLDP you need to enable it globally\n
207
00:18:32,200 --> 00:18:37,680
You’ll see that the interface configuration\n
208
00:18:37,680 --> 00:18:41,259
To enable it globally use LLDP RUN.
209
00:18:41,259 --> 00:18:46,650
This is the same as CDP, just replace the\nword CDP with LLDP.
210
00:18:46,650 --> 00:18:51,540
If you want to disable it again after, use\n
211
00:18:51,539 --> 00:18:54,170
Now the interface configurations.
212
00:18:54,170 --> 00:19:02,140
To enable LLDP transmissions, tx, on an interface,\n
213
00:19:02,140 --> 00:19:05,800
This causes the interface to start sending\nLLDP messages.
214
00:19:05,799 --> 00:19:11,200
However, it won’t receive LLDP messages,\n
215
00:19:11,200 --> 00:19:17,789
To enable LLDP in the receive direction, rx,\n
216
00:19:17,789 --> 00:19:24,319
So, CDP had only one command, CDP ENABLE which\n
217
00:19:25,740 --> 00:19:30,200
In LLDP, you need to use two separate commands.
218
00:19:30,200 --> 00:19:32,930
But still, the configuration is quite simple.
219
00:19:32,930 --> 00:19:36,570
Now let’s see how to configure each LLDP\ntimer.
220
00:19:36,569 --> 00:19:43,879
The timer used to send messages is configured\n
221
00:19:43,880 --> 00:19:49,670
The LLDP holdtime is configured with LLDP\n
222
00:19:49,670 --> 00:19:55,250
Finally, you can configure the LLDP reinitialization\n
223
00:19:55,250 --> 00:19:59,079
with LLDP REINIT, then the timer in seconds.
224
00:19:59,079 --> 00:20:03,919
So, these commands are all fairly similar\n
225
00:20:03,920 --> 00:20:06,240
is the interface configuration.
226
00:20:06,240 --> 00:20:10,890
Make sure you enable both TRANSMIT and RECEIVE,\n
227
00:20:10,890 --> 00:20:16,509
to only be able to send or receive, not send\n
228
00:20:16,509 --> 00:20:23,609
So, I’ve enabled LLDP on all of these devices\n
229
00:20:23,609 --> 00:20:28,799
mode, and LLDP TRANSMIT and RECEIVE on all\ninterfaces.
230
00:20:28,799 --> 00:20:32,740
They are now running both CDP and LLDP.
231
00:20:32,740 --> 00:20:38,039
Usually LLDP would be used in a multi-vendor\n
232
00:20:38,039 --> 00:20:42,869
good enough for our purposes, to demonstrate\n
233
00:20:42,869 --> 00:20:50,639
So, let’s check out some LLDP show commands,\n
234
00:20:50,640 --> 00:20:57,360
First, SHOW LLDP gives the same information\n
235
00:20:57,359 --> 00:21:02,529
It shows that LLDP is enabled, and displays\n
236
00:21:02,529 --> 00:21:07,099
at the default settings of 30, 120, and 2\nseconds.
237
00:21:07,099 --> 00:21:13,429
Then SHOW LLDP TRAFFIC, similar to SHOW CDP\n
238
00:21:13,430 --> 00:21:16,150
frames were sent and received.
239
00:21:16,150 --> 00:21:22,009
In this case I used the command quickly after\n
240
00:21:22,009 --> 00:21:25,930
and only 3 have been received by R1.
241
00:21:25,930 --> 00:21:28,870
Then I used SHOW LLDP INTERFACE.
242
00:21:28,869 --> 00:21:33,510
This shows whether TRANSMIT and RECEIVE are\n
243
00:21:33,510 --> 00:21:37,038
well as the current Tx and Rx state.
244
00:21:37,038 --> 00:21:41,460
For example, for G0/0 both Tx and Rx are enabled.
245
00:21:41,460 --> 00:21:48,319
The Tx state is IDLE, it’s waiting before\n
246
00:21:48,319 --> 00:21:50,819
And the Rx state is WAIT FOR FRAME.
247
00:21:50,819 --> 00:21:54,829
It’s waiting to receive the next LLDP frame\nfrom SW1.
248
00:21:54,829 --> 00:21:59,449
Okay, so those commands are very similar to\n
249
00:21:59,450 --> 00:22:01,110
some differences in the output.
250
00:22:01,109 --> 00:22:05,029
Now let’s check out R1’s LLDP neighbor\ntable.
251
00:22:05,029 --> 00:22:12,319
Here’s R1’s LLDP neighbor table, the command\n
252
00:22:12,319 --> 00:22:17,089
First up, the device ID, the host name, of\n
253
00:22:19,019 --> 00:22:23,839
Just like in SHOW CDP NEIGHBORS, this is the\n
254
00:22:27,099 --> 00:22:30,299
This is a little different than in SHOW CDP\nNEIGHBORS.
255
00:22:30,299 --> 00:22:35,220
In SHOW CDP NEIGHBORS, you could watch the\n
256
00:22:35,220 --> 00:22:38,750
to 180 when a CDP message is received.
257
00:22:38,750 --> 00:22:43,900
However SHOW LLDP NEIGHBORS simply displays\n
258
00:22:45,430 --> 00:22:50,799
It won’t count down as R1 waits for an LLDP\n
259
00:22:52,930 --> 00:22:54,769
The output here is a little odd.
260
00:22:54,769 --> 00:23:01,879
SW1 shows nothing, and R2 shows R. R means\n
261
00:23:02,880 --> 00:23:06,920
However, why doesn’t the switch capability\ndisplay for SW1?
262
00:23:06,920 --> 00:23:10,460
Actually, there is no ‘SWITCH’ capability\ncode.
263
00:23:10,460 --> 00:23:14,329
Instead, LLDP uses B for Bridge.
264
00:23:14,329 --> 00:23:18,210
Remember I told you, in the spanning tree\n
265
00:23:20,400 --> 00:23:22,470
Well here’s another case of that.
266
00:23:22,470 --> 00:23:26,130
However, B isn’t displaying for SW1.
267
00:23:26,130 --> 00:23:30,730
I think this is just because I’m running\n
268
00:23:30,730 --> 00:23:36,339
detecting that SW1 is an active switch, but\n
269
00:23:36,339 --> 00:23:40,259
DETAIL you will see this bridge code for SW1.
270
00:23:40,259 --> 00:23:45,960
Okay, and just like in SHOW CDP NEIGHBORS,\n
271
00:23:48,019 --> 00:23:54,579
R1 is connected to SW1’s G0/0 interface\nand R2’s G0/0 interface.
272
00:23:54,579 --> 00:24:00,119
So, this command is very similar to SHOW CDP\n
273
00:24:00,119 --> 00:24:05,459
Okay, here’s SHOW LLDP NEIGHBORS DETAIL\non R1.
274
00:24:05,460 --> 00:24:10,220
The output is too long to show on one screen,\n
275
00:24:13,720 --> 00:24:18,670
It gives us additional information like the\n
276
00:24:18,670 --> 00:24:21,509
We can also see the ‘time remaining’.
277
00:24:21,509 --> 00:24:25,400
This is the holdtime, if you want to actually\n
278
00:24:25,400 --> 00:24:29,090
have to use the DETAIL version of the command.
279
00:24:29,089 --> 00:24:31,339
And here is the main thing I want to show\nyou.
280
00:24:31,339 --> 00:24:38,971
CDP had one field for the device’s capabilities,\n
281
00:24:39,980 --> 00:24:45,099
‘System capabilities’ and ‘enabled capabilities’.
282
00:24:45,099 --> 00:24:51,669
If you look at system capabilities, you can\n
283
00:24:53,400 --> 00:24:58,320
So, this is what you would expect, because\n
284
00:24:58,319 --> 00:25:01,480
It has the functions of both a router and\na switch.
285
00:25:01,480 --> 00:25:08,220
However, in this case the ‘enabled capabilities’\n
286
00:25:08,220 --> 00:25:11,930
so none of SW1’s capabilities are enabled.
287
00:25:11,930 --> 00:25:17,808
If we use the IP ROUTING command on SW1, SW1’s\n
288
00:25:17,808 --> 00:25:22,779
‘R’ from ‘system capabilities’ will\n
289
00:25:22,779 --> 00:25:27,839
However, I think the reason ‘B’ isn’t\n
290
00:25:27,839 --> 00:25:32,879
is simply because SW1 is a virtual device\n
291
00:25:35,269 --> 00:25:39,289
You don’t have to worry about these details,\n
292
00:25:41,259 --> 00:25:46,180
Note that this command doesn’t display VTP\n
293
00:25:47,250 --> 00:25:54,019
VTP is a Cisco-proprietary protocol, so only\n
294
00:25:55,819 --> 00:25:59,058
The industry-standard LLDP can’t.
295
00:25:59,058 --> 00:26:03,829
Okay, just like for CDP there is a command\n
296
00:26:03,829 --> 00:26:10,899
as SHOW LLDP NEIGHBORS DETAIL, but for a single\n
297
00:26:10,900 --> 00:26:16,550
That command is SHOW LLDP ENTRY, followed\n
298
00:26:16,549 --> 00:26:22,079
By the way, before using this command I enabled\n
299
00:26:22,079 --> 00:26:27,389
for Router, is displayed next to ‘enabled\ncapabilities’ for SW1.
300
00:26:27,390 --> 00:26:32,230
Here’s the same SHOW command summary as\n
301
00:26:32,230 --> 00:26:36,960
The commands are the same, just replace the\nword CDP with LLDP.
302
00:26:36,960 --> 00:26:43,710
The output for these commands is similar to\n
303
00:26:46,140 --> 00:26:50,140
Pause the video if you want to review these\n
304
00:26:50,140 --> 00:26:56,880
Let’s briefly look at a couple Wireshark\n
305
00:26:56,880 --> 00:27:02,680
First, this is a CDP message sent from R1\nto SW1.
306
00:27:02,680 --> 00:27:10,120
Notice the CDP destination MAC address, 0100.0CCC.CCCC.
307
00:27:10,119 --> 00:27:20,429
But notice that Wireshark describes this destination\n
308
00:27:20,430 --> 00:27:25,344
That’s because this same multicast MAC address\n
309
00:27:27,069 --> 00:27:31,439
Now, here’s the actual CDP information.
310
00:27:31,440 --> 00:27:34,890
You can see here that CDP version 2 is being\nused.
311
00:27:34,890 --> 00:27:40,550
The TTL, time to live, is actually the CDP\nholdtime.
312
00:27:40,549 --> 00:27:46,250
Here are some other fields such as the device\n
313
00:27:46,250 --> 00:27:48,900
platform, addresses, and port ID.
314
00:27:48,900 --> 00:27:54,070
I could expand each of these fields in Wireshark\n
315
00:27:56,259 --> 00:28:01,349
So I just expanded the capabilities field,\n
316
00:28:01,349 --> 00:28:06,009
and ‘Source Route Bridge’, those are the\ncapabilities of R1.
317
00:28:06,009 --> 00:28:11,470
Finally, notice that there is no IP packet\n
318
00:28:11,470 --> 00:28:17,759
These Layer 2 discovery protocols don’t\n
319
00:28:17,759 --> 00:28:23,759
And here’s an LLDP frame capture, this time\n
320
00:28:23,759 --> 00:28:31,170
First up, here’s the destination MAC address\n
321
00:28:31,170 --> 00:28:34,880
And here’s the actual LLDP information.
322
00:28:34,880 --> 00:28:41,390
The time to live, TTL, is the LLDP holdtime\n
323
00:28:41,390 --> 00:28:45,870
name, the host name, of the device which sent\nthis message, SW1.
324
00:28:45,869 --> 00:28:49,509
Here’s the LLDP capabilities field.
325
00:28:49,509 --> 00:28:54,640
Just like we saw before, SW1’s capabilities\n
326
00:28:56,400 --> 00:29:01,100
Okay, you don’t have to look into these\n
327
00:29:01,099 --> 00:29:07,669
to show you some real examples of CDP and\nLLDP messages.
328
00:29:07,670 --> 00:29:12,310
Before moving on to the quiz let’s review\n
329
00:29:12,309 --> 00:29:16,720
First I gave a brief intro to Layer 2 discovery\n
330
00:29:16,720 --> 00:29:21,000
Basically, they enable directly connected\n
331
00:29:21,000 --> 00:29:27,089
each other such as host name, device type,\n
332
00:29:27,089 --> 00:29:31,119
They can be very useful and convenient, but\n
333
00:29:31,119 --> 00:29:35,299
a security risk because of the information\n
334
00:29:35,299 --> 00:29:40,909
So, many network admins choose to disable\n
335
00:29:40,910 --> 00:29:45,970
Then I introduced CDP, Cisco’s Layer 2 discovery\nprotocol.
336
00:29:45,970 --> 00:29:51,860
After that I introduced LLDP, which was developed\n
337
00:29:51,859 --> 00:29:58,699
LLDP is supported by many vendors, so if your\n
338
00:29:58,700 --> 00:30:04,830
Alto, Fortinet, whatever, you’ll have to\nuse LLDP, not CDP.
339
00:30:04,829 --> 00:30:09,159
Make sure to watch until the end of the quiz\n
340
00:30:09,160 --> 00:30:15,300
ExSim for CCNA, the best practice exams for\n
341
00:30:17,529 --> 00:30:19,720
Okay, let’s move on to the quiz.
342
00:30:22,950 --> 00:30:26,759
Which of the following commands show the configured\nCDP timers?
343
00:30:37,829 --> 00:30:43,750
Pause the video to think about your answers,\nselect two.
344
00:30:43,750 --> 00:30:50,240
The answers are A and C. Both of these commands\n
345
00:30:50,240 --> 00:30:55,880
D, SHOW CDP NEIGHBORS does show the current\n
346
00:30:55,880 --> 00:31:01,680
for a CDP message from its neighbor, but it\n
347
00:31:01,680 --> 00:31:06,289
It also doesn’t display the CDP message\n
348
00:31:10,720 --> 00:31:14,569
Which of the following commands represent\nthe default CDP state?
349
00:31:20,289 --> 00:31:24,089
C, CDP ENABLE, from interface config mode.
350
00:31:27,039 --> 00:31:32,869
Pause the video to think about your answers,\nselect two.
351
00:31:32,869 --> 00:31:39,289
The answers are C and D. CDP ENABLE enables\n
352
00:31:40,430 --> 00:31:44,759
D sets the CDP message timer to 60 seconds,\n
353
00:31:44,759 --> 00:31:50,910
A, NO CDP RUN, disables CDP on the router,\n
354
00:31:52,429 --> 00:31:58,990
B, CDP HOLDTIME 120 sets the hold time to\n
355
00:31:58,990 --> 00:32:01,839
The default CDP holdtime is 180 seconds.
356
00:32:08,170 --> 00:32:12,450
You issue the show lldp entry SW1 command\non R1.
357
00:32:12,450 --> 00:32:16,660
R1’s neighbor SW1 is a multilayer switch.
358
00:32:16,660 --> 00:32:20,620
What do you expect to see in the ‘system\n
359
00:32:22,369 --> 00:32:27,429
Pause the video to think about your answer.
360
00:32:27,430 --> 00:32:33,810
The answer is B, System Capabilities: B,R.\n
361
00:32:36,789 --> 00:32:40,819
Because SW1 is a multilayer switch, it has\n
362
00:32:41,819 --> 00:32:48,798
S, as shown in options C and D, means switch\n
363
00:32:48,798 --> 00:32:53,720
Okay, let’s go to question 4.
364
00:32:53,720 --> 00:32:56,829
Which of the following statements about LLDP\nare true?
365
00:32:59,410 --> 00:33:04,890
Pause the video now, read each option, and\n
366
00:33:04,890 --> 00:33:13,870
Okay, the correct answers are B and F. When\n
367
00:33:13,869 --> 00:33:18,609
TRANSMIT, Tx, and RECEIVE, Rx, separately\non each interface.
368
00:33:21,549 --> 00:33:27,629
And LLDP can be used to learn the OS version\n
369
00:33:27,630 --> 00:33:31,179
The other options are incorrect statements\nabout LLDP.
370
00:33:31,179 --> 00:33:36,160
LLDP is an industry standard protocol, so\nA is incorrect.
371
00:33:36,160 --> 00:33:39,370
Its default message timer is 30 seconds, so\nC is incorrect.
372
00:33:39,369 --> 00:33:45,259
It can’t be used to learn the OSPF settings\n
373
00:33:45,259 --> 00:33:49,759
And it can’t be used to learn the VTP settings\n
374
00:33:56,960 --> 00:34:00,980
Which interface on R2 is SW2 connected to?
375
00:34:00,980 --> 00:34:05,970
Is it G0/0, G0/1, G0/2, or G0/3?
376
00:34:05,970 --> 00:34:13,679
Pause the video to examine R2’s CDP neighbor\n
377
00:34:16,570 --> 00:34:20,250
It is shown here, in the local interface column\nof the output.
378
00:34:20,250 --> 00:34:23,780
This shows the interface on R2 that SW2 is\nconnected to.
379
00:34:23,780 --> 00:34:26,429
Okay, that’s all for the quiz.
380
00:34:26,429 --> 00:34:31,619
Now let’s try a bonus question from Boson\n
381
00:34:31,619 --> 00:34:37,429
Okay here's today's Boson ExSim practice question.
382
00:34:37,429 --> 00:34:40,699
You issue the following command on your router.
383
00:34:42,699 --> 00:34:45,269
Which of the following information will be\ndisplayed?
384
00:34:47,219 --> 00:34:50,500
A, the IP address of the neighboring device.
385
00:34:50,500 --> 00:34:55,230
B, the interface on the neighboring device\n
386
00:34:55,230 --> 00:34:59,230
C, The device ID of the neighboring device.
387
00:34:59,230 --> 00:35:03,400
D, the software version running on the neighboring\ndevice.
388
00:35:03,400 --> 00:35:08,700
E, the interface on RouterA that is connected\n
389
00:35:08,699 --> 00:35:13,599
Or F, the capabilities and product number\n
390
00:35:13,599 --> 00:35:17,199
Okay, pause the video now to think about your\nanswer.
391
00:35:23,630 --> 00:35:27,940
Let's go through one by one and see which\nanswers are correct.
392
00:35:27,940 --> 00:35:31,760
So A, the IP address of the neighboring device.
393
00:35:31,760 --> 00:35:35,850
I think that is not displayed by SHOW CDP\nNEIGHBORS.
394
00:35:35,849 --> 00:35:40,779
To view that you have to use SHOW CDP NEIGHBORS\n
395
00:35:40,780 --> 00:35:45,890
B, the interface on the neighboring device\n
396
00:35:47,659 --> 00:35:49,889
You can see that with SHOW CDP NEIGHBORS.
397
00:35:49,889 --> 00:35:53,759
C, the device ID of the neighboring device.
398
00:35:53,760 --> 00:35:57,970
You can also see that, that is the host name\n
399
00:35:57,969 --> 00:36:03,279
D, the software version running on the neighboring\ndevice.
400
00:36:03,280 --> 00:36:06,780
I think you cannot see that in SHOW CDP NEIGHBORS.
401
00:36:06,780 --> 00:36:11,580
Once again, you have to use SHOW CDP NEIGHBORS\n
402
00:36:11,579 --> 00:36:14,329
system version of the neighboring device.
403
00:36:14,329 --> 00:36:19,829
Okay, E, the interface on RouterA that is\n
404
00:36:19,829 --> 00:36:23,599
You can see that with SHOW CDP NEIGHBORS.
405
00:36:24,599 --> 00:36:30,670
The capabilities, which is like router, switch,\n
406
00:36:30,670 --> 00:36:35,289
of the device, of the neighboring device.
407
00:36:36,699 --> 00:36:39,230
So I think these are the four choices.
408
00:36:39,230 --> 00:36:44,130
You cannot see the IP address of the neighboring\n
409
00:36:45,130 --> 00:36:48,650
To view those two you have to use SHOW CDP\nNEIGHBORS DETAIL.
410
00:36:48,650 --> 00:36:54,630
Okay, so to check my answer I will click down\nhere, show answer.
411
00:36:56,210 --> 00:36:58,760
So, here is Boson's explanation.
412
00:37:00,260 --> 00:37:07,280
You can pause the video to read their explanation,\n
413
00:37:07,280 --> 00:37:12,040
Boson gives great explanations, not just why\n
414
00:37:12,039 --> 00:37:14,349
each incorrect answer is incorrect.
415
00:37:14,349 --> 00:37:16,451
So they are a great resource to improve your\nunderstanding.
416
00:37:16,451 --> 00:37:25,789
Okay, and at the bottom there are a few references\n
417
00:37:25,789 --> 00:37:29,050
This is a great book for studying for the\nCCNA.
418
00:37:29,050 --> 00:37:34,710
And also some Cisco documentation about CDP\n
419
00:37:34,710 --> 00:37:41,409
Okay, so that's Boson ExSim for the CCNA.
420
00:37:41,409 --> 00:37:45,440
If you want to get ExSim, please follow the\n
421
00:37:45,440 --> 00:37:49,130
These are by far the best practice exams for\nthe CCNA.
422
00:37:49,130 --> 00:37:54,390
Once again, follow that link in the video\ndescription.
423
00:37:54,389 --> 00:37:57,339
There are supplementary materials for this\nvideo.
424
00:37:57,340 --> 00:37:59,760
There is a flashcard deck to use with the\nsoftware ‘Anki’.
425
00:37:59,760 --> 00:38:05,090
There will also be a packet tracer practice\n
426
00:38:05,090 --> 00:38:07,650
That will be in the next video.
427
00:38:07,650 --> 00:38:11,220
Sign up for my mailing list via the link in\n
428
00:38:11,219 --> 00:38:16,269
the flashcards and packet tracer lab files\nfor the course.
429
00:38:16,269 --> 00:38:20,608
Before finishing today’s video I want to\n
430
00:38:20,608 --> 00:38:23,469
To join, please click the ‘Join’ button\nunder the video.
431
00:38:23,469 --> 00:38:29,663
Thank you to Magrathea, Samil, Aaron, Junhong,\n
432
00:38:29,664 --> 00:38:37,468
Nasir, Erlison, Apogee, Marko, Daming, Joshua,\n
433
00:38:37,467 --> 00:38:43,712
C Mohd, Mark, Yousif, Boson Software, Devin,\n
434
00:38:43,713 --> 00:38:48,570
Sorry if I pronounced your name incorrectly,\n
435
00:38:48,570 --> 00:38:52,840
This is the list of JCNP-level members at\n
436
00:38:54,789 --> 00:38:58,869
If you signed up recently and your name isn’t\n
437
00:39:03,159 --> 00:39:07,199
Please subscribe to the channel, like the\n
438
00:39:07,199 --> 00:39:10,399
with anyone else studying for the CCNA.
439
00:39:10,400 --> 00:39:12,900
If you want to leave a tip, check the links\nin the description.
440
00:39:12,900 --> 00:39:19,750
I'm also a Brave verified publisher and accept\n
36527
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.