WEBVTT

0:00:03.280000 --> 0:00:08.640000
 Hello and welcome to this video titled,
 Configuring DHCP Clients.

0:00:08.640000 --> 0:00:11.320000
 In this video, I'm going to do a
 couple of demonstrations for you.

0:00:11.320000 --> 0:00:15.540000
 I'm going to show you how to verify
 your DHCP settings and change them

0:00:15.540000 --> 0:00:20.380000
 if you need to on two of the most popular
 clients right now, Windows for

0:00:20.380000 --> 0:00:24.040000
 Windows 10 client as
 well as from Mac OS.

0:00:24.040000 --> 0:00:26.620000
 So let's go ahead and
 take a look at that.

0:00:26.620000 --> 0:00:28.540000
 So let's start with Windows.

0:00:28.540000 --> 0:00:33.060000
 So I have a virtual machine
 here running Windows 10.

0:00:33.060000 --> 0:00:37.980000
 So number one, how would you confirm
 that your Windows device is currently

0:00:37.980000 --> 0:00:43.600000
 set up for DHCP, which it should be by
 default, but how do you check that?

0:00:43.600000 --> 0:00:47.040000
 Well, with Windows, there's always more
 than one way to accomplish your

0:00:47.040000 --> 0:00:52.080000
 objective. So one way is you can click
 on your start and then you can

0:00:52.080000 --> 0:00:55.740000
 click on the little gear shift here,
 which is equivalent to your control

0:00:55.740000 --> 0:01:02.460000
 panel. And then from here, you can
 go into network and Internet.

0:01:02.460000 --> 0:01:06.880000
 And then you can click on the whatever
 adapter that you believe you're

0:01:06.880000 --> 0:01:09.200000
 currently using either
 Wi-Fi or Ethernet.

0:01:09.200000 --> 0:01:12.960000
 So in my particular case, it
 would be my Ethernet adapter.

0:01:12.960000 --> 0:01:22.280000
 And then in order to confirm that it's
 currently running DHCP, you can

0:01:22.280000 --> 0:01:26.200000
 actually click on the network itself,
 where it says network here.

0:01:26.200000 --> 0:01:29.860000
 And down below under properties,
 right here.

0:01:29.860000 --> 0:01:32.700000
 So we can see it's
 got an IP address.

0:01:32.700000 --> 0:01:36.880000
 And clearly, if you did not configure
 that IP address, it did that via

0:01:36.880000 --> 0:01:42.920000
 DHCP. Another way that you can verify
 that's using DHCP is here under

0:01:42.920000 --> 0:01:44.060000
 just the search bar.

0:01:44.060000 --> 0:01:45.800000
 You can just type network.

0:01:45.800000 --> 0:01:53.500000
 And then click on network status.

0:01:53.500000 --> 0:01:55.560000
 Here we go again.

0:01:55.560000 --> 0:02:04.000000
 And this time, if we scroll down a little
 bit, view your network properties.

0:02:04.000000 --> 0:02:08.300000
 And this gives us a lot more detailed
 information under view your network

0:02:08.300000 --> 0:02:12.780000
 properties. So we can
 see DHCP server.

0:02:12.780000 --> 0:02:17.760000
 So DHCP is enabled.

0:02:17.760000 --> 0:02:20.620000
 Yes, we did hear from
 a DHCP server.

0:02:20.620000 --> 0:02:24.940000
 So all of this is confirming that
 we are indeed running DHCP.

0:02:24.940000 --> 0:02:29.600000
 It even shows how long your DHCP information
 is good for, the IP address

0:02:29.600000 --> 0:02:33.460000
 that you've learned, as well as a whole
 bunch of other useful information.

0:02:33.460000 --> 0:02:38.620000
 Now, if you don't see that, you say,
 hey, I don't think I'm doing DHCP.

0:02:38.620000 --> 0:02:39.680000
 How do I turn it on?

0:02:39.680000 --> 0:02:41.580000
 How do I get DHCP working?

0:02:41.580000 --> 0:02:43.560000
 All right, let's go back to
 the same thing we just did.

0:02:43.560000 --> 0:02:45.360000
 Let's click on start.

0:02:45.360000 --> 0:02:48.340000
 And then our control panel, or otherwise
 known as settings in Windows

0:02:48.340000 --> 0:02:53.760000
 10 settings. Go to where we were
 before, network and internet.

0:02:53.760000 --> 0:03:00.720000
 Click on the network adapter that you
 believe is connected to your network.

0:03:00.720000 --> 0:03:05.380000
 And this time we're going to click
 on change adapter options.

0:03:05.380000 --> 0:03:07.860000
 Change adapter options.

0:03:07.860000 --> 0:03:11.300000
 So here it is. Now you might actually
 see more than one adapter in yours

0:03:11.300000 --> 0:03:12.780000
 because this is a virtual machine.


0:03:12.780000 --> 0:03:14.480000
 I've only got one.

0:03:14.480000 --> 0:03:17.540000
 But you'll see, you know, you'll want
 to select the one that you want

0:03:17.540000 --> 0:03:21.360000
 to right click on the one that you believe
 is your network adapter that's

0:03:21.360000 --> 0:03:22.860000
 currently up and connected.

0:03:22.860000 --> 0:03:25.580000
 If you're not sure, just try
 to cross a variety of them.

0:03:25.580000 --> 0:03:27.820000
 But it's typically Ethernet.

0:03:27.820000 --> 0:03:30.820000
 It might be called LAN or LAN1.

0:03:30.820000 --> 0:03:34.080000
 And you'll click on properties.

0:03:34.080000 --> 0:03:38.940000
 All right, so with DHCP we're
 talking about IP version 4.

0:03:38.940000 --> 0:03:44.340000
 So right here it says Internet
 Protocol version 4.

0:03:44.340000 --> 0:03:47.940000
 You'll want to click that once, left
 click it just to select it, and then

0:03:47.940000 --> 0:03:50.100000
 click properties.

0:03:50.100000 --> 0:03:54.580000
 And right here. So notice this is what
 looks like when it's defaulted.

0:03:54.580000 --> 0:03:56.680000
 Obtain IP address automatically.

0:03:56.680000 --> 0:03:58.480000
 That means use DHCP.

0:03:58.480000 --> 0:04:01.160000
 And obtain DNS server
 address automatically.

0:04:01.160000 --> 0:04:03.380000
 That also means use DHCP.

0:04:03.380000 --> 0:04:07.640000
 You can click some of these other ones
 here and type in whatever you want.

0:04:07.640000 --> 0:04:09.480000
 If you want to give
 a static IP address.

0:04:09.480000 --> 0:04:13.640000
 But clearly if you're going to do that,
 you better make sure that A, you

0:04:13.640000 --> 0:04:14.980000
 know what network you're on.

0:04:14.980000 --> 0:04:17.360000
 You want to give yourself an IP address
 that's appropriate for the network

0:04:17.360000 --> 0:04:18.620000
 you're connected to.

0:04:18.620000 --> 0:04:21.960000
 And B, you want to make sure you give
 yourself an IP address that's not

0:04:21.960000 --> 0:04:24.260000
 already in use on that network.

0:04:24.260000 --> 0:04:27.020000
 Discovering that can be
 a little challenging.

0:04:27.020000 --> 0:04:31.720000
 That's why it's just better to obtain
 an IP address automatically.

0:04:31.720000 --> 0:04:36.780000
 So that's how you confirm and verify
 that DHCP is working on a Windows

0:04:36.780000 --> 0:04:42.800000
 based device. Just a couple of
 other things related to this.

0:04:42.800000 --> 0:04:44.760000
 Some other settings you can do.

0:04:44.760000 --> 0:04:50.320000
 So here within where it says type here
 to search, you can type in CMD,

0:04:50.320000 --> 0:04:52.320000
 which will give you
 the command prompt.

0:04:52.320000 --> 0:04:56.360000
 This gives you your old
 DOS command prompt.

0:04:56.360000 --> 0:05:00.040000
 And you can type IP config.

0:05:00.040000 --> 0:05:05.080000
 IP config gives you a real high level
 summary of your IP information.

0:05:05.080000 --> 0:05:09.060000
 Once again, if you're doing DHCP and
 you are connected to a network, you

0:05:09.060000 --> 0:05:10.320000
 should see something here.

0:05:10.320000 --> 0:05:14.000000
 You can see that you've got an IP address,
 subnet mask, and default gateway.

0:05:14.000000 --> 0:05:22.700000
 You can also do IP config forward slash
 all IP config forward slash all,

0:05:22.700000 --> 0:05:26.700000
 then hit enter, and you'll see
 much more detailed information.

0:05:26.700000 --> 0:05:30.680000
 Very similar to what we saw in the GUI
 about the IP address you've got,

0:05:30.680000 --> 0:05:34.520000
 your default server, and
 so on and so forth.

0:05:34.520000 --> 0:05:40.420000
 You could also type IP config slash
 release, and that will send out a

0:05:40.420000 --> 0:05:45.480000
 DHCP release message, telling the server,
 hey, I'm giving up this IP information.

0:05:45.480000 --> 0:05:47.000000
 I don't need it anymore.

0:05:47.000000 --> 0:05:49.540000
 Then of course you won't be on the network
 because you won't have an IP

0:05:49.540000 --> 0:05:54.240000
 address. After you release it, you
 could type IP config forward slash

0:05:54.240000 --> 0:06:02.100000
 renew, and that will restart the DHCP
 process all over again so you can

0:06:02.100000 --> 0:06:04.120000
 watch it in action.

0:06:04.120000 --> 0:06:08.060000
 So those are some useful
 tips there with Windows.

0:06:08.060000 --> 0:06:14.100000
 Now how do we accomplish some
 of that same stuff in a Mac?

0:06:14.100000 --> 0:06:16.520000
 This is minimize this.

0:06:16.520000 --> 0:06:18.860000
 So here I am working on
 a Mac at the moment.

0:06:18.860000 --> 0:06:25.100000
 So with a Mac, you go down and you
 click on your system preferences.

0:06:25.100000 --> 0:06:28.160000
 Once again, there's more than
 one way to accomplish this.

0:06:28.160000 --> 0:06:34.780000
 So with system preferences, you want
 to click on the network icon, and

0:06:34.780000 --> 0:06:38.560000
 right there, it defaults to showing
 you all your connections.

0:06:38.560000 --> 0:06:43.340000
 The one in green is the one that you're
 currently on right now, and it

0:06:43.340000 --> 0:06:45.020000
 says, using DHCP.

0:06:45.020000 --> 0:06:49.460000
 So that confirms that DHCP is
 on by default on this device.

0:06:49.460000 --> 0:06:52.200000
 It also shows you in the screenshot
 what your current IP address subnet

0:06:52.200000 --> 0:06:55.340000
 mask and router happens to be.

0:06:55.340000 --> 0:06:57.440000
 A couple of other options here.

0:06:57.440000 --> 0:06:59.980000
 You could change that to
 a manual IP address.

0:06:59.980000 --> 0:07:03.260000
 You could say use DHCP
 with manual IP address.

0:07:03.260000 --> 0:07:06.920000
 So that would be where if I did that,
 now it would give me the option

0:07:06.920000 --> 0:07:12.620000
 to type in my IP address, and then it
 would send out a DHCP inform message

0:07:12.620000 --> 0:07:15.240000
 saying, hey, I need other stuff.

0:07:15.240000 --> 0:07:16.380000
 I need a subnet mask.

0:07:16.380000 --> 0:07:17.140000
 I need a router.

0:07:17.140000 --> 0:07:18.480000
 I need a DNS server.

0:07:18.480000 --> 0:07:19.700000
 I don't want to do that though.

0:07:19.700000 --> 0:07:25.340000
 I just want to use DHCP.

0:07:25.340000 --> 0:07:29.900000
 And right now he's, so right behind
 the scenes there, he obtained DHCP

0:07:29.900000 --> 0:07:39.880000
 information. Some other ways that you
 can confirm this is you could go

0:07:39.880000 --> 0:07:49.480000
 to your terminal on your back, open up
 your terminal app, and within terminal,

0:07:49.480000 --> 0:07:55.040000
 one command you can
 type is ifconfig.

0:07:55.040000 --> 0:07:58.260000
 It stands for interface
 config, ifconfig.

0:07:58.260000 --> 0:08:00.900000
 It'll show you all
 your interfaces.

0:08:00.900000 --> 0:08:05.360000
 And for example, look for one that
 has an IP address, an inet address,

0:08:05.360000 --> 0:08:06.640000
 like right here.

0:08:06.640000 --> 0:08:11.060000
 So this shows that you
 obtain this via DHCP.

0:08:11.060000 --> 0:08:15.020000
 Now when you do ifconfig, there's
 a lot of stuff you don't see.

0:08:15.020000 --> 0:08:18.660000
 For example, we don't see in this output
 anywhere here, what's the IP

0:08:18.660000 --> 0:08:20.800000
 address of my default gateway?

0:08:20.800000 --> 0:08:25.640000
 What's the IP address of the DHCP server
 that gave me this information?

0:08:25.640000 --> 0:08:28.700000
 How long? What's the
 least time for this?

0:08:28.700000 --> 0:08:33.300000
 So if that's the information you want,
 then step number one is do ifconfig

0:08:33.300000 --> 0:08:38.860000
 like I did, and find the interface
 that has an inet address.

0:08:38.860000 --> 0:08:40.140000
 So just look through your
 various interfaces.

0:08:40.140000 --> 0:08:41.900000
 You might have a lot of them here.


0:08:41.900000 --> 0:08:44.560000
 Most of them probably have
 an inet six address.

0:08:44.560000 --> 0:08:45.860000
 That's your link local address.

0:08:45.860000 --> 0:08:47.300000
 It's going to be defaulting there.


0:08:47.300000 --> 0:08:50.820000
 But you want to scroll down through here
 and look for one or more interfaces

0:08:50.820000 --> 0:08:54.300000
 that have an inet address,
 an IPV4 address.

0:08:54.300000 --> 0:09:02.940000
 So my particular case, it looks like
 I've got VM net one, so that's for

0:09:02.940000 --> 0:09:04.380000
 a virtual machine.

0:09:04.380000 --> 0:09:06.300000
 VM net eight, that's for
 a virtual machine.

0:09:06.300000 --> 0:09:11.680000
 But my actual real ethernet card
 is ethernet 10 or EN 10.

0:09:11.680000 --> 0:09:13.380000
 All right, so I need to find that.


0:09:13.380000 --> 0:09:16.340000
 I need to find out what the
 name of the interface was.

0:09:16.340000 --> 0:09:19.640000
 Now that I have that, I can
 use a different utility.

0:09:19.640000 --> 0:09:22.120000
 I can say IP config.

0:09:22.120000 --> 0:09:28.320000
 Now in Windows, as we just saw, if
 I type IP config and I hit enter, I

0:09:28.320000 --> 0:09:30.800000
 saw something. Not
 so here in a Mac.

0:09:30.800000 --> 0:09:34.020000
 If I type IP config and I just hit enter,
 it says, hey, you need to give

0:09:34.020000 --> 0:09:38.460000
 me a command that goes along with
 that and possibly an argument.

0:09:38.460000 --> 0:09:42.400000
 So I'm going to show you one command
 and argument to get all that nitty

0:09:42.400000 --> 0:09:44.080000
 gritty stuff about DHCP.

0:09:44.080000 --> 0:09:46.480000
 You can say IP config.

0:09:46.480000 --> 0:09:52.240000
 Now the command is get packet and
 then you type in your interface.

0:09:52.240000 --> 0:09:55.580000
 See, this is why I had
 to do IF config first.

0:09:55.580000 --> 0:09:59.260000
 Without doing IF config, I would not
 have known which of my interfaces

0:09:59.260000 --> 0:10:02.440000
 actually had already gotten
 DHCP information.

0:10:02.440000 --> 0:10:06.080000
 So now that I have that, IP
 config get packet EN 10.

0:10:06.080000 --> 0:10:13.340000
 When I hit enter, now I can actually
 see the actual boot reply.

0:10:13.340000 --> 0:10:17.320000
 Once again, this was the
 same as my DHCP request.

0:10:17.320000 --> 0:10:18.920000
 And we can see all sorts
 of good stuff in here.

0:10:18.920000 --> 0:10:21.820000
 We can see your IP address.

0:10:21.820000 --> 0:10:23.540000
 So this is the one that I got.

0:10:23.540000 --> 0:10:25.840000
 We can see my Mac address.

0:10:25.840000 --> 0:10:29.340000
 We can see the actual IP address of the
 server, the DHCP server that gave

0:10:29.340000 --> 0:10:34.360000
 me this information, my subnet mask,
 IP address of my default gateway,

0:10:34.360000 --> 0:10:37.840000
 IP address of my DNS server.

0:10:37.840000 --> 0:10:40.220000
 All sorts of good information
 is in here.

0:10:40.220000 --> 0:10:42.420000
 Even my lease time.

0:10:42.420000 --> 0:10:47.660000
 A lease time is kind of hard to decode
 because that's a hexadecimal number.

0:10:47.660000 --> 0:10:55.600000
 But that is how you confirm in macOS if
 you're doing DHCP and how to modify

0:10:55.600000 --> 0:10:57.880000
 your DHCP settings.

0:10:57.880000 --> 0:11:00.620000
 So that concludes this video.

0:11:00.620000 --> 0:11:01.680000
 Thank you for watching.

