D.H. DHC the Dynamic Host Configuration Protocol is used to dynamically assign IP addresses to network
endpoints.
This makes connecting to the network a lot easier for endpoints since all network devices require IP
addresses to communicate on a network.
IP addresses are mandatory IP addresses can be either statically or dynamically assigned.
I imagine the administration nightmare of trying to manually assign IP addresses to hundreds or even
thousands of devices.
Now we'll take a look at a real world example of a network computer obtaining an IP address via the
D.H. C.P protocol.
So here in my computer I'm going to open up my network connections or go to change adapter settings
find my wireless connection.
So here's the wireless NIC that my computer is currently using.
And if I go to properties and click on Internet Protocol version 4 and properties again I have the ability
to either manually configure my IP address or check obtain an IP address automatically which would make
my computer use the DHP protocol.
So I'm already configured for DHP to refresh my DHP messages.
I'm going to pull my DOS prompt here.
And before I clear my IP address I'll just run IP config and I want to show you that
actually IP config slash all
and if I look at my network interface configuration I see that I have DHP enabled.
And here is the DHP server that sent me the IP address that I dynamically obtained.
As you can see in the background I have wireshark running and it's filtering only to capture DHP messages.
So let's release my DHP address by using the command IP config slash release.
So I just sent a release message to my DHC piece are saying hey I don't want this dynamically configured
IP address anymore.
And then I'll see Renu which will trigger a request for a new DHP IP address
and I should have re obtained an IP address dynamically which I did here in the packet capture you can
see that when I set my release command my IP address told my DHP server that I do not want this address
anymore.
Basically releasing this IP address and it can be used for other clients and then my renew.
I went through the DHP client discovery process all over again.
So you can see I sent a broadcast address with my DHP discover message that reached my gateway which
forwarded it to my DHP server.
Now I see the offer response followed by a client to server request message and then finally I received
an acknowledgement with the IP address that was going to be assigned to my computer.