In a network, IP addresses can be assigned to devices using two different methods, where one method involves manual configuration and the other method allows automatic assignment without human intervention, making network management either complex or simple depending on the method used.
In the static method, the network administrator manually assigns an IP address, subnet mask, gateway, and other settings to each device, which provides full control over addressing but becomes difficult to manage in large networks.
In the dynamic method, IP addresses are assigned automatically to devices using DHCP, which eliminates the need for manual configuration and makes the network scalable and easy to manage.
DHCP (Dynamic Host Configuration Protocol) is a network protocol that is used to automatically assign IP addresses and other necessary network configuration details such as subnet mask, default gateway, DNS server, and lease time to devices in a network, so that users do not need to configure these settings manually and communication can happen smoothly without errors.
👉 DHCP simply means:
Devices automatically get IP address without manual setup
The DHCP system works based on two main components, where one device provides the configuration and the other device receives it to communicate in the network.
The DHCP server is the device responsible for assigning IP addresses and network settings to clients, and it can be a router or a dedicated server that maintains a pool of available IP addresses and distributes them whenever requested.
The DHCP client is any device such as a PC, laptop, server, or printer that requests an IP address from the DHCP server in order to communicate within the network.
The communication between the DHCP client and the DHCP server takes place through a structured process known as the DORA process, where a series of messages are exchanged step by step to ensure that the client receives a valid IP address along with all required network information.
In this step, the DHCP client sends a broadcast message to all devices in the network, including the DHCP server, in order to discover any available DHCP server that can provide an IP address.
After receiving the discover message, the DHCP server responds by offering an available IP address from its pool to the client.
The DHCP client then sends a request message to the server indicating that it wants to accept the offered IP address.
Finally, the DHCP server sends an acknowledgement message confirming the assignment of the IP address, along with additional information such as lease time, subnet mask, gateway, and DNS server.
In some situations, DHCP may fail due to reasons such as the DHCP server being offline, not reachable, or not responding to client requests, which prevents devices from receiving an IP address automatically.
When DHCP fails, the client device automatically assigns itself an IP address using a mechanism called APIPA, which allows the device to communicate with other devices within the same local network even without a DHCP server.
APIPA (Automatic Private IP Addressing) is a special type of link-local IP address that is automatically assigned by the system when no DHCP server is available, enabling limited communication within the LAN.
📊 APIPA Range : 169.254.0.0 → 169.254.255.255
The DHCP server not only assigns an IP address but also provides other important network configuration details required for proper communication.
DHCP provides several benefits in real-world networks by simplifying the process of IP management and reducing the chances of errors.
Despite its advantages, DHCP also has some limitations that must be considered in network design.
ip dhcp pool <pool-name>
network <network-address> <subnet-mask>
default-router <gateway-ip>
dns-server <dns-ip>
exit
Before creating DHCP pool, we must exclude some IP addresses so that they are not assigned to clients.
ip dhcp excluded-address <start-ip> <end-ip>
👉 Used to reserve IPs (for router, server, etc.)
Router> enable
Router# configure terminal
In this step, important IP addresses such as gateway or server IPs are excluded so that DHCP does not assign them to clients.
Router(config)# ip dhcp excluded-address 192.168.1.1 192.168.1.10
Router(config)# ip dhcp pool LAN1
Router(dhcp-config)# network 192.168.1.0 255.255.255.0
Router(dhcp-config)# default-router 192.168.1.1
Router(dhcp-config)# dns-server 8.8.8.8
Router(dhcp-config)# exit
🔍 Check DHCP Pool : show ip dhcp pool
🔍 Check Assigned Ips : show ip dhcp binding
🔍 Check DHCP Process : show running-config
In this topology, DHCP is configured on a router to automatically assign IP addresses to client devices connected in the same LAN, where the router acts as a DHCP server and provides network configuration dynamically, allowing devices to communicate without manually assigning IP addresses.

👉 This topology consists of:
👉 One device can also be manually configured (example: server)
Network Address: 192.168.100.0/24
Gateway: 192.168.100.1
Router> enable
Router# configure terminal
! Exclude important IPs
Router(config)# ip dhcp excluded-address 192.168.100.1 192.168.100.10
! Create DHCP Pool
Router(config)# ip dhcp pool LAN1
! Define Network
Router(dhcp-config)# network 192.168.100.0 255.255.255.0
! Set Default Gateway
Router(dhcp-config)# default-router 192.168.100.1
! Set DNS Server (optional)
Router(dhcp-config)# dns-server 8.8.8.8
Router(dhcp-config)# exit
Router(config)# interface fa0/0
Router(config-if)# ip address 192.168.100.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# exit
👉 Go to:
Desktop → IP Configuration → Select DHCP
When DHCP is enabled on client:
👉 IP gets assigned automatically
After enabling DHCP on client devices, the system automatically assigns IP addresses from the DHCP pool.

Command : show ip dhcp binding
Output :

This command shows all the IP addresses assigned to clients by DHCP server.

Connectivity is tested by sending ping from one client to another device in the network.
ping 192.168.100.4
👉 DHCP in topology =
Router assigns IP automatically to all clients
In this topology, DHCP is configured on the router to dynamically assign IP addresses to client devices, eliminating manual configuration and ensuring smooth communication within the network.
👉 👉 Explore the DHCP practical setup to see automatic IP assignment in action:
https://www.evisiontechnoserve.com/internships/it/45-days-job-internship-program-live