Submitted on Mon, 04/22/2024 - 22:49

DHCP stands for Dynamic Host Configuration Protocol. DHCP is used to dynamically configure a device in the network. In this example, we will use a DHCP server to dynamically assign IP and subnet masks to connected devices.

  1. Create a computer network with 3 PCs and a server. Server can be found in the same section as PC.

  1. Assign DHCP server a static IP address

Click on server, select Desktop and then IP Configuration. Set following IP address:

Note: DHCP server is assigned a static IP address while it provides other devices a dynamic IP address.

  1. Configure DHCP service

Go to Services, then select DHCP service. Configure the DHCP settings as follows:

Service: On

Pool Name: serverPool (already set)

Default Gateway: (already set)

DNS Server: (already set)

We will use DHCP service to only set IP address and subnet mask in this example. We will not use DHCP service to set Default gateway and DNS server. Hence, we will use the value which is an unspecified IP address. These values are already set by default.

Start IP Address:

The DHCP server has an address of Hence, we can use the subsequent address as the value of the start address which shall be provided by DHCP to connected PCs.

Subnet Mask:

For /29 network

Maximum number of users: 5

This value defines the number of PCs which shall get DHCP service. Here, we are creating a /29 network which allows a maximum of 6 devices. Since, one address is needed for the DHCP server, the maximum number of devices that can get DHCP service is 5. We can further reduce the number of devices getting DHCP service using this value.

Finally our DHCP service will look like below:

  1. Request for DHCP service

Select a PC, go to desktop and then IP configuration. Select DHCP.

This will trigger the DHCP request. The DHCP server will then provide an IP address and subnet mask for the PC based on the DHCP service settings.