In order for the client computer on the local network to get an IP address allocation automatically, it is necessary to add a server computer to provide an IP address to the client computer.
The server computer is called a DHCP (Dynamic Host Configuration Protocol) Server. The DHCP server makes it easy for you to allocate IP addresses to each client computer without having to set Static IPs one by one on the client computer.
DHCP Server assigns a unique IP address for each client computer or no IP address is the same at one time, so that computers can interact with each other and enter the local network that you created.
You can limit the allocation of IP addresses for client computers by setting how many users are maximum.
The following is a simulation of DHCP Server configuration using the Cisco Packet Tracer application:
Also Read: Cisco Packet Tracer Basics
1. Create a Topology
Draw a server computer, a switch and two PC Client. Connect the Server computer to the Switch and the Switch to the Client PC using a Straight cable.
2. Server Configuration
Click Server → Desktop → IP Configuration then select Static → Enter the Server IP Address, for example 192.168.1.1 → Isi Subnet Mask.
Next select the tab Services → Select DHCP then configure as follows:
Service → On
Default Gateway → Fill in the Server IP 192.168.1.1
Start IP Address → Fill in the IP Address allocation starting from how much, for example 192.168.1.2
After that click Add.
At this point we have configured DHCP on the server.
3. Client Configuration
Click Client Computer → Desktop → IP Configuration → Select DHCP.
Wait a few moments until the client computer gets an IP address like the following, which means the DHCP Server configuration has been successful.
Perform the same steps (point number 3) for other client computers.
Also Read: How to Create VLAN Trunking in Cisco Packet Tracer