What is a ROUTER? // FREE CCNA // EP 2

NetworkChuck
25 Jul 202021:51

Summary

TLDRThis CCNA course episode, sponsored by Boson Software, dives into the role of routers in networking. It explains how routers connect different networks and the internet, using a virtual lab to demonstrate packet transmission. The video covers ARP, IP addressing, and the significance of gateways in routing traffic. It also previews DNS and HTTP processes, showing how a user's request to access a website is handled at a technical level, all while giving away Boson NetSim licenses to lucky viewers.

Takeaways

  • πŸŽ“ This is the second episode of a free CCNA course sponsored by Boson Software, which provides the best CCNA and CCNP labs and practice exams.
  • 🌐 Routers are essential networking devices that connect us to the internet and other networks, serving as the gateway to different networks.
  • πŸ” The video demonstrates how routers and switches work together, with routers being responsible for directing traffic between different networks based on IP addresses.
  • πŸ† Boson Software is giving away five copies of their netsim product, which is a top choice for CCNA and CCNP labbing.
  • πŸ–₯️ The script uses a practical example with a Raspberry Pi named Johnny to illustrate how a device on one network can access resources on another network through a router.
  • πŸ“¦ IP addresses are crucial for defining network boundaries, and different groups of IP addresses represent different networks.
  • πŸ”„ The Address Resolution Protocol (ARP) is used to find the MAC address associated with an IP address, which is necessary for communication within the same network.
  • πŸšͺ The concept of a 'gateway' in networking is essentially a router that helps devices in one network reach devices in another network.
  • πŸ›°οΈ Routers have a routing table, which acts as a map to direct packets to their correct destinations based on IP addresses.
  • 🌐 The script gives a sneak peek into the complexity of internet routing, showing that routers on the internet have extensive routing tables to direct traffic to countless networks.
  • πŸ“š The video concludes with a call to action for viewers to join a community for further learning and support, emphasizing the importance of continuous education in networking.

Q & A

  • What is the main focus of the second episode of the free CCNA course?

    -The main focus of the second episode is to explain the function of routers in connecting networks and facilitating internet access, as well as demonstrating how data packets and frames traverse a network to access a web server.

  • Who is the official sponsor of the CCNA course mentioned in the script?

    -Boson Software is the official sponsor of the CCNA course.

  • What is the purpose of a router in a network?

    -A router's purpose is to connect different networks, allowing data to be transferred between them, and to facilitate access to the internet.

  • What is the significance of the gateway in the context of the script?

    -The gateway, in this context, refers to the router's IP address that a device uses to connect to networks outside of its own local network.

  • How does a switch differ from a router in terms of network communication?

    -A switch operates at Layer 2 of the OSI model and uses MAC addresses to forward frames within the same network, while a router operates at Layer 3 and uses IP addresses to route packets between different networks.

  • What is ARP and why is it used in the script?

    -ARP (Address Resolution Protocol) is used to find the MAC address associated with an IP address on a local network. It is used in the script to demonstrate how devices discover the MAC addresses needed to communicate within the network.

  • What does the script reveal about the process of accessing a website from a local network?

    -The script reveals that accessing a website involves resolving the website's domain name to an IP address using DNS, and then sending HTTP requests through routers and switches to retrieve the website's content.

  • What is Boson Netsim and why is it being given away in the script?

    -Boson Netsim is a CCNA and CCNP labbing software used for practice. It is being given away in the script as a promotion to encourage viewers to participate in the contest and potentially win a copy of the software.

  • How does the script illustrate the concept of IP addressing and network separation?

    -The script uses two different sets of IP addresses to represent separate networks and demonstrates that devices within the same range are on the same network, while those outside the range are on different networks.

  • What is the role of a DNS server in the context of the script?

    -The DNS server resolves domain names to IP addresses, which is necessary for a device to access websites using their friendly names instead of IP addresses.

  • What command is used in the script to view the routing table of a Cisco router?

    -The 'show ip route' command is used to view the routing table of a Cisco router, which contains a map of IP addresses and how to reach different networks.

Outlines

00:00

🌐 Introduction to Routers and Networking

This paragraph introduces the concept of routers and their fundamental role in connecting networks. The speaker expresses gratitude to Boson Software for sponsoring the free CCNA course and encourages viewers to check out their CCNA and CCNP labs and practice exams. The video aims to explain the necessity of routers, their function in networks, and how data packets traverse through them to access the internet. The speaker also announces a giveaway of Boson Netsim, a popular labbing software for networking professionals, and sets the stage for a demonstration on how a frame and packet move across a network.

05:00

πŸ” The Role of Routers in Network Communication

The speaker delves into the specifics of how routers operate to connect different networks, using the analogy of Johnny wanting coffee from a server on a different network. It explains the limitations of switches and the need for routers to facilitate communication across separate networks. The paragraph discusses the physical aspects of routers, differentiating them from switches and home routers, and introduces the concept of IP addresses and how they define network boundaries. The speaker also demonstrates the process of removing a router to illustrate the point that direct switch-to-switch connections do not bridge network divides.

10:00

πŸ“¦ Router Configuration and ARP Process

This section covers the basic configuration needed for routers to function effectively, emphasizing that unlike switches, routers require setup to understand how to route between networks. The speaker uses the example of Johnny trying to ping a coffee server to explain the Address Resolution Protocol (ARP) process. It details how ARP allows devices to discover the MAC address of the target device by broadcasting a request within the local network. The paragraph also touches on the concept of gateways and how devices recognize when to use a router to reach destinations outside their local network.

15:02

🌐 Router Magic: How Data Reaches the Destination

The speaker continues the exploration of router functionality by illustrating how Johnny's computer communicates with a coffee server through a router. It explains the process of sending ARP requests to the router to discover its MAC address and how routers use their internal routing tables to determine the best path for data to travel. The paragraph demonstrates the interaction between Johnny's computer, the router, and the coffee server, highlighting the router's role in translating layer 3 (IP) addresses to layer 2 (MAC) addresses to facilitate data transfer.

20:03

🌐 DNS and Accessing Websites

This paragraph introduces the Domain Name System (DNS) and its importance in translating human-readable website URLs into IP addresses that networks understand. The speaker shows a demonstration of Johnny accessing a website by typing a URL, which triggers a DNS query to resolve the site's IP address. It explains the process of Johnny's computer learning the MAC address of the DNS server through ARP and then receiving the IP address for the website. The paragraph concludes with a sneak preview of visiting a website and the underlying networking processes involved.

πŸš€ Conclusion and Future Topics

The speaker wraps up the episode by summarizing the key points covered and hinting at more complex routing topics to be discussed in future episodes. They encourage viewers to ask questions, seek help, and join their Discord community for further support. The paragraph also acknowledges Boson Software's sponsorship and invites viewers to participate in a giveaway. The speaker teases upcoming content and ends the episode with a reminder of the importance of routers in networking.

Mindmap

Keywords

πŸ’‘CCNA

CCNA stands for Cisco Certified Network Associate, which is an entry-level certification program for network engineers. It is the focus of the video's course, and the script discusses the importance of this certification in networking. The video is part of a free CCNA course, indicating the educational intent and target audience.

πŸ’‘Boson Software

Boson Software is mentioned as the official sponsor of the CCNA course in the video. They provide CCNA and CCNP labs and practice exams, which are essential tools for individuals preparing for these certifications. The script encourages viewers to check out Boson Software, highlighting their support for the free educational content.

πŸ’‘Router

A router is a networking device that forwards data packets between computer networks. In the context of the video, routers are depicted as essential for connecting to the internet and other networks. The script explains how routers operate and their role in facilitating communication across different networks, using the analogy of Johnny wanting coffee from a different network.

πŸ’‘IP Address

An IP address is a numerical label assigned to devices connected to a computer network that uses the Internet Protocol for communication. The script discusses how IP addresses are used to identify and communicate with devices across networks, with different ranges of IP addresses representing different networks.

πŸ’‘Switch

A switch is a networking device that connects devices together on a computer network by using packet switching to receive, process, and forward data to the destination device. The video script explains how a switch operates within a local network, allowing devices like Johnny's Raspberry Pi to communicate with each other.

πŸ’‘ARP (Address Resolution Protocol)

ARP is a protocol used for mapping an IP address to a physical (MAC) address on a local network. The script describes the ARP process, where Johnny's device sends out an ARP request to discover the MAC address associated with an IP address, which is necessary for communication at the data link layer.

πŸ’‘Layer 2 and Layer 3

Layer 2 and Layer 3 refer to the data link layer and the network layer of the OSI model, respectively. Layer 2 is about MAC addresses and physical connectivity, while Layer 3 is about IP addresses and routing. The script uses these terms to differentiate between the operations of switches (Layer 2) and routers (Layer 3).

πŸ’‘Gateway

In networking, a gateway is a node on a network that acts as an entrance to another network. The script mentions the gateway as the IP address of the router that devices use to connect to networks outside their local network, illustrating how Johnny's device uses the gateway to reach the coffee server on a different network.

πŸ’‘DNS (Domain Name System)

DNS is the system that translates human-friendly domain names (like networkchuck.coffee) into IP addresses that computers use to identify each other on the network. The script explains the role of DNS in resolving domain names to IP addresses, which is necessary for Johnny to access the coffee website.

πŸ’‘Packet Tracer

Packet Tracer is a network simulation tool that allows users to create virtual networks and perform experiments. The script uses Packet Tracer to demonstrate how data flows through a network, including the process of ARP, routing, and DNS lookup in the context of Johnny trying to access a coffee server.

πŸ’‘HTTP GET Request

An HTTP GET request is a message sent from a client to a server to request a resource from the server. In the script, Johnny uses an HTTP GET request to ask for the webpage from networkchuck.coffee, illustrating the process of accessing a website over the internet.

Highlights

Introduction to the second episode of a free CCNA course sponsored by Boson Software, offering CCNA and CCNP labs and practice exams.

Explanation of the function of routers in connecting to the internet and other networks.

The necessity of routers for accessing resources on different networks, illustrated with the 'Johnny wants coffee' scenario.

Demonstration of how a switch operates within the same network using ARP to resolve MAC addresses.

The difference between a network switch and a router, and why routers are essential for inter-network communication.

Visual representation of connecting routers to networks using a virtual Cisco 2911 router.

Discussion on IP addressing and how it differentiates networks, crucial for router operation.

Experiment to show the limitations of switches without a router when trying to reach a different network.

Illustration of the process of pinging a device on a different network and the role of the gateway in this process.

Explanation of how routers use ARP to learn the MAC addresses of other devices for routing.

The concept of DNS and its role in resolving domain names to IP addresses for web browsing.

Demonstration of a web browser accessing a website and the underlying DNS query process.

Overview of how routers are configured with routing tables to direct traffic to different networks.

Introduction to more complex routing concepts and a preview of routing protocols used on the internet.

Invitation to join a community for further learning and assistance with networking concepts.

Conclusion of the episode with a call to action to try Network Chuck's coffee and participate in the giveaway.

Acknowledgment of Boson Software's support for the free CCNA course and promotion of their products.

Transcripts

play00:00

this is episode 2 of my free

play00:03

ccna course and a huge shout out to

play00:06

boson software the official sponsor of

play00:08

the ccna course

play00:09

they are the reason this can be made

play00:10

available for free so i highly encourage

play00:12

you to go check them out

play00:14

they have the absolute best ccna ccnp

play00:18

labs and practice exams

play00:22

this is a router but what is it routers

play00:25

connect us to the internet they also

play00:27

connect this to other networks

play00:28

in this video we're going to see why we

play00:29

need them and what they do in our

play00:31

networks

play00:32

and why i have so many of them holy junk

play00:35

sauce

play00:36

and of course we're going to be lobbying

play00:38

we're going to watch how a frame and

play00:39

then a packet will go across a network

play00:41

access a web server and then give us

play00:43

information back this is how the

play00:44

internet works

play00:45

you're going to learn that today let's

play00:47

get started

play00:48

[Music]

play00:52

oh by the way i'm giving away some bozon

play00:54

netsim today on this video

play00:56

don't know what netsim is what's the

play00:57

best ccna and ccnp

play00:59

labbing software in the business so if

play01:01

you're going for your ccna or ccnp

play01:03

enterprise or anything that you're doing

play01:04

cisco it's what you want it's what you

play01:05

need i'm giving away five copies of any

play01:07

of those products

play01:08

link below to enter the contest hurry up

play01:10

it's going away soon

play01:11

johnny wants some coffee and we're gonna

play01:13

help him get it check this out in our

play01:14

last video we talked about this guy

play01:16

right here

play01:16

a switch he's got multiple ports you

play01:18

connect your computers to him

play01:19

and they can talk and that's exactly

play01:21

what's happening here johnny mark

play01:23

denny and lisa are all on the same

play01:25

network and the switch allows them to

play01:26

talk to each other

play01:27

and in our last video we explored how

play01:29

the switch actually helps them talk

play01:32

what goes on inside this thing and it's

play01:33

it's pretty cool but you see now johnny

play01:35

this is

play01:35

this is johnny in real life he's a he's

play01:37

a raspberry pi johnny doesn't want to

play01:38

just talk to lisa mark and denny

play01:40

johnny wants coffee the coffee is

play01:42

actually way over here

play01:43

on a completely different network and

play01:45

johnny's over here not good right how

play01:47

does johnny get coffee and when i say

play01:48

johnny wants coffee of course he wants

play01:50

to go out to networkchuck.coffee and

play01:52

order some coffee but this server where

play01:53

this website lives

play01:55

networkchuck.coffee is on a different

play01:56

network here the switch can't help him

play01:58

he needs help from somebody else

play01:59

he needs a router this guy right here

play02:03

oh this guy this is a cisco 2911 router

play02:07

one of my favorites oh it's beautiful

play02:09

now routers come in all shapes and sizes

play02:11

this is just one type of cisco router

play02:13

this is a ubiquiti router looks very

play02:14

different and then typically your home

play02:15

routers look nothing like what i just

play02:17

showed you a router is the perfect

play02:18

solution for this because a router's job

play02:20

is to connect

play02:21

networks let's put one on there this is

play02:23

actually a virtual version of a 2911

play02:25

router look

play02:27

just like the one i showed you how neat

play02:28

so we'll put the router in between

play02:31

and notice on a cisco router there's no

play02:33

ports on the front they're all in the

play02:34

back so let me turn that slicker around

play02:37

now plug johnny's switch in to the

play02:40

router

play02:41

and then i'll plug the copy network into

play02:42

the router as well

play02:45

let's do that in virtual world bam bam

play02:48

and once more

play02:51

now before we keep going i want to ask

play02:53

you a question do we actually need this

play02:55

router

play02:56

i mean why can't we just do this let's

play02:58

take away our connections

play02:59

move this router out of the way and then

play03:01

let's just connect our switches directly

play03:03

to each other

play03:06

that should work right no no well here's

play03:09

why

play03:09

i mean we could connect these two

play03:10

switches and make them one giant switch

play03:12

and that's essentially what would happen

play03:14

but the reason these guys over here and

play03:15

then my coffee server over here on

play03:17

different networks

play03:18

isn't because they're connected to two

play03:19

different switches that's not it it's

play03:21

because of these guys right here

play03:23

their ip addresses we will go more in

play03:25

depth on this later because

play03:26

there's a lot more to it but just know

play03:28

that when we talk about a network

play03:29

we're normally referring to ip addresses

play03:31

and a group of ip addresses

play03:33

so notice i have two groups of ip

play03:35

addresses here

play03:36

10.1.1.0 through 10.1.1.255.

play03:40

with my configuration as long as you

play03:41

have an ip address in that range

play03:43

you're on the same network now this

play03:45

right here 23.27.38.0 through 232738255

play03:50

that's a completely separate network but

play03:51

you know what don't take my word for it

play03:52

let's actually try this let's see if

play03:54

it'll work

play03:54

let's go back to packet tracer now as a

play03:56

quick 30 second refresher on how a

play03:57

switch works we'll have johnny try to

play03:59

ping mark over here

play04:00

and then we'll have him try to ping my

play04:02

copy server over here and see what

play04:03

happens so i'll click on johnny wake him

play04:05

up come on johnny let me get this stuff

play04:06

out of the way we'll go to his desktop

play04:08

we'll go to his command prompt

play04:09

and let's bring up a simulation real

play04:11

quick so we'll click on the simulation

play04:12

button at the bottom right

play04:14

so we can watch this stuff happen in

play04:15

bullet time and i'm going to show you

play04:17

something that i did not show you on the

play04:18

last video

play04:19

and that's how johnny will learn mark's

play04:21

mac address now why is it so important

play04:22

for johnny to learn

play04:24

mark's mac address well if you recall

play04:25

from our last video the switch

play04:27

the only language he speaks is layer two

play04:30

that's all he knows

play04:31

mac addresses this layer two address

play04:33

right here now when johnny pings mark

play04:35

he's gonna be pinging his ip address so

play04:37

his message when he gets it ready we'll

play04:38

be pinging

play04:40

10.1.1.2 if johnny were writing a letter

play04:43

that's what he would put as the address

play04:44

but if that's all johnny had when he

play04:46

sent this message to the switch the

play04:47

switch would be like

play04:48

why is this envelope blank i can't even

play04:50

see ip addresses who is this going to

play04:52

that's what would happen so johnny must

play04:54

know the mac address of mark

play04:56

in order for the switch to know how to

play04:58

get it to anywhere but how

play05:00

this is what happens so from johnny i'm

play05:02

going to ping mark's ip address 10.1.1.2

play05:06

and boom let's watch what happens all

play05:08

right johnny's got some envelopes he's

play05:09

ready to send them out

play05:10

these are frames right now notice we

play05:12

have a new message we're dealing with

play05:13

it's called arp or addressed resolution

play05:14

protocol essentially it's a way that

play05:16

johnny can find out

play05:17

what mac address is tied to 10.1.1.2

play05:21

because he has to know that to be able

play05:22

to send it to mark let's open that up

play05:23

and see what's inside let's click on

play05:25

that

play05:25

and again we're dealing with layer 2 mac

play05:27

addresses but also notice down here we

play05:29

have some information about this arp

play05:30

packet like for example the source ip is

play05:33

johnny's source ip 10.1.1.3 and then the

play05:36

destination ip right here

play05:38

10.1.1.2 that's the missing mac address

play05:40

he's trying to find out mark's mac

play05:41

address and then of course because this

play05:43

is a layer 2 frame we're talking about

play05:44

mac addresses so the source mac address

play05:46

that the switch will use is johnny's mac

play05:48

address but then look at the destination

play05:50

what the junk is that ffffffff this is

play05:53

what's called a broadcast address it's

play05:55

the layer 2 switch equivalent of someone

play05:57

going

play05:57

who belongs to 10.1.1.2

play06:01

when he sends it to that mac address

play06:02

it's going to go out to everybody

play06:04

watch what happens we'll click next it

play06:07

goes to the switch let's open up that

play06:08

packet and take a look

play06:09

or frame i'm sorry see it happens now

play06:11

look at this this is so cool so

play06:12

over here the switch receives it and

play06:14

then it's about to send it out and

play06:15

notice

play06:16

it's going to go out all these ports on

play06:18

layer one which remember layer one's the

play06:19

physical it's these

play06:21

ah i just unplug something out oh that

play06:25

sound it's all the physical stuff so

play06:26

let's click next

play06:27

and boom art message is going everywhere

play06:30

and what will happen is lisa will go oh

play06:32

i'm not 10.1.1.2 and neither

play06:34

am i says denny but mark

play06:37

yeah mark is 10.1.1.2 so he says hey

play06:41

that's me i'm your guy i'm over here

play06:43

johnny so we'll step forward in time

play06:45

mark is the only one who responds saying

play06:47

yes that is me so he'll send and then

play06:48

the switch sends that to johnny so

play06:50

johnny now knows mark's mac address so

play06:52

we can send him a ping if i open that

play06:54

frame up that's sent to the switch we

play06:55

see the source is johnny's mac address

play06:57

and the destination is

play06:58

mark's mac address and if we click

play07:00

continue it'll go to mark

play07:02

mark will respond bam johnny gets it if

play07:04

we check our terminal real quick

play07:06

our command prompt it's happening if you

play07:08

click real time it will just

play07:10

continue so that's what happens when

play07:13

someone's on the same network johnny

play07:14

knows

play07:15

that mark is on the same ip network but

play07:17

what happens when johnny tries to get to

play07:19

the network

play07:19

coffee company let's see let's have him

play07:22

ping it so we'll open up johnny once

play07:24

more here

play07:25

go to his command prompt and we'll ping

play07:27

the ip address of my copy server so ping

play07:33

23.227.38.65

play07:34

let's go to our simulation so we can

play07:36

watch this in real time

play07:37

and let's hit enter boom okay so far so

play07:40

good we have an arp frame that johnny's

play07:42

getting ready to find out where

play07:43

my coffee server lives maybe his mac

play07:44

address let's open it up and see

play07:46

click on that message and huh

play07:49

do you notice anything weird here you

play07:52

know what pause the video right now and

play07:53

see if you notice anything that might be

play07:54

strange

play07:55

unpause okay here we go so just like

play07:56

before johnny's sending a frame to a

play07:58

broadcast address to say hey

play08:00

who's got this ip address but he's not

play08:03

asking about the ip address of my coffee

play08:04

server

play08:05

no no look here this is a source ip this

play08:07

is his ip address

play08:09

but he's trying to discover the ip

play08:10

address or the mac address rather of

play08:13

10.1.1.1

play08:14

why because when he tried to find out

play08:16

mark's mac address

play08:18

this right here was 10.1.1.2

play08:22

that was the destination why is this

play08:24

different because johnny knows

play08:26

johnny knows the coffee server is not on

play08:28

his network

play08:29

so he's not even gonna try to connect to

play08:31

that coffee server

play08:32

on layer two he's not gonna try to

play08:34

discover his mac address he gives up

play08:35

immediately watch what happens let's

play08:37

step forward in time so johnny sends

play08:38

this arp

play08:39

message saying anyone out there are you

play08:42

10.1.1.1 and the switch will send this

play08:44

out

play08:45

and as we step forward in time stepping

play08:47

forward stepping forward stepping

play08:48

forward

play08:49

no one responds johnny keeps sending out

play08:51

arp request does anybody have 10.1.1.1

play08:53

does anybody have it and no one responds

play08:55

who is 10.1.1.1 and why is johnny trying

play08:58

to talk to him

play08:59

let's find out it comes down to how we

play09:01

configure johnny let's open up johnny

play09:02

real quick

play09:03

go to his config and the answer is right

play09:06

here there it is

play09:08

10.1.1.1 is his gateway gateway is

play09:11

another word

play09:12

in the networking world we use for

play09:14

router as i said before johnny knows

play09:16

that

play09:16

people in his network are 10.1.1.0

play09:19

through 10.1.1

play09:23

johnny knows that if anyone has an ip

play09:24

address in that range they're in his

play09:26

network

play09:27

they're in his neighborhood he can just

play09:28

walk over and talk to him find out where

play09:29

they are like yeah i know bill he just

play09:31

lives two doors down i can walk over

play09:32

there and talk to him

play09:33

but if johnny tries to reach an ip

play09:35

address outside that range

play09:37

he knows it's not in his network and

play09:39

he's gonna need some help he needs help

play09:41

connecting to a different network

play09:42

and that's where a router comes in so

play09:44

let's throw the router back in there and

play09:45

have some fun this is gonna be so cool

play09:47

watch this now before we move on it's

play09:48

important for you to know that i did

play09:49

pre-configure this router not a crazy

play09:51

amount of configuration but i did add

play09:53

some configuration to make this work

play09:54

for the most part switches work out of

play09:56

the box no problem a router's a bit more

play09:58

complicated because it has to know how

play09:59

to

play10:00

route between networks he's a router he

play10:02

has the map of how to get to things i'll

play10:04

show you what i mean check this out

play10:05

we're going to have johnny here once

play10:06

again try to peeing

play10:07

networkchuck.coffee let's open up his

play10:10

command prompt so i'll go to his

play10:11

command prompt we'll go back to our

play10:13

simulation we're in simulation mode

play10:14

bullet time mode

play10:16

and let's watch some crazy router magic

play10:18

happen so we're gonna ping

play10:19

the coffee server and go now same story

play10:22

as before johnny knows that this is not

play10:23

on his network he knows that bob lives

play10:25

in another state and he can't just walk

play10:26

over there he's like i gotta use my

play10:28

gateway i gotta find my router and his

play10:30

router will be connected to his network

play10:31

watch what happens a step forward in

play10:33

time the art message is sent out to the

play10:34

broadcast

play10:35

and keep in mind the same reason that

play10:36

johnny's sending an art packet for the

play10:38

router

play10:38

is the same reason he had to send one

play10:40

for mark he doesn't know the mac address

play10:42

for 10.1.1.1

play10:44

and he must know the mac address so the

play10:45

switch will know how to get his stuff to

play10:47

the router the switch sends it out to

play10:48

everyone and lisa

play10:50

denney mark this server right here which

play10:52

i can talk about here in a moment

play10:53

they're all like yeah that's not me but

play10:54

then the router's like

play10:55

that's me i'm 10.1.1.1 and he sends a

play10:58

reply back saying yep that

play11:00

is me the switch tells johnny hey this

play11:02

guy lives here that's his address

play11:03

walk on over so johnny does if we open

play11:06

up that frame that just arrived at the

play11:07

switch

play11:08

we can see the source is indeed johnny

play11:10

and the destination is

play11:12

the router and then we'll step forward

play11:13

in time it arrives at the router and

play11:15

then we have something blinking and

play11:16

flashing let me let me zoom in on that

play11:18

this is so cool what's happening right

play11:20

here let's open up the freaking out guy

play11:21

right now

play11:22

isn't that working fun oh my gosh okay

play11:24

here's what's happening now what are the

play11:25

router receive right here well if you

play11:26

just look at layer one and layer two we

play11:28

know that he received this frame on his

play11:30

gigabit zero zero interface as this

play11:32

little message says right here but

play11:33

because we have layer three involved

play11:35

we know that to be called a packet

play11:37

remember that's what routers do man they

play11:38

are all about layer three they are layer

play11:40

three devices they can handle the ip

play11:42

addresses

play11:43

that's the language they speak so this

play11:44

is what the router received notice it's

play11:46

from

play11:46

the mac address that belongs to johnny

play11:48

right here

play11:49

and it's to his interface but then look

play11:51

what he's sending out and notice what's

play11:53

missing

play11:54

layer two now according to his layer

play11:56

three map he knows that two two

play11:58

three.227.38.65

play12:00

is that way but that's layer three he

play12:02

doesn't know where he lives at layer two

play12:04

and because he's about to send this

play12:05

frame to the switch he doesn't know how

play12:08

to tell the switch how to get to him and

play12:10

that's important and that's the reason

play12:11

we have this freak out message like i i

play12:12

don't i don't know

play12:13

what his layer two address is so how

play12:15

does the router find out

play12:16

well how did johnny find out an art

play12:19

message he says

play12:20

hey where is 23 blah blah and he

play12:23

broadcast that out

play12:25

watch right next to the freakout message

play12:26

we have the art message right here

play12:29

from the router to the broadcast and

play12:31

we're looking for anyone that has this

play12:33

ip address

play12:34

anybody got this anybody out there and

play12:36

let's step forward in time and watch

play12:37

this happen

play12:38

so he sends the art message to the

play12:39

switch the switch broadcast it out and

play12:40

because the server is the only one that

play12:42

is on the network he receives it the

play12:43

server's like

play12:44

hey that's my name that's me i'm over

play12:47

here so he sends the response to the

play12:48

switch

play12:49

the switch is like yeah i know where

play12:50

this guy is hey router i found him i

play12:53

know that everyone knows where everyone

play12:54

is johnny's ready to send his message so

play12:56

if you open up johnny's message over

play12:57

here

play12:57

i want you to pick up on this in the

play12:58

layer 3 header johnny has his ip address

play13:01

as the source

play13:02

the coffee server as the destination but

play13:05

on the layer 2 level

play13:07

we have his mac address as the source

play13:09

and then the destination is the mac

play13:11

address of the router

play13:12

so layer 3 right here is directions for

play13:14

the router saying hey router this is

play13:15

where i want my message to go

play13:17

and then layer 2 right here is

play13:18

directions for the switch saying hey

play13:19

switch this is where i want my frame to

play13:21

go it's going to go to the router and

play13:22

the router will take care of the rest

play13:23

let's watch it happen step forward in

play13:25

time the switch receives it if we open

play13:27

that message up we can see it's only

play13:28

layer 2 because the switch can only see

play13:30

layer 2.

play13:31

it's going straight to the router so we

play13:32

send it to the router this is so cool

play13:35

isn't it

play13:35

it's amazing let's open up that router's

play13:37

message and look at that

play13:39

this is the message he received so layer

play13:41

two it's from mark's mac address

play13:42

to his mac address layer three it's from

play13:44

mark's ip address

play13:46

to networkchuck.coffee's ip address and

play13:48

now for the outbound message because he

play13:50

learned where the coffee server's mac

play13:51

address is

play13:52

he can send it out so here's the layer

play13:53

three and then for the switch he's got

play13:55

the directions right here

play13:56

from his mac address to the coffee

play13:57

server's mac address which

play13:59

ended in one ac7 if you look at that yet

play14:01

it matches up right there let's watch it

play14:02

happen

play14:03

boom the switch sends it out and the

play14:06

coffee server got it and then the coffee

play14:08

server

play14:09

replies and sends it back the router

play14:11

sends it through the switch gets it

play14:13

and then johnny gets it isn't that

play14:14

amazing and this happens millions of

play14:16

times every day across networks across

play14:18

the world

play14:19

isn't that just crazy now i want to show

play14:20

you one more thing it's kind of a sneak

play14:22

preview to what we're going to be

play14:22

talking about later but obviously

play14:24

johnny he wants to order some coffee

play14:26

from networkchuck.coffee but you can't

play14:28

order coffee

play14:28

by just pinging the web server you have

play14:30

to visit the website and we can do that

play14:32

let's have johnny do that right now so

play14:34

i'm going to reset everything and we'll

play14:35

get this thing ready this is going to be

play14:37

amazing

play14:37

don't let this overwhelm you we will go

play14:39

over the details of how this works

play14:40

later on but i just want to i just want

play14:42

to show you because it's so neat

play14:44

i i can't help myself so we're still in

play14:45

simulation mode let's open up johnny

play14:47

real quick

play14:47

and instead of going to the command

play14:48

prompt we can go to his web browser so

play14:50

i'll click on web browser right there

play14:52

and the website is network chuck

play14:55

dot coffee now the main difference here

play14:57

is that we're not using an ip address

play14:58

at least to start with it's this

play15:00

friendly name that we know we normally

play15:01

use like facebook.com youtube.com but

play15:03

how does that work

play15:04

we know the switch loves mac addresses

play15:06

and that's what he talks that's the

play15:07

language he talks layer two

play15:08

the router loves layer three ip

play15:10

addresses who deals with names like this

play15:12

well the short answer is no one johnny

play15:14

must know the ip address

play15:16

or rather johnny's computer must know

play15:17

the ip address so when he types this

play15:20

networkcheck.coffee url in there's got

play15:22

to be some way that his computer can

play15:24

find out what the real ip address is

play15:25

which we just pinged

play15:26

moments earlier that's called dns and

play15:28

that's what our dns server here is for

play15:30

let's watch it happen

play15:31

i'll click go and boom oh whoops i

play15:34

forgot to configure the dns server if i

play15:35

go to config

play15:36

under his uh default gateway we have dns

play15:39

server which stands for domain name

play15:40

service

play15:41

and i'll put in the ip address of our

play15:42

dns server up there 10.1.1.50

play15:45

this guy right here so let's go back to

play15:47

our our web browser and try it again

play15:49

go and here we go all over again we have

play15:51

another art packet because johnny

play15:53

needs to get the information on

play15:55

networkchuck.coffee he needs to learn

play15:56

the ip address and he knows that this

play15:58

server the dns server

play15:59

knows the information that's 10.1.1.50

play16:02

and that's his first job so he has to go

play16:04

through the process again of

play16:05

learning the mac address of the dns

play16:07

server let's walk through that now

play16:08

stepping forward in time sends an art

play16:11

message the switch will broadcast that

play16:12

to everyone

play16:13

the dns server responds because that's

play16:15

his ip address and he's like here's my

play16:16

mac address that's me

play16:17

the switch sends that to johnny and

play16:19

johnny's like yes

play16:20

so now johnny can send his dns query to

play16:22

find out where networkchuck.coffee is

play16:24

what's the ip address

play16:26

so he'll get that message ready so we

play16:27

sends it out it goes to the dns server

play16:29

we'll take a quick little peek inside

play16:31

that real quick and we'll open that up

play16:32

and a lot of stuff going on there

play16:34

that's the other layers we'll talk about

play16:36

don't worry about that but essentially

play16:38

the server's like yeah i know where that

play16:39

is here you go johnny here's the

play16:40

information so he sends it to the switch

play16:42

the switch sends it to johnny johnny

play16:43

learns where this is

play16:45

let's open it up real quick i'll show

play16:46

you let's open that up and we'll go to

play16:48

the inbound

play16:48

pdu details again don't worry about that

play16:51

just yet

play16:52

we'll scroll down all the way to the

play16:53

bottom we can see that the information

play16:54

the dns

play16:55

answer is right here the name

play16:57

networkcheck.coffee and then here's the

play16:58

response

play16:59

the ip address of our server so we'll

play17:01

step forward in time

play17:02

johnny will send his http get request

play17:05

we'll cover more on that later

play17:06

to the router to the switch now what you

play17:08

might be noticing is that we didn't go

play17:09

through the whole process of learning

play17:11

the mac address of the router and the

play17:13

router learned the mac address of the

play17:15

the coffee server no no it remembered it

play17:18

puts that in its cache

play17:19

and it stores it so we don't have to do

play17:20

it all over again now i will eventually

play17:22

forget that information so it can

play17:23

relearn it

play17:24

but again more on that later so let's

play17:26

step forward in time it goes to the

play17:27

server

play17:28

the server gets it responds back and you

play17:30

know what i'm going to switch to real

play17:31

time

play17:31

let's open up our web page and there it

play17:34

is you need to drink coffee right now

play17:36

and there's our website as you can tell

play17:38

it's been expertly designed and by the

play17:39

way that's real if you want to buy my

play17:40

coffee network

play17:41

coffee it's delicious that's what i'm

play17:43

drinking right now

play17:46

it's real now i've got this lab and a

play17:49

link below if you didn't follow along

play17:50

with me throughout this go and open it

play17:51

now and try it for yourself

play17:52

it's really cool to walk through all

play17:54

this and just see it happen like this is

play17:56

how the internet works

play17:57

this is what what happens when you get

play17:59

on your computer and you go to

play18:00

youtube.com

play18:01

this process happens this right here is

play18:04

your home router

play18:05

you're johnny now the real internet

play18:08

isn't this simple

play18:09

right the the real internet is a is

play18:11

going to be like this router connected

play18:12

to

play18:13

another router connected to another

play18:14

router connected to another router

play18:16

and then eventually getting to my coffee

play18:19

website as we covered in the first video

play18:20

but the process is still the same the

play18:22

router is connecting

play18:24

these two separate networks i remember

play18:25

when i say network i'm referring to the

play18:27

ip addresses layer 3.

play18:29

these guys over here have a different

play18:30

group of ip addresses than these guys

play18:32

over here your home network will be a

play18:33

different group of ip addresses from

play18:35

the rest of the world and that's why you

play18:37

need a router to connect to the internet

play18:39

and inside of this router's brain if you

play18:41

pop him open he has a map

play18:42

to other networks and to the internet

play18:44

like you know let's take a look

play18:46

let's have you enter another cisco cli

play18:48

command right now let's pop it open

play18:50

let's do this

play18:50

i'm going to click on the router we'll

play18:52

jump on over to his cli tab

play18:54

we'll hit enter and then type in enable

play18:56

to see his map

play18:57

his map of ip addresses and where to

play18:59

reach different networks we'll do

play19:00

show ip route

play19:04

this is a command that network engineers

play19:05

use all the time you're already doing

play19:07

networking right now

play19:08

let's hit enter and boom i'm going to

play19:10

expand this out a little bit here

play19:12

and this might look a little

play19:13

overwhelming but here's all it's saying

play19:15

the group of ip addresses that johnny

play19:16

belongs to

play19:17

is right here 10.1.1.0 24.

play19:20

that's just a shorthand way referring to

play19:22

10.1.1.0

play19:24

through 255. and in the router's map

play19:27

he knows that it's actually directly

play19:29

connected to his interface gigabit

play19:31

ethernet one

play19:31

or i'm sorry zero zero and the same goes

play19:33

for my coffee network over here there's

play19:35

the network and again it's a shorthand

play19:36

way of saying 23.227.38.03255. and

play19:42

that's actually directly connected to

play19:44

gigabit 01. so when johnny said hey i

play19:46

want some coffee i want to order it

play19:48

right now

play19:48

and he sent his packet to the router

play19:50

saying here it is i want to go to this

play19:52

guy the router's like oh well let me

play19:53

check my map

play19:55

oh there it is there's the network it's

play19:57

actually connected to my gigabit zero

play19:59

one interface i'm gonna send it out that

play20:00

interface

play20:01

that's how the router knew now this is

play20:02

very simplistic routing routing gets

play20:05

crazy like if you were to look at a

play20:07

router on the internet

play20:08

you know let me show you real quick this

play20:10

is actually one of the routers on the

play20:12

internet check this out

play20:13

i'll enter the command show bgp which is

play20:16

a routing protocol

play20:18

we'll learn more about those later ipv4

play20:20

unicast

play20:22

and let's see what we got and all of

play20:23

these are routes to different

play20:25

networks on the internet like i can keep

play20:28

going i mean look at this this is insane

play20:30

this is this router's map this router is

play20:32

probably huge very expensive

play20:34

router but this is an example of a how

play20:35

big the internet is and b

play20:37

what a router can do why it's so

play20:39

powerful all right we'll never reach the

play20:40

end of this i'm just going to stop

play20:41

and that was episode two now i changed

play20:43

it from days to episodes

play20:45

makes more sense for me if you have any

play20:46

comments or questions let me know below

play20:48

i would love to hear your feedback on

play20:49

this

play20:49

if you need help don't be shy ask some

play20:51

questions below either myself or some

play20:53

others will join in and help you out

play20:54

or hey join my discord we've got so many

play20:56

professionals in there who are willing

play20:57

to help out

play20:58

with really any questions you have and

play21:00

if you want to help me do more of this

play21:01

create free training along with david

play21:03

bomble

play21:04

check out the this is it membership link

play21:06

below by joining you help us create more

play21:08

free content there's also some amazing

play21:10

content on the site

play21:11

for myself david and and others coming

play21:13

very soon not to mention if you're a

play21:15

this is it army member you're gonna have

play21:16

your names at the end of this video

play21:18

so look at it and if you haven't already

play21:20

try some networks coffee

play21:22

the official copy of the ccna i'm gonna

play21:24

claim it that's what's happening right

play21:26

now

play21:26

and of course a huge thank you to boson

play21:28

software for sponsoring this free

play21:30

ccna course they're the reason this can

play21:31

be made free so go check them out and

play21:33

enter my contest below

play21:34

alright that's all i've got episode two

play21:36

done i'll see you in episode three

play21:45

[Music]

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
CCNA CourseNetworking BasicsBoson SponsorshipRouter FunctionsInternet ProtocolLayer 2 SwitchingLayer 3 RoutingNetwork SimulationEducational ContentTechnical Tutorial