00:02 welcome back to the series foundations
00:06 networks we are at session
00:08 7 and up to this point you would have
00:11 done a fair bit of configuration in
00:14 terms of setting up a
00:16 network in this particular lesson we
00:20 want to sort of bring everything
00:22 together by doing a demonstration so
00:24 that you can see how things work
00:27 especially when a router is
00:32 involved on the screen I have a few
00:34 commands that we are going to make use
00:36 of as we progress so right here in that
00:40 little box are the commands that we're
00:42 are going to be making use
00:44 of so here's what we are going to do
00:47 we're going to set up a
00:50 network that enables us to send packets
00:53 or data from one network to another
00:57 Network so let's grab our compos
00:59 components first of all let us grab our
01:02 router and we drop our router on the
01:07 interface and then we're going to go for
01:12 switch we're using the
01:18 24-4 and we need two of
01:21 those and then we need a couple of
01:27 pieces so we need three of those
01:33 and that is the basic architecture of
01:35 the network that we want to
01:38 configure in terms of the IP addresses
01:42 which are going to be used let me
01:43 indicate what the network address is
01:48 be so over on this side the left hand
01:50 side I'm going to use 1
01:56 192.168.10.0 and on the other side I'm
02:15 A10 and all the devices on the right
02:18 hand side need to have an IP address
02:22 that start with 1 1921
02:25 16820 so please bear that in
02:28 mind so where do we begin we have our
02:32 devices where we want to begin by
02:35 connecting the devices and remember we
02:37 are using ethernet standard which means
02:40 that we are using our copper
02:43 cables we want to know connect our PCS
02:47 to the switch and remember in order to
02:50 do that we need to make use of straight
02:53 through cables simply because these
02:56 devices belong to different
03:04 cable connect it to the ethernet port of
03:08 one and let's also connect that
03:13 to Port one of the switch we're going to
03:17 do something similar for
03:20 PC2 so we're dropping that
03:26 two and I'm just going to label these
03:30 so moving forward you know exactly which
03:34 about so this PC is going to be PC
03:40 one I'm going to call the one beside the
03:44 PC2 and for convenience I'm going to
03:46 call the one over on the other side over
03:49 on the other network
03:55 Simplicity I have placed pc1 on Port one
03:59 of the switch switch I have placed PC2
04:02 on Port two of the switch and I'm going
04:06 PC3 on Port three of the switch on the
04:09 other side so we're grabbing a straight
04:14 cable and we attaching it to Port three
04:18 see the three at the end so that's Port
04:25 good now what's our next step well the
04:29 next step is to connect the
04:34 router now remember the router and the
04:38 switch are also in different families so
04:40 once again we are going to make use of a
04:43 cable now I'm going to use port
04:56 the as the point of contact as the port
04:58 that I'm using and I'm going to attach
05:02 to the fast ethernet port zero so the
05:05 zero at the end of the
05:08 router and I'm going to do a similar
05:10 thing to the switch on the other side
05:16 24 and then I'm going to connect it to
05:25 router please note by the diagram we are
05:27 saying that there is some connectivity
05:30 issue because of the red
05:33 triangle and we will address that in a
05:36 moment but before we do I want us to
05:39 start putting some IP addresses on these
05:43 devices so let's start with
05:47 pc1 go to desktop we go to IP
05:53 configuration and what I'm going to do
05:55 is I'm going to use the number the PC as
05:57 the host number so it therefore means
06:00 that this PC pc1 is going to be
06:08 192.1681 because that's the network
06:12 ID and the device is going to be
06:18 one and we're using our appropriate
06:24 there we're going to do something
06:32 IP configuration again and this time
06:36 192.168 remember the network ID
06:41 is10 and the host ID for this one
06:44 because it's PC2 I'm going to call it
06:47 two and we should be good
06:51 there now if I go to the PC on the other
07:00 go to desktop and go to IP config now
07:03 the20 Network so therefore mean that the
07:07 IP address for this device is going to
07:33 PCS but remember in order for the data
07:37 to travel from one network to the next
07:40 then there has to be a Gateway a point
07:43 of entry and a point of exit into and
07:46 from the network and that is going to be
07:51 the by the router so we need to put some
07:55 IP addresses on the router that will
07:57 represent the different gateways for
08:00 Network now if you recall I had
08:04 attached this cable to Port
08:10 24 so for ease of reference I'm going to
08:16 24 as the host ID of the IP address for
08:21 each side of the router you're going to
08:24 see what I'm mean in a moment so let's
08:30 and let's go to config and I'm going to
08:36 zero so that's support
08:39 zero and the IP address that I'm going
08:42 to be using because I'm talking
08:45 about this side of the
08:48 network I'm talking about this side of
08:51 network so therefore means that all the
08:54 IP addresses that belong to this network
08:57 need to begin with 1 1921
09:00 16810 so the Gateway for this network
09:03 has to start with 1 1921
09:06 16810 so I'm going to type for the IP
09:14 do10 but because I know that we have
09:17 connected it to Port 24 on the switch
09:21 I'm going to just call
09:26 that4 and I'm going to do a similar
09:28 thing for the other side of the
09:31 router which is the 1921
09:38 Network so here we go 1921
09:42 16820 and because we connect it
09:45 to Port 24 then for
09:49 Simplicity I'm going to use that 24 now
09:52 you don't have to do this
09:54 obviously but it makes sense that you
09:58 organize the network work in a
10:00 structured manner so that whenever it's
10:02 time for you to be debugging any
10:05 problems it is easier because they kind
10:07 of have a framework to work
10:11 with so we have set up
10:14 our IP addresses on our router but note
10:17 when we look we still see that the lines
10:20 red and that's because we need to turn
10:23 on the port so if you look right at the
10:26 top here you see something that says
10:27 Port status I'm going to click on it and
10:30 by the way please note that we could
10:32 have done all of this by typing in
10:35 commands inside the router command line
10:40 interface so CLI means command line
10:43 interface we could have been typing
10:44 these commands but we are using the
10:46 graphical user interface for Simplicity
10:50 so I'm going to turn
10:52 on the port notice when I turn it on
10:56 there's some activity that begins on
10:59 Network and I'm going to do something
11:02 similar to fast ethernet
11:05 zero I'm going to turn it on as well and
11:08 just have a look at the activity that
11:10 you start to see on that part of the
11:12 network so I'm turning it
11:14 on and notice there's some activity that
11:17 is taking place on that part of the
11:24 network so from a connection standpoint
11:27 we we should be good know that the the
11:29 lines are becoming green which means
11:34 of getting the appropriate
11:37 connection we would have obtained that
11:40 and that means that we are complete in
11:44 one but remember layer one is not the
11:48 thing we also had to put on the IP
11:51 addresses which means that we would have
11:53 taken care of layer three as
11:57 well something is missing
12:00 though we have not yet configured the
12:03 gateways for the machines for the
12:06 devices in other words the PC do not
12:10 have any idea of what their Gateway is
12:14 so that's something that we also need to
12:15 take care of so let's go back to
12:19 pc1 and let's put in the
12:22 Gateway and because we use a nice scheme
12:26 we know that the default gateway is
12:28 going to be one 92.1
12:32 16810 and it's going to be the IP
12:35 address of the router and we had used
12:44 pc1 let's set up the Gateway for
12:50 PC2 so for PC2 it's going to be the same
13:00 and then let's go and set up
13:04 PC3 so for PC3 it's going to be
13:29 so let's get rid of
13:32 that and now we should be good in terms
13:35 of our connectivity both from
13:40 the the layer one perspective and also
13:46 perspective now if you recall layer 2
13:52 and these pces already have a Nick that
13:55 is installed so they already have a
14:01 address let me quickly go to the
14:07 router I'm going to go to the command
14:12 interface we're are currently
14:15 inside the enable mode but I'm just
14:18 again just to show that we are inside
14:22 the enable mode and we know that because
14:25 we have the the hash sign
14:30 so we can now execute the command show
14:41 route all right so let's go again
14:49 route all right I'll go back to that
14:55 let's move on to the switch
15:08 enable and this time we're going to say
15:16 table and we are seeing that we have
15:18 some information inside the MAC address
15:22 fact let's see what it is
15:25 saying it is saying that
15:29 we know that there is something that is
15:34 24 and whatever is connected to Port 24
15:38 has a MAC address looking like
15:42 this now it's good that we know that
15:44 something is connected to Port 24
15:46 because remember Port 24 is actually the
15:49 Gateway out of this
15:52 network so let's have a look at PC sorry
15:56 at the switch on the other side
16:03 enable and then let us show Mac
16:11 table and once again we are seeing on
16:15 that the switch knows that it is
16:19 Gateway which is an important
16:24 thing let's have a look at pc1 we're
16:28 going to the command
16:29 prompt and we want to see what is in the
16:32 ARP cache so that's ARP d
16:36 a and it says that no entries are
16:41 found and it's important that we take
16:43 note of this because we are going to be
16:46 executing some commands and then
16:48 relooking at the ARP
16:50 cach the important thing here is that
16:54 pieces currently have nothing inside of
16:56 the ARP cach in other words
17:00 what does ARP do ARP is what links an IP
17:05 address to a m address and so right now
17:09 PC 3 oh I'm at PC3 P3 PC3 say that it
17:14 has no idea of any of
17:17 the Mac addresses which are presently
17:21 located on the on the
17:25 network let me go to pc1 that's where I
17:35 be all right so I have named them pc1
17:42 internally it's it got um different name
17:46 so let let me not focus on what is up
17:49 here let me focus on what I call them in
17:53 labels so pc1 PC 2 PC3 so I am on pc1
18:00 I've looked at the ARP cach I found that
18:03 there's no entry there but I'm going to
18:05 now try and ping PC3 now remember PC3 is
18:10 on a totally different
18:12 network it's on the20 network whereas
18:18 network so I have to do a
18:22 ping and the Ping is going to be 1 1921
18:27 16820 and remember we said that for the
18:30 host ID we simply use the number
18:32 associated with the PC so we know that
18:36 three and we issued the
18:41 command the packet is being
18:43 sent we realized that the first pocket
18:46 did not reach it timed out but the other
18:51 successfully and this is the T typical
18:53 process whenever we are communicating
18:56 over the network for the first time
19:01 ping then this time you should realize
19:04 that we are getting all four Pockets
19:09 received let's have a look back at the
19:14 ARP so we are looking back at the AR
19:21 see that there is some entry inside of
19:26 words there's a MAC address
19:32 us that the MAC address that we
19:36 interested in is the MAC address that is
19:38 associated with the IP address 1
19:44 24 remember that IP address is the IP
19:50 router for the doct
19:54 network and this is
19:56 important because what it this saying
19:58 here is that pc1 now
20:02 knows that whenever it needs to send
20:05 data over the network to another
20:09 Network then it must send that pocket to
20:13 192.168.1 24 which happens to be the
20:19 Network so that's an important thing
20:23 let's do another ping this time we are
20:25 going to Ping something that is inside
20:27 of the network so let me just make some
20:29 space and then we are going to ping 1
20:34 do10 ping in PC 2 which is on the same
20:37 network and the host ID is going to be
20:44 two so we are pinging we are receiving
20:48 responses and let us now have a
20:51 look back at the ARP
20:55 cach and now note for pc1 we now have
21:00 another entry it now tells us that the
21:05 address for PC2 which happens to have
21:08 the IP address of 1
21:13 192.168.1.2 we have found that Mac
21:17 address so what what do we know for
21:20 sure we know that ARP the address
21:25 protocol is the protocol that allows us
21:27 to map IP addresses back to physical
21:30 addresses or to put it another way it
21:34 maps IP addresses back to the Mac
21:37 addresses remember the Mac addresses are
21:42 change however the IP address that is
21:45 assigned to a device can change so there
21:48 has to be a way for the network to know
21:51 which IP address currently maps to what
21:54 address and the address resolution
22:06 PC2 go to the command line prompt and we
22:15 note that PC2 also has some information
22:21 in its cache in its AR cach and the
22:24 information that it has
22:26 there tells it the MAC address of pc1
22:32 pc1 IP address is 1
22:37 192.168.1.1 and because they had
22:40 communicated then it means that the AR
22:42 address of PC2 would also have been
22:47 updated let's have a look at
23:00 and when we have a look at this we are
23:05 PC3 had communicated with something that
23:08 is outside of its Network how can we say
23:10 that for sure because when we look in
23:12 the ARP address we realize that the IP
23:28 so so far things are going according to
23:31 plan let's now have a look at the
23:36 switch so we are back at the switch and
23:42 switch the switch for the 1921 16810
23:48 Network and let's show Mark address
23:58 and when we have a look at the MAC
24:01 address table we realize that we are
24:06 entries we are seeing
24:08 that on Port one there's a MAC address
24:12 that is associated with that on Port two
24:16 there's a MAC address Associated on
24:19 that and for Port 24 there's a MAC
24:22 address that is associated with
24:25 that so in other words the switch knows
24:28 the Mac addresses of each of the devices
24:31 which are attached to it and therefore
24:33 it knows where to send the data or on
24:38 which port to send the data when it is
24:41 destined for a particular
24:46 device if we do something similar with
24:49 the switch on the other side of the
24:56 network so we're going to show Mark
25:04 table then we are seeing
25:12 to or has this particular Mac
25:16 address so that's the information that
25:18 we have let us now send a packet from
25:23 PC3 over to probably PC2 let's do that
25:30 PC3 command prompt we're going to
25:37 192.168 do10 because we want to Target
25:41 PC2 PC2 is on the10 network and we say
25:50 enter and we are waiting for the network
25:53 to wake up so the first request timed
25:56 out the rest of them went
25:58 through if we have a look back at the
26:04 cach nothing seems to have changed which
26:08 makes sense because
26:12 PC3 is sending something over the
26:15 network it's not sending something on
26:18 network matter of fact there's only one
26:21 device that is on this particular switch
26:24 network so it therefore means that every
26:27 packet that is sending it has to be
26:28 sending it outside of the network and
26:31 therefore it needs to be making use of
26:37 Gateway now remember we have tried to
26:41 to PC2 so let's run to
26:49 prompt let's do the
26:52 ARP and now we have one more entry being
26:58 the first entry that we
27:00 had was there because PC2 was talking to
27:06 pc1 so therefore it needed to
27:09 know what it Mac address is associated
27:13 with PC one's IP address which happens
27:19 that now it has communicated with
27:21 something from another Network and
27:24 that's why we are now seeing this IP
27:26 address because this is the IP address
27:33 Network in terms of the Gateway so 1
27:36 1921 16810 24 is the Gateway for the 1
27:45 Network so we can say that
27:48 PC2 had communicated with some device
27:52 that is outside of its
27:59 so there we have it we have taken care
28:02 of these protocols demonstrated these
28:06 commands and that should
28:09 be um enough for you to get a more
28:15 fullsome understanding of what is
28:17 happening in terms of the network now
28:19 let me go back and try this show IP
28:21 route and try and decide for what is
28:29 show IP route all right so we're getting
28:37 now point that we want to make here
28:48 this those IP addresses tells you the
28:53 networks that are configured on the
28:55 router so remember the router is
28:57 connected to two networks one of them
29:03 192.168.10.0 Network and the other one
29:06 being the 1 192.168.20.10
29:28 so for the10 Network the IP address of
29:36 demonstrated and for the20
29:40 Network the IP address of the Gateway is
29:43 1 1921 16820 24 as was
29:48 demonstrated and I think that brings us
29:50 to the end of the session so take
29:53 care and we'll be in