WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.900 --> 00:00:07.100
Hello everyone. So in this

1
00:00:07.100 --> 00:00:09.100
 video we are going to see.

2
00:00:10.100 --> 00:00:13.900
About a protocol which is called as DHCP.

3
00:00:14.800 --> 00:00:17.600
So DHCP is a protocol which works

4
00:00:17.600 --> 00:00:19.200
 on port number 67.

5
00:00:20.400 --> 00:00:23.500
The full form of DHCP is dynamic host

6
00:00:23.500 --> 00:00:25.000
 configuration protocol.

7
00:00:26.200 --> 00:00:29.200
Why DHCP is used so DHCP is

8
00:00:29.200 --> 00:00:32.800
 used to assign IP addresses to host or devices.

9
00:00:34.300 --> 00:00:38.000
For example in your house. Your router is DHCP

10
00:00:37.200 --> 00:00:40.400
 server, which assigns IP addresses

11
00:00:40.400 --> 00:00:43.400
 to your devices like a computer your mobile

12
00:00:43.400 --> 00:00:44.400
 or your printer?

13
00:00:46.200 --> 00:00:47.400
How does this happens?

14
00:00:48.700 --> 00:00:51.400
This happens using a process known as

15
00:00:51.400 --> 00:00:52.600
 Dura process.

16
00:00:54.800 --> 00:00:58.400
So, let's see the door process and understand how IP

17
00:00:57.400 --> 00:01:00.400
 address is been assigned to any

18
00:01:00.400 --> 00:01:00.800
 device.

19
00:01:02.500 --> 00:01:05.200
So as you can see on the left hand side, it is

20
00:01:05.200 --> 00:01:08.600
 a DHCP client and onto the right hand side is

21
00:01:08.600 --> 00:01:10.000
 a DHCP server.

22
00:01:10.700 --> 00:01:13.800
You can understand with a very basic example of

23
00:01:13.800 --> 00:01:16.600
 taking an example as the client

24
00:01:16.600 --> 00:01:18.600
 is me. I want to connect.

25
00:01:20.200 --> 00:01:23.500
To the internet and I want to IP address from the server, which

26
00:01:23.500 --> 00:01:24.200
 is my router.

27
00:01:25.600 --> 00:01:28.600
So I will send a request to

28
00:01:28.600 --> 00:01:31.000
 the router which is the dhcv server.

29
00:01:31.700 --> 00:01:34.600
As the DHCP client sends a request that request

30
00:01:34.600 --> 00:01:37.200
 is known as discover request.

31
00:01:38.400 --> 00:01:40.700
So the client is trying to discover.

32
00:01:41.400 --> 00:01:42.300
the IP address

33
00:01:43.300 --> 00:01:46.700
the DHCP server will offer a IP address

34
00:01:46.700 --> 00:01:49.600
 from his IP address pool. Let's say

35
00:01:49.600 --> 00:01:52.300
 the server is offered IP, which is

36
00:01:52.300 --> 00:01:55.200
 192.168 1.5.

37
00:01:56.100 --> 00:01:58.100
then the DHCP client will say

38
00:01:59.200 --> 00:02:02.200
Yes, I am requesting for this IP address and I

39
00:02:02.200 --> 00:02:05.600
 would like to take this IP address Please assign this

40
00:02:05.600 --> 00:02:06.800
 IP address to me.

41
00:02:07.500 --> 00:02:11.000
The DHCP server will finally acknowledge with

42
00:02:10.300 --> 00:02:13.100
 that IP address and it will be

43
00:02:13.100 --> 00:02:16.300
 assigned to the DHCP client, which is the device.

44
00:02:18.300 --> 00:02:21.500
So we understood how a Dora process works. So, let's

45
00:02:21.500 --> 00:02:24.600
 see and practical example wherein I am

46
00:02:24.600 --> 00:02:27.500
 going to perform Dora process on my computer,

47
00:02:27.500 --> 00:02:30.800
 and I'm going to capture the request in Wireshark

48
00:02:30.800 --> 00:02:34.400
 to make you understand that how DHCP works.

49
00:02:37.600 --> 00:02:41.100
I have performed a DHCP in

50
00:02:40.100 --> 00:02:43.400
 which I have captured the request

51
00:02:43.400 --> 00:02:44.600
 into the Wireshark.

52
00:02:46.200 --> 00:02:49.600
My computer has been assigned IP address. So let's

53
00:02:49.600 --> 00:02:50.500
 see how it happened.

54
00:02:52.200 --> 00:02:55.700
So this is the sample packet that I have captured. There

55
00:02:55.700 --> 00:02:57.600
 are a lot of packets so

56
00:02:58.900 --> 00:02:59.400
to see

57
00:03:01.500 --> 00:03:04.600
the desired output what I'm going to do right now

58
00:03:04.600 --> 00:03:05.300
 is

59
00:03:06.700 --> 00:03:09.400
I'm going to apply a display filter in this

60
00:03:09.400 --> 00:03:12.200
 filter. I'm going to type IP.

61
00:03:15.300 --> 00:03:18.200
I will type DHCP. So because I

62
00:03:18.200 --> 00:03:19.800
 only want to see the

63
00:03:20.600 --> 00:03:23.800
requests and responses which

64
00:03:23.800 --> 00:03:25.900
 contains the protocol DHCP

65
00:03:27.300 --> 00:03:31.400
So as you can see here, I have got some request

66
00:03:30.400 --> 00:03:33.800
 of DHCP protocol.

67
00:03:34.900 --> 00:03:35.700
Which is discovered.

68
00:03:37.400 --> 00:03:40.400
Offer request and acknowledge. So as

69
00:03:40.400 --> 00:03:43.100
 you can see in the Discover packet

70
00:03:43.800 --> 00:03:48.500
The Source IP address is 0.0.0.0 which

71
00:03:47.500 --> 00:03:50.500
 is my IP address as

72
00:03:50.500 --> 00:03:53.700
 I do not have IP address right now as you

73
00:03:53.700 --> 00:03:56.500
 can see over here my device is the Apple device and

74
00:03:56.500 --> 00:03:58.400
 I am requesting this to my router.

75
00:04:02.800 --> 00:04:05.300
and then my router there is

76
00:04:05.300 --> 00:04:09.100
 192.168 1.1, which is my Huawei router

77
00:04:08.100 --> 00:04:10.400
 is going to

78
00:04:11.300 --> 00:04:14.200
offer II IP address from its pool. So as

79
00:04:14.200 --> 00:04:17.000
 you can see the IP address it is offering is

80
00:04:18.200 --> 00:04:19.200
one dot

81
00:04:20.100 --> 00:04:20.900
147

82
00:04:21.800 --> 00:04:24.700
then my computer which still doesn't

83
00:04:24.700 --> 00:04:27.700
 have a IP address is going to acknowledge the

84
00:04:27.700 --> 00:04:30.600
 router that I want that IP

85
00:04:30.600 --> 00:04:30.700
 address.

86
00:04:31.400 --> 00:04:32.300
is going to request

87
00:04:33.700 --> 00:04:34.100
and then

88
00:04:35.200 --> 00:04:38.400
the router is going to finally acknowledge with the IP address

89
00:04:38.400 --> 00:04:41.400
 to my device and my device gets a

90
00:04:41.400 --> 00:04:46.700
 IP new IP address there is 192.168 1.147.

91
00:04:48.100 --> 00:04:52.100
So this was the DHCP analysis using Wireshark.

92
00:04:51.100 --> 00:04:55.400
 I hope you guys understood this how DHCP

93
00:04:54.400 --> 00:04:56.500
 works. Thank you.
