NetworkChuck
Day 01Switch/Route

What is a SWITCH?

23m2 chapters113 cues2 cards1 lab
Day 01YT: 9eH16Fxeb9oSponsor: Boson Software
00:00 / 23:22

Synchronized Transcript

113 cues indexed • Click dialogue or words to jump
NetworkChuck

This is day one of my free CCNA course and a huge shout out to Boson Software the official sponsor of the CCNA course they are the reason this can be made available for free.

NetworkChuck

So I highly encourage you to go check them out they have the absolute best CCNA CCNP labs and practice exams day one we're not wasting any time we're getting right into what is this it's a switch how does it work why is it amazing.

NetworkChuck

Because it is amazing and we'll even get a chance to lab what does labing mean well you'll find out we're going to use Cisco Packet Tracer to analyze frames and packets going across the network and you're going to get a chance to enter your.

NetworkChuck

First Cisco CLI command let's get started [Music] in my last video we talked about what a network is and we followed a call of duty bullet.

NetworkChuck

When I shot it from my computer computer how it goes through my home network to my brother's network and shoots his character and we went high level like router switch firewall access point what are those things.

NetworkChuck

But we didn't go too deep but now are you ready we're gonna go just a little bit deeper it's just like one of those red pill blue pill situations from the matrix matrix after this there is no turning back you take the red pill you stay in wonderland and I show you how deep the rabbit hole goes you take this pill there's no going back we're going deep.

NetworkChuck

Into the networking rabbit hole you're going to fall in love and never look back okay I warned you you're still watching this that means you want to keep going let's do this okay let's talk about switches.

NetworkChuck

First what are they and what are they doing and here's one right now this is a switch it's beautiful isn't it look at this oh love it now if you watched our last video you have a high level view of what a switch is for what's it doing well it's helping our computers to connect to each other and talk and hang out and chat send data we connect using these Ethernet cables and we plug them into.

NetworkChuck

Our ports oh love that sound here listen to this up close asmr version uh one of my favorite sounds sounds so we connect one computer connects another computer and assuming we have computers on the other ends of these they're talking they're having fun they're playing games.

NetworkChuck

But what's really going on inside of here let's pop the hood let's take a look oh by the way switches can come in many different sizes like this is an 8 port and this big boy is a 48 port he's beautiful [Music] [Music] why do you need 48 ports well.

NetworkChuck

So you can connect 48 different devices to each other that's why now let's first look at this guy the Ethernet cable all it is is a bunch of metal wires like check it out your computer communicates with the other computers via electrical signals and these electrical signals go down these wires through the cable to the switch.

NetworkChuck

And then it goes to the other computer it's amazing it's just electrical signals going in and out of these ports it's isn't that cool now switches are amazing but for you to really appreciate how amazing they are you need to.

NetworkChuck

Look at their predecessor the one that came before them the hub he's disgusting he's dumb he doesn't have any smarts the switch is smart the hub is not but before we had switches hubs are all we had and.

NetworkChuck

Here's what they did and why they're dumb now I want you to actually see how dumb this is and experience it for yourself so right now what I want you to do is go download Cisco Packet Tracer I've got a link below below sign up for a free account through netacad and you'll be able to download it what is this it's a tool that lets you build and play with networks and.

NetworkChuck

So much more it's amazing so go download and install that it's on Windows MAC Linux and once you install Packet Tracer I've got another link below for a pack a tracer file which is a lab I built that we can play with right.

NetworkChuck

Now so go ahead and download that and launch it do not get overwhelmed with all the buttons and options here I'll walk you through every step right now if you zoom in right here I've got two networks I got this one here which is a switch and my laptops.

NetworkChuck

If I scroll over I've got another network and it's not nearly as smart because I'm rocking a hub now a hub and a switch physically kind of look the same they look like this they have ports where you can plug Ethernet cables into.

NetworkChuck

But they're so so different actually we can look at a hub right now let me click on the physical button up here I can click on my home city my corporate office and then jump into my wirelink wiring closet and there it is.

NetworkChuck

So you can see switch it's got ports hubs got ports okay but why are they different how would you like this if when you sent a text to your friend it didn't just go to your one friend it went to all your friends.

NetworkChuck

And then when your friend responded back to you it only went to you but it went to all your friends as well that's stupid right like that I would never use that texting platform that's what a hub does check this out and I want you to do this with me.

NetworkChuck

So click on simulation down here at the bottom right this is what makes Packet Tracer so cool we can analyze the network traffic slowly as it goes through the electrical wires it's oh it's powerful anyways.

NetworkChuck

So don't touch that leave it there I want you to click on harry potter up here laptop harry then click on desktop and then click on command prompt this is very similar to a Windows command prompt it kind of is a Windows command prompt and what we're going to do is we're going to have mr harry here talk to ron over here through the hub we're going to send a message that we use.

NetworkChuck

In networking all the time called a ping message what is that for we use it to see if other computers or servers are up and can be reached kind of like this ping reply.

NetworkChuck

Now you may have noticed I've got a couple things right here layer two address and layer three address now what's an address well.

NetworkChuck

If I wanted to send you a message I might send it to your email address if I want to send you a letter I might send that to your mailing address it's something unique to you that allows me to send something to you you data whatever and in the networking world it's the same thing.

NetworkChuck

Now what does layer 2 and layer 3 mean we'll cover that here in a bit but just know that when I'm going to send a ping message to ron I'm going to be looking at his layer 3 address that might look familiar to you what is that well.

NetworkChuck

That's an IP address you're probably familiar with that right harry knows that when he wants to talk to ron that's his address that's his phone number that's his mailing address that's how he gets information to ron his IP address.

NetworkChuck

So here we go we're about to ping ron now please make sure you have the simulation button checked not real time you want simulation here we go get your command prompt open we're going to ping ron so I'll type in ping and the ron's IP address 10.1.2.

NetworkChuck

Now watch what happens when I hit enter boom boom a little envelope popped up a little message we're going to send to ron and then notice over here we have a little event timeline where that message is popped up popped up we can.

NetworkChuck

See the play-by-play here as we get more advanced and go deeper and deeper into what's happening which actually happen in the next video we can click on these and look at some hairy details like what's happening don't worry about that yet we'll get into it.

NetworkChuck

But it's amazing so harry wrote his letter he's ready to send it and if we click on this little advanced button right here it'll take a step forward in time let's go ahead and do that that click advanced boom.

NetworkChuck

Let's do it one more time time boom there it goes it's going across the network electrical signals firing so now the hub has the message in an ideal world in a perfect world the hub's like.

NetworkChuck

Okay well this message is for ron I'm going to send it to ron but the hub's an idiot he's dumb watch what happens what happens watch what happens click next and why did you do that mr hob you sent the message to everyone harry's just trying to talk to his buddy ron and.

NetworkChuck

Now hermione knows and and malfoy knows that's that's bad right now watch what happens next remember in a ping situation harry's gonna send a ping hey you there ron iran's gonna go yes I'm here.

NetworkChuck

But watch this click next ron does reply perfect but then watch what the hub does the dummy hub he since ron's replied out to everyone why hub why well again the hub has no smarts he's got no brain his job is just to repeat that electrical signal whenever your computer sends down this wire the hub is going to go and send out to everyone.

NetworkChuck

This is how we did things for a long time now notice that over here harry potter's got a green check mark going yes yes yes that message is for me yes yes yes but then down here malfoy and hermione have this x which means that most the time in a hub environment.

NetworkChuck

If a computer got a message that wasn't meant for them it would just ignore it but but you know that's if you're a good person if you're a hacker like I'm learning hacking right.

NetworkChuck

Now if you get a message like that if you're able to see everyone's traffic you're like yes yes give me more I'm gonna hack all you guys not a very safe and secure environment you don't want to text your buddy something secret and all of a sudden all your friends know the secret.

NetworkChuck

But now let's look at the switch he fixes everything go ahead and click on reset simulation you can close out harry potter there and let's scroll on over to the better environment environment the switch environment.

NetworkChuck

Now here the switch has the same goal as the hub just to connect these computers together so they can talk so they're doing the same job just one's really really good at it so over here let's walk through the same situation johnny right here is gonna ping ping mark oh hi mark and we'll.

NetworkChuck

See what happens and I'll explain how it happens here in a moment so go ahead and click on johnny click on the desktop tab and then jump into your command prompt we're going to type in ping.

NetworkChuck

And then mark's IP address right here is 10.1.1.2 we're going to hit enter and bam johnny's got a message ready for mark let's click on next and see what happens.

NetworkChuck

Next next next okay there it goes the switch has it what's it gonna do boom so much better only mark got it and then when mark responds it only goes to johnny.

NetworkChuck

That's how it's supposed to work thank you mr switch and if you look back at our command prompt you can see that we sent a ping message message and then we got a reply from mark from the IP address everything's good mark's alive he's like hey yeah yeah johnny I'm here and.

NetworkChuck

If we click on real time it'll just complete it like it normally should bam bam bam really fast because these electrical signals are going really really fast down these wires but that's what's cool about this Packet Tracer we can slow down time bullet time and.

NetworkChuck

Watch it happen okay we're about to go deeper we're about to learn more about how this guy does things are you ready let's take a deeper look the switch can do all this magic because it has a brain that can remember things like a brain that can.

NetworkChuck

Remember things like hey on my port fa02 that's where johnny lives and on my port fa01 that's where mark lives and the same thing goes for denny and lisa and anyone else who connects to the switch switch he'll.

NetworkChuck

Remember where they are so when you send a message he'll go oh well I know exactly where johnny is he's over here here port fa02 he stores that information in something called the CAM table which stands for content addressable memory don't worry about that too much right.

NetworkChuck

Now we'll cover a lot of that later now the switch doesn't know johnny as johnny the switch knows johnny as 00d097528936 that's how the switch knows johnny has a layer 2 address.

NetworkChuck

That's how the switch knows mark he doesn't know mark's name but he doesn't know zero zero e0b0590897 love that guy what are these things that's called a MAC address often referred to as a layer two address every single device that you connect to the Internet has a MAC address every one of them like.

NetworkChuck

Go ahead and look get your laptop out look for it like on this phone here that I would connect to the switch look right here there's my phone's MAC address right there it's often referred to as the burned in address.

NetworkChuck

Because this address should never change that's how your device is identified it's unique identifier so when I connect my phone to this switch and my phone tries to talk to somebody boom the switch learns hey that phone which which that phone's name is 9c57803844a.

NetworkChuck

He lives on port 1. So if anybody wants to talk to him it's gonna be part one now we'll cover more about layers here in a moment I'm kind of building up to that that but this right here doing this and that wonderful beautiful sound yes.

NetworkChuck

That's this is layer one anything physical physical the the electrical wires the metal wire that send electrical signals down into the switch that's layer one so layer one electrical signals firing at light speed down Ethernet cable physical physical.

NetworkChuck

And then we get to our switch and now we're thinking about layer two that's where our layer two address comes in that's where the MAC address comes in layer two is often referred to as the data link layer.

NetworkChuck

But we won't cover too much on that right now I have to stop I don't wanna give you too much right now now you may be wondering why isn't the switch just using the using the layer three address like what we used.

NetworkChuck

When we pinged 10.1.1.2 why isn't the switch no marked by that number well the simple answer is that the switch can't even see that number it has no idea what it is you see the switch is a layer 2 device and doesn't know anything about layer 3 or IP addresses or anything.

NetworkChuck

That's why we're dealing with MAC addresses right now now watch this let's get back to our Packet Tracer we're going to do a couple things here real quick let's click on simulation mode once more and let's open up mark we'll go to his desktop go to his command prompt and we're going to ping lisa down here.

NetworkChuck

So we'll do ping 10.1.1.5 and hit enter the message was built now go and click the forward message real quick and I want you to click on this this message right here we have click on it.

NetworkChuck

Now as you can see we have seven layers we're going to be talking about here very soon but don't don't think about anything above layer three right now don't think about that but notice this message we're sending to the switch notice what's not there layer three is missing it's just layer two two.

NetworkChuck

Because that's all the switch understands and also notice the two and from so right here we have the from which is the MAC address of mark over here and then the two is to lisa's MAC address down here and.

NetworkChuck

If we go ahead and step forward in time boom the switch receives it if we click on that message again we see that switch receives it receives it and he knows exactly where to send it.

NetworkChuck

Because he remembers where lisa is and then if we click on that button bam it goes to lisa now I'm not sure if I want to show you this yet yeah let's go ahead and do it so click on that envelope right there the message that just arrived to lisa you can.

NetworkChuck

See here that instead of just having layer one and layer two we now have layer three involved because that's a layer that mark and lisa are talking on layer three you see we pinged from mark's IP address 10.1.1.2 to lisa's IP address of 10.1.1.5.

NetworkChuck

And then lisa is sending out a message see out to mark at 10.1.1.2 from herself 10.1.1.5 and then we step forward in time once more boom we see this message go to the switch.

NetworkChuck

But then if we open that message oh layer three is gone again it's just layer two because that's all the switch cares about is layer two and that's how he knows where things are that's where devices are based on their MAC address.

NetworkChuck

Now go and click on real time let that finish out and we're gonna jump into the switch's command line interface and this might be your first Cisco command kind of exciting so let's let's open it up what we're going to do is we're going to.

NetworkChuck

Look inside the switch's brain so go and click on him and jump to the CLI tab this is a whole new world for you yes okay now hit enter then type in enable and hit enter hit enter.

NetworkChuck

Now you should have a hashtag sign right there next to your switch here's a command I want you to enter show MAC dash address dash table we're looking inside the switch's brain and looking at his CAM table where he keeps the MAC addresses and how they are assigned to the ports.

NetworkChuck

Because mark and lisa just talked the switch knows that mark which is referred to as blah blah blah MAC address lives fa01 and then lisa lives at fa03.

NetworkChuck

And then if we go to denny over here over here and we go to desktop and command prompt and we try to ping johnny 10.1.1.3 it's going to go through it's being successful awesome.

NetworkChuck

If we jump back into the switch and hit the up arrow to enter the same command hit enter well now the switch knows where everyone is he knows where johnny is where denny is or mark and lisa he learned it stored it in his brain and.

NetworkChuck

Now whenever someone sends a message he goes goes I know exactly where they are boom right there the hub just doesn't do that and that's the job of the switch he learns where everyone is by learning their MAC address they're burned in address address and stores that in his brain is CAM table and marks where they are.

NetworkChuck

So whenever he receives a message he can forward those messages to the appropriate people and not to anyone else that shouldn't hear about it now when we're talking about layer two this message right here is referred to as a frame all the messages going through this switch right here are frames frames boom boom boom frames just going around like crazy.

NetworkChuck

Because it's layer two when you think layer two think switch think frames frames switch frames layer two switch frames switch frames layer two is it working is it going in layer two is it working is it going in there.

NetworkChuck

But then when the message goes to lisa and we're talking about IP addresses in layer three do you know what it becomes this message is now a packet now just so you know when you're talking to network engineers and other folks they might refer to layer two messages the frames they might call those packets as well we just get in the habit of it.

NetworkChuck

If it's going across the network and it's going to people and it's a message we often just refer to it as packet it just happens but technically it's frames layer 2 frames switch layer it's frames layer 2 frames switch 2 frames switch.

NetworkChuck

Okay now we're gonna talk a little bit about wireless um here's a wireless access point little baby Cisco one here's a bigger Cisco one the reason I wanna talk about them now along with switches is because they're basically doing the same job as a switch a switch.

NetworkChuck

But what's funny what's funny is they're more like a hub than a switch they're kind of dumb I mean they're amazing but they're kind of dumb like a hub let me show you looking back at Packet Tracer.

NetworkChuck

If I scroll down just a little bit you can see I have a little wireless network here let me add the uh IP addresses here real quick now what I want you to do real quick is down here at the bottom click on the lightning bolt or harry potter esque.

NetworkChuck

And then click on the lightning bolt again this is a connection it's like plugging an Ethernet cable and we're going to plug it into the access point here and then plug it into our switch we talked a little bit about wireless in.

NetworkChuck

The first video but it's just an extension of the switch so it connects to the switch with an Ethernet cable and then it connects all the other devices via wireless which we know to be airwaves or radio waves.

NetworkChuck

So most of our devices like our phones and everything else connect to this access point which is connected to a switch now even though this access point is connected to a switch he's actually more like a hub and it's all about these connections right here.

NetworkChuck

Let me show you real quick I'm gonna have mr denny here I'm gonna click on denny and launch his laptop we're going to go into his desktop and go to his command prompt and we're going to ping.

NetworkChuck

Let's say the first tablet down here 10.1.1.11 so I'll do ping 10.1.1.11. Oh and I forgot to go into simulation mode let's go to simulation mode down here bring denny back up and boom.

NetworkChuck

So as you can see denny's got his packet ready and he sends this frame to the switch now if we open up that frame what do we see well we see that the source is indeed denny over here based on his MAC address.

NetworkChuck

And then the destination well what is that matching let me scroll down here we can see yeah it does match the first tablet here so the switch knows that he lives on this port connected to the access point.

NetworkChuck

But it's what the access point does with it that's so stupid but it's just how wireless is right now let's skip forward in time the access point has it.

NetworkChuck

Now but now let's see what happens click next boom and once more boom the message was sent to everyone like a hub now we'll cover wireless in more detail here later in this course.

NetworkChuck

But just know for now that's why people tell you plug into an Ethernet cable at all cost if you can because a wireless connection is more like a hub and the fact that all the messages are going to each device isn't the worst part with hubs it's just a traffic jam collisions all the time which is why switches are great and we'll cover more on that later.

NetworkChuck

But yeah always prefer Ethernet cable a hardline connection to a wireless connection if you can you can now later versions of Wi-Fi like Wi-Fi 6 do help out with this I actually made a video on Wi-Fi sticks that you can check out up there.

NetworkChuck

And then as we step forward a time when the first tablet sends here's a reply back back the access point will then send it to the switch and then the switch like it's supposed to we'll just send that to denny denny but then we had the same process happen again.

NetworkChuck

When denny does send another ping hey hey hey first tablet are you there the access point will still broadcast that doubt out to everyone all right hope you have your coffee ready time for a quiz time to test your knowledge and what we just covered in this video the questions I'm about to ask you are not easy I pulled them from Boson xm the best CCNA CCNA practice exam you can.

NetworkChuck

Find they are world renowned and they are sponsoring this video so check out the link below for that exam anyways let's see what you know question number one which of the following addresses will a switch use to populate the CAM table select.

NetworkChuck

The best answer if your answer was b source IP address you are wrong because the answer is in fact fact d source MAC address.

NetworkChuck

Remember switches layer 2 MAC address switches layer 2 MAC address address let's select our answer and get the deep down dive from Boson so right off the bat.

NetworkChuck

Because we know we're talking about a switch in the CAM table we can mark out a and b because those are talking about IP addresses and the switch doesn't know anything about IP addresses but what we're talking about now is MAC addresses.

NetworkChuck

Now it could have been source or destination destination a switch will learn a MAC address and add it to its CAM table when a device sends a frame to that port and in that frame the source MAC address will be this guy's MAC address.

NetworkChuck

So that makes sense destination would be who he's sending that frame to which might be a person over here and you wouldn't want to add this guy's MAC address to this guy's port confusion it wouldn't work.

NetworkChuck

If you got that right that's amazing amazing you're just a little bit closer to passing your CCNA next question which of the following addresses will a switch use to make forwarding decisions select the best answer [Music].

NetworkChuck

If your answer was destination MAC address then you are absolutely correct.

NetworkChuck

Let's select the answer and see if Boson thinks I'm right here is Boson's wonderful explanation I encourage you to pause the video and read that but looking at the question it's talking about about a switch making forwarding decisions well we can automatically say you know what what source IP addresses out destination IP address is out.

NetworkChuck

Because again switches don't know anything about IP addresses now when a switch receives a frame from a device this frame will have a source MAC address let's just say zero zero zero one and a destination zero zero zero two the source is coming from this guy.

NetworkChuck

That's his MAC address he's trying to send it to the destination MAC address this guy who is probably over here and this question explanation is perfect because it piggybacks off the previous question question the switch will not use a source MAC address to make forwarding decisions however it will use it to populate the CAM table again.

NetworkChuck

If you got that right congrats you are even closer to getting your CCNA and if you didn't it's fine go back and watch the video learning is a process it's a day by day thing adding to your knowledge you'll get there trust me didn't I tell you switches are amazing and we I know I keep saying this have just scratched the surface and in this video we covered.

NetworkChuck

Some ground on how switches work you even got to work in Packet Tracer and watch packets and frames go across the network you may have even issued your first Cisco CLI command which is amazing write that down today was your.

NetworkChuck

First command show MAC address table you looked inside the switch's brain inside his CAM table to see the MAC address to switch port assignment that's huge and guys that's about it we just covered day one switches in the coming videos we'll be talking about routers and we'll be talking about the other layers of the OSI model which we kind of talked about.

NetworkChuck

Layers one two and three today we'll cover the rest soon and you're gonna love it trust me if you like this stuff you will love love that stuff and again huge massive shout out to bozon software for sponsoring sponsoring this CCNA series they're making it free.

NetworkChuck

So I encourage you go check them out they have amazing labbing software so what I showed you today was Cisco Packet Tracer it's great for demonstrating to you how a network works Boson netsim is a great lab software that will allow you to go through labs and once we get deeper into like Cisco command line stuff stuff where it gets pretty pretty.

NetworkChuck

Sophisticated pretty complex they have fantastic labs that walk you through things they'll grade you on how you do and they'll even explain everything it's it's awesome.

NetworkChuck

And then of course the practice exam questions I showed you today today that's from their practice exam and ask around their exams are golden if you can pass their exams uh you can probably pass the CCNA many people say bosons is actually harder than the real CCNA CCNA.

NetworkChuck

So links below for that again they have their summer sale it's 25 off if you have any questions or comments please let me know below and if you like this video like it hit that subscribe button and hit that bell notification icon to be notified.

NetworkChuck

When I post stuff this was CCNA day one see you on day two [Music] you.

Keyboard shortcuts

Shortcuts are ignored while you are typing in a search box, note field, or the scratchpad.

Playback

SpaceK
Play or pause
←→
Seek 5 seconds
JL
Seek 10 seconds
C
Toggle in-video captions

Scrubber (when focused)

←→
Seek 5 seconds
Shift←/→
Seek 10 seconds
Page UpPage Down
Seek 30 seconds
HomeEnd
Jump to start or end

Flashcards

Space
Reveal the answer
1234
Grade Again / Hard / Good / Easy

Navigation

←→
Move between study-mode tabs
HomeEnd
First or last study-mode tab
?
Open or close this sheet