1 00:00:00,570 --> 00:00:09,960 D.H. DHC the Dynamic Host Configuration Protocol is used to dynamically assign IP addresses to network 2 00:00:09,960 --> 00:00:12,060 endpoints. 3 00:00:12,090 --> 00:00:18,570 This makes connecting to the network a lot easier for endpoints since all network devices require IP 4 00:00:18,570 --> 00:00:21,150 addresses to communicate on a network. 5 00:00:21,510 --> 00:00:29,460 IP addresses are mandatory IP addresses can be either statically or dynamically assigned. 6 00:00:29,480 --> 00:00:35,640 I imagine the administration nightmare of trying to manually assign IP addresses to hundreds or even 7 00:00:35,640 --> 00:00:38,280 thousands of devices. 8 00:00:38,380 --> 00:00:45,280 Now we'll take a look at a real world example of a network computer obtaining an IP address via the 9 00:00:45,280 --> 00:00:47,020 D.H. C.P protocol. 10 00:00:48,600 --> 00:00:55,410 So here in my computer I'm going to open up my network connections or go to change adapter settings 11 00:00:56,910 --> 00:00:59,410 find my wireless connection. 12 00:00:59,490 --> 00:01:03,160 So here's the wireless NIC that my computer is currently using. 13 00:01:04,040 --> 00:01:13,360 And if I go to properties and click on Internet Protocol version 4 and properties again I have the ability 14 00:01:13,360 --> 00:01:23,050 to either manually configure my IP address or check obtain an IP address automatically which would make 15 00:01:23,050 --> 00:01:25,860 my computer use the DHP protocol. 16 00:01:26,250 --> 00:01:32,480 So I'm already configured for DHP to refresh my DHP messages. 17 00:01:32,650 --> 00:01:35,780 I'm going to pull my DOS prompt here. 18 00:01:40,360 --> 00:01:46,090 And before I clear my IP address I'll just run IP config and I want to show you that 19 00:01:48,770 --> 00:01:50,900 actually IP config slash all 20 00:01:54,450 --> 00:02:03,250 and if I look at my network interface configuration I see that I have DHP enabled. 21 00:02:03,250 --> 00:02:14,080 And here is the DHP server that sent me the IP address that I dynamically obtained. 22 00:02:14,080 --> 00:02:22,870 As you can see in the background I have wireshark running and it's filtering only to capture DHP messages. 23 00:02:23,050 --> 00:02:36,300 So let's release my DHP address by using the command IP config slash release. 24 00:02:36,320 --> 00:02:43,730 So I just sent a release message to my DHC piece are saying hey I don't want this dynamically configured 25 00:02:43,850 --> 00:02:45,050 IP address anymore. 26 00:02:46,420 --> 00:02:54,340 And then I'll see Renu which will trigger a request for a new DHP IP address 27 00:02:58,360 --> 00:03:05,050 and I should have re obtained an IP address dynamically which I did here in the packet capture you can 28 00:03:05,050 --> 00:03:14,730 see that when I set my release command my IP address told my DHP server that I do not want this address 29 00:03:14,730 --> 00:03:15,320 anymore. 30 00:03:15,510 --> 00:03:24,330 Basically releasing this IP address and it can be used for other clients and then my renew. 31 00:03:24,430 --> 00:03:30,690 I went through the DHP client discovery process all over again. 32 00:03:32,060 --> 00:03:40,280 So you can see I sent a broadcast address with my DHP discover message that reached my gateway which 33 00:03:40,280 --> 00:03:43,390 forwarded it to my DHP server. 34 00:03:43,600 --> 00:03:52,460 Now I see the offer response followed by a client to server request message and then finally I received 35 00:03:52,520 --> 00:03:59,010 an acknowledgement with the IP address that was going to be assigned to my computer.