CDP & LLDP
Synchronized Transcript
109 cues indexed • Click dialogue or words to jumpWelcome to Jeremy's IT Lab this is a free complete course for the CCNA if you like these videos please subscribe to follow along with the series also please like and leave a comment and share the video to help spread this free series of videos thanks for your help also.
Remember to sign up via the link in the description to get all of the lab files for this course so you can try it out yourself in Packet Tracer if you want more Labs like these I highly recommend picking up Ban's netsim for the CCNA click the link in the video description to.
Check it out it's a network simulator like Packa Tracer but it's even better and it includes all of these guided labs to not only help you get Hands-On practice configuring and troubleshooting.
But also deepen your understanding of the exam topics I used it myself when studying for my certifications so I feel confident about recommending it to all of you.
If you want to get your own copy of netsim please follow the link in the video description in this lab we will use CDP to map out a network topology.
And then disable CDP and switch the network to LLDP as you can see there are currently no IP address or interface labels in this network in this lab you will use CDP show commands and some other commands to map out this network for the purpose of this video I have pre-made.
All of the labels just to make the video go more smoothly but in the lab file I'm sharing with you you'll have to make the labels labels yourself there are four steps.
But they can be divided into two parts steps one and two involve some CDP configurations and using CDP to map out the network then in steps three and four we will disable CDP and enable LLDP instead these network devices are all Cisco devices.
So CDP is fine but perhaps we are switching over to LLDP to prepare for adding devices from another vendor I was planning to have you configure the CDP and LLDP timers in this lab too.
But actually those configurations aren't supported in Packa Tracer still remember those commands CDP timer CDP hold time llddp timer llddp hold time and llddp reinit.
Okay now I'll do steps one and two on each device first I'll start on pc1 although this PC can't use CDP we need to add its IP address to this network diagram.
So I'll go to the CLI of pc1 then I'll use the command IP config and now we get a few pieces of information pc1 IP address is 192.168.1.1 and the subnet mask is sl24.
So that means this LAN is 192.168.1.0 192.168.1.0 sl24 also the default gateway is 192.168.1.254 which must be r1's I IP address.
So let me add those labels Network address of 192.168.1.0 192.168.1.0 241 for PC 1's address and 254 for r1's address.
Now I'll move to switch one so we need to add interface labels for step one and disable CDP on the interface connected to pc1 for step two.
First let's add the interface labels enable so let's check the CDP neighbor table show CDP neighbors okay.
So we can see that switch one's gig 01 interface is connected to r1's Gig 02 interface let me add those labels.
Now g01 for switch 1 and g02 for R1 now how about the interface connected to to pc1 pc1 doesn't use CDP.
So we have to use a different method if there were many PCS connected to switch one we could check the MAC address of each PC and then look at switch one's MAC address table to.
See which interface is assigned to which MAC address however I'm keeping it simple in this lab only one PC is connected to each switch.
So instead let's just check which interface of switch one is in a connected State show interfaces status gig 01 is connected to R1 and the only other interface in a connected state is fast Ethernet 010.
So that must be connected to pc1 I'll add that label now f010 connected to pc1 but we're not done with switch one yet.
Let's return to the CLI next I'll disable CDP on f010 as stated in step two conf t interface f010.
First let's check with this command do show CDP interface F0 10 so CDP is enabled on the interface.
Now let's disable it no CDP enable remember CDP run is used in global config mode to enable or disable CDP itself CDP enable is used in interface config mode to enable or disable CDP on individual individual.
Interfaces okay let's check that it was disabled do show CDP interface f010 and now there is no output so CDP was disabled on the interface.
That's all for switch one now I'll go on R1 enable first I'll add interface labels by checking show CDP neighbors we already labeled g02 and switch 1's G 01.
So r1's g0 is connected to r3's g01 let me label those g0 for R1 and g0 1 for R3 then r1's g01 interface is connected to r2's g0000 interface.
I'll label them g01 for R1 g0 for R2 so we've added interface labels now let's check r1's IP address.
First I'll use show interfaces g0 up here at the top you can see both the IP address and the sl30 prefix length show IP interface brief is a convenient way to check IP addresses.
But it doesn't show the prefix length so I'll add the 10.0.1 13.30 network label for this connection between R1 and R3 And1 for r1's IP address.
Now because this is a sl30 subnet there is only one more valid host address in the network that is2.
So I'll add that label for r3's interface however just to practice CDP let's confirm r3's address here on R1 use the command show CDP entry R3 up here under the device name you can.
See r3's IP address 10.0.1 13.2 now let's check r1's g01 interface show interfaces g01 the IP address is 10.0.2 12130.
So let's add those labels 10.0.1 12.30 for the network address1 for R1 and once again.
This is a sl30 network so we know that r2's address address is2 okay let's speed things up for the remaining labels I'll do PC2 switch 2 and R2.
Next first PC2 from the CLI of PC2 use IP config so PC2 address is 192.168.20.10 2254.
Let's add those labels first the network address of 192.168.20.10.
Neighbors okay here we can see that switch to's g02 interface is connected to r2's g01 interface.
Let's add those labels g02 for switch 2 and g01 for R2 sorry for the messy diagram sometimes it's difficult to make all of the text big enough for everyone to.
See while still fitting it all on one screen now which interface is connected to to PC2 show interfaces status the fast Ethernet 01 interface is connected.
So I'll add that label f01 finally let's disable CDP on that interface conf T interface f01 no CDP enable.
Okay that's all for switch switch to next R2 all we need to check is the connection between R2 and R3 enable show CDP neighbors.
So r2's g02 interface is connected to r3's g02 interface I'll add those labels.
Now g02 for both routers now how about the IP addresses let's check show interface g02.
Okay r2's IP address is 10. 0.231 30 so we know the network address is is 10.23 and r3's address must be 10.23 2.
Let's add those labels 10.23 30 for the network1 for R2 and2 for R3.
That's all for R2 next I'll do the same for PC3 switch 3 and R3 PC3.
First from PC3 CLI use IP config config okay PC3 IP address is 192.168 3124 and r3's IP address is 192.168 3254.
Let's label them 192.168 3.24 for the the network1 for PC3 and 254 for R3.
Next I'll go on switch 3 enable show CDP Neighbors okay switch 3's g01 interface is connected to r3's G interface.
Let me label label those g01 for switch 3 and g0 for R3 next which interface of switch 3 is connected to a PC3 show interfaces status fast Ethernet 024.
Is connected so I'll add that label and finally let's disable CDP on that interface conf T interface f024 no CDP enable.
Okay we have successfully used CDP to map out the network and disabled CDP on interfaces connected to PCS steps one and two are complete.
Next in steps three and four let's disable CDP and enable llddp instead enabling both llddp transmit and receive on on the interfaces connected to other routers or switches.
First let me clarify something about llddp configurations in the lecture I said you have to enable llddp globally and on each interface.
But actually the llddp Run command should enable LLDP transmit and receive on each interface this might depend on the model of the device on some devices LLDP itself is globally enabled by default.
But on the ones I tested these configurations off configurations off configuring llddp run also enabled llddp on each interface for the purpose of this lab however llddp transmit and receive have been disabled and must be manually configured the.
Configurations are quite simple so I'll go through these quickly I'll start here on switch 3 first exit to return to Global config mode I'll disable CDP no CDP run.
And then enable llddp LLDP run now we need to enable LLDP on each interface connected to another Network device g01 only on switch 3 interface g01 LLDP.
Transmit LLDP receive okay next R3 enable conf t no CDP run llddp Run.
Next I'll enable it on all three connected connected interfaces interface range g0000 to two LLDP transmit LLDP receive.
Okay r3's done next I'll do switch two exit no CDP run llddp run and I'll enable it on g02 interface interface g02.
LLDP transmit LLDP receive okay next R2 conf T no CDP run llddp run and.
Let's enable it on all connected interfaces interface range g0000 to2 LLDP LLDP transmit LLDP receive.
Okay finally switch one and R1 switch one first exit no CDP run llddp run interface g01 LLDP transmit.
LLDP transmit LLDP receive and last R1 conf T no CDP run LLDP run interface range g0000 to2 LLDP transmit llddp.
Receive okay we've enabled llddp on all devices I'm going to switch to packet tracers simulation tracers simulation mode as I click through here you'll.
See various kinds of messages being sent EIGRP because I preconfigured EIGRP on the routers in case you want to try out some pings also STP and llddp you might.
See some DTP messages too so with this we can confirm that CDP has been disabled and llddp has been enabled.
If you want some additional practice you could try checking the interface and IP address labels this time using llddp instead of CDP.
But that's all for this lab next let's take a look at a bonus lab in ban software's netsim for CCNA okay here's today's boa netsim lab preview the lab is simply titled link layer Discovery layer Discovery protocol.
Here is the lab topology it's pretty simple just two routers directly connected as I've said before netsim has a wide variety of labs some of them are longer and more complex and some of them are shorter and simpler like this one and here are the commands you need to know to complete this lab.
You already know all of these commands LLDP hold time time receive run timer transmit and some show commands so there are three main tasks task one is configure LLDP task two configure LLDP on an interface and task.
Three tune llddp timers so it looks pretty long but each of these steps is quite short and simple so let's do the whole Lab so starting with task one step one it says up here all steps in this task are performed on router one.
So here we are Step One display Global LLDP Information is llddp running let's check show LLDP.
Okay no LLDP is not running at the moment and then step two says enable LLDP conf T LLDP run.
So that enables LLDP globally on the device and as I clarified before this also should enable transmit and receive on each interface I think in the lecture I said you have to enable it globally.
And then enable transmit and receive but actually usually just LLDP run should be enough but this might depend on the device model or IOS version.
Okay so display a Summarize list or sorry I skipped step three issue the appropriate show command to verify that LLDP is enabled.
So I'll do show llddp once more and it is enabled it says status status active Okay now I'll show that LLDP uh neighbor list do show LLDP LLDP neighbors how many neighbors have been discovered.
Just one here r or two okay step five display a detailed list of neighbors okay so that is show llddp neighbor neighbor detail and what is the chassis ID of the neighbor discovered.
So you might be wondering what that chassis ID is that is this here and what does that look like it's a MAC address so this is the MAC address of router 2.
Okay how many seconds will elapse before router one discards previously received LLDP information for this neighbor okay you might be wondering what that means that is referring to the hold time.
So it is currently the default of 120 seconds but at the moment there are 97 seconds remaining or when I did this show command there were 97 seconds.
If I do that again now it's a different value now it's 93 seconds okay so that is Task one next task two uh Step One display LLDP information for the fast Ethernet 0000 interface.
Interface okay do show llddp llddp interface interface f0000 okay what Fields indicate that fast Ethernet 00 0 is receiving and sending LLDP sending LLDP advertisements well you can.
See that both TX and RX are enabled TX is currently idle meaning it's waiting to send the next frame and RX is in wait for frame State and that means it is waiting for the.
Next frame from rouder 2 okay disable llddp advertisements from being sent out of the fast EET 0000 interface.
Okay interface f0000 and I will use no LLDP uh transmit and that disables the advertisements out of the interface.
Okay and then in step four let's check that they were disabled okay okay so TX is.
Now disabled however RX is still enabled so router 1 will still be able to receive um llddp messages from router 2.
But it won't send any of its own messages to router 2 okay and then step five says to configure router one to accept incoming llddp advertisements well it already is rx is enabled and to send llddp advertisements.
On the fast EET 0 Z interface okay so that means enable transmit once more so llddp transmit and it's enabled again.
Okay finally task three tune llddp timers uh Step One display Global LLP information what is the default number of seconds that will elapse before an LLDP advertisement is sent.
So that is by default 30 seconds and next what is the default number of seconds that will elapse before a receiving device should discard information received in a previously received LLDP advertisement from router 1 that might be a little difficult to understand that is referring to the hold time.
And that is by default 120 seconds and there are the default timers 30 seconds for the advertisements the messages 120.
Second hold time and also the reinitialization delay of 2 seconds which isn't mentioned up here okay and then in steps two and three we are going to cut these defaults in half.
So a 60-second hold time and 15-second message timer okay so llddp hold time 60 llddp timer 15 and.
Let's check do show LLDP okay there are the new uh timers okay so that's all for this lab to finish up.
Let's use the grading function and that is the icon up here it says grade lab so if I click on it it tells us that we completed the lab successfully and you can check the configurations of each device.
Here's router router one and none of the configurations are highlighted either red or blue so that means that we successfully completed the lab.
Okay so that's ban netsim for the CCNA if you want to get boan netsim please follow the link in the video description there's over a 100 detailed guided labs and it's included with a powerful Network simulator.
So I really highly recommend ban netsim for the CCNA or even CCNP after the CCNA so once again if you want boan netsim please follow the link in the video description before finishing today's video I want to thank my jcmp level channel members.
To join please click the join button under the video thank you to mgia samil Aaron junong unjo Benjamin tapiso Justin prakash Nasir erison apy Marco daming jilmar Ed value John funny dart velv jum SE mode Mark Yousef.
Ban software Devon Leto yonathan and Vance sorry if I pronounced your name incorrectly but thank you so much for your support.
This is the list of jcmp level members at the time of recording by the way December 19th 2020 if you signed up recently and your name isn't on here don't worry you'll be in future videos thank you for watching please subscribe to the channel like the video leave a comment and share the.
Video with anyone else studying for the CCNA if you want to leave a tip check the links in the description I'm also a Brave verified publisher and accept bat or basic attention token tips via the brave browser.
That's all for now.