Introduces the fundamental concepts, purpose and applications of computer networks.
Explores different network classifications based on geographical coverage, purpose and architecture.
Introduces different physical and logical network structures and how network devices are organised.
Provides practical knowledge of the hardware used to build and connect computer networks.
Introduces the physical and wireless technologies used to transmit data across networks
Explains how network communication is structured using standard models and protocols.
Introduces Ethernet technology and the role of MAC addresses in local network communication
Develops practical understanding of IPv4 addressing and network identification
Teaches learners how to divide networks into smaller subnets and introduces IPv6 addressing.
Introduces network switching and provides practical skills for configuring and managing switches.
Teaches learners how to logically separate networks and carry traffic between network segments.
Introduces routing and explains how routers forward traffic between different networks.
Explores essential network services that support addressing, name resolution and internet connectivity.
Provides practical knowledge of wireless networks and access point configuration.
Introduces fundamental techniques for protecting networks, devices and network traffic.
Develops practical skills for managing, monitoring and troubleshooting computer networks.
Introduces modern networking technologies and the role of networking in cloud and virtualised environments.
Enables learners to apply their networking knowledge by designing, configuring, testing and documenting a complete network solution
Every device connected to an IP network needs appropriate network configuration to communicate effectively.
A computer may need:
An IP address
Subnet mask
Default gateway
DNS server
Lease information
These settings can be entered manually, but doing this for hundreds or thousands of devices would be time-consuming and could result in configuration errors.
The Dynamic Host Configuration Protocol (DHCP) solves this problem by allowing network devices to obtain IP configuration automatically from a DHCP server.
DHCP operates using a client-server model. A DHCP client requests network configuration, while a DHCP server provides the required configuration information.
By the end of this lesson, the learner should be able to:
Define DHCP.
Explain why DHCP is used.
Identify DHCP clients and servers.
Explain how DHCP assigns IP addresses.
Explain the DHCP DORA process.
Describe DHCP Discover.
Describe DHCP Offer.
Describe DHCP Request.
Describe DHCP Acknowledgement.
Explain DHCP leases.
Explain DHCP address pools.
Identify common DHCP options.
Explain DHCP relay.
Explain DHCP reservation.
Compare DHCP with static IP addressing.
Configure basic DHCP settings.
Troubleshoot common DHCP problems.
Explain the security risks associated with unauthorised DHCP servers.
DHCP stands for Dynamic Host Configuration Protocol.
It is a network protocol used to automatically provide network configuration information to devices on an IP network.
The official DHCP specification describes DHCP as a framework for passing configuration information to hosts on TCP/IP networks.
Instead of manually configuring every computer, a network administrator can configure a DHCP server with a pool of available addresses.
When a device joins the network, it can request configuration from the DHCP server.
Without DHCP, an administrator may need to manually configure every device.
For example:
Computer 1:
IP address: 192.168.1.10
Subnet mask: 255.255.255.0
Gateway: 192.168.1.1
DNS: 8.8.8.8
Computer 2:
IP address: 192.168.1.11
Subnet mask: 255.255.255.0
Gateway: 192.168.1.1
DNS: 8.8.8.8
Doing this for 200 computers would take considerable time.
DHCP automates much of this process.
A DHCP client is a device that requests network configuration from a DHCP server.
Examples include:
Desktop computer
Laptop
Smartphone
Tablet
Network printer
IP camera
IP phone
Smart television
Server, when configured as a DHCP client
For example, when a laptop connects to Wi-Fi, it can request an IP address from the network's DHCP server.
A DHCP server provides network configuration information to DHCP clients.
The server maintains information about:
Available IP addresses
Assigned IP addresses
Lease durations
Subnet masks
Default gateways
DNS servers
Other DHCP options
A DHCP server can be a dedicated server or a service running on a router, firewall, operating system or network appliance.
A DHCP server normally has a range of IP addresses that it can allocate.
For example:
Network: 192.168.10.0/24
DHCP pool:
192.168.10.50 – 192.168.10.200
The server can allocate addresses from this range to clients.
Addresses outside the DHCP pool can be reserved for devices requiring manually configured addresses.
A DHCP scope defines the range and configuration parameters available to clients on a particular network.
A scope can contain:
IP address range
Subnet mask
Excluded addresses
Default gateway
DNS server
Lease duration
Other options
For example:
Network: 192.168.20.0/24
DHCP range: 192.168.20.50–192.168.20.200
Gateway: 192.168.20.1
DNS: 192.168.20.1
A DHCP server normally does not give an address to a client forever.
Instead, the address is assigned for a specified period called a lease.
For example:
Lease duration: 8 hours
The client can normally renew the lease before it expires.
This allows unused addresses to eventually become available for other devices.
DHCP's dynamic allocation mechanism allows addresses to be reused when they are no longer needed.
There are two common ways to configure IP addresses.
An administrator manually assigns the IP configuration.
Example:
Server:
192.168.10.10
The device automatically obtains configuration.
Example:
Laptop → DHCP → 192.168.10.57
| Feature | Static IP | DHCP |
|---|---|---|
| Configuration | Manual | Automatic |
| Administration | More work | Easier |
| Address changes | Usually manual | Automatic |
| Suitable for many clients | Less convenient | Very convenient |
| Common for servers | Yes | Sometimes |
| Common for user devices | Possible | Very common |
| Risk of manual errors | Higher | Lower |
DHCP can provide information such as:
IP address
Subnet mask
Default gateway
DNS server
Domain name
Lease duration
Network-specific configuration options
The DHCP protocol supports mechanisms for delivering configuration parameters as well as allocating network addresses.
A common DHCP exchange is remembered using the acronym DORA:
D – Discover
O – Offer
R – Request
A – Acknowledgement
The process allows a DHCP client to discover a server, receive an offer, request an address and receive confirmation.
The client begins by sending a DHCPDISCOVER message.
The client is effectively asking:
"Is there a DHCP server available?"
At this stage, the client may not yet have a usable IP address.
The Discover message is commonly broadcast on the local network.
A DHCP server receives the Discover message and may respond with a DHCPOFFER.
The offer can contain:
Proposed IP address
Subnet mask
Lease duration
Default gateway
DNS information
For example:
DHCP Server:
"I can offer you 192.168.10.55 for this lease period."
Cisco's DHCP documentation describes the client sending DHCPDISCOVER and a DHCP server responding with configuration information including an IP address and lease information.
The client chooses an offer and sends a DHCPREQUEST message.
The request tells the DHCP server that the client wants to use the offered configuration.
If multiple DHCP servers responded, the client identifies the offer it selected.
The DHCP server responds with DHCPACK.
This confirms that the client can use the assigned configuration.
The client can then configure its network interface and communicate on the network.
| Stage | Message | Purpose |
|---|---|---|
| D | DHCPDISCOVER | Find DHCP servers |
| O | DHCPOFFER | Server offers configuration |
| R | DHCPREQUEST | Client requests an offer |
| A | DHCPACK | Server confirms configuration |
Imagine a laptop joining a Wi-Fi network.
Step 1:
Laptop → "I need network configuration."
DHCPDISCOVER
Step 2:
DHCP Server → "I can give you 192.168.1.50."
DHCPOFFER
Step 3:
Laptop → "I want that address."
DHCPREQUEST
Step 4:
DHCP Server → "Confirmed. You may use it."
DHCPACK
The laptop can now use the assigned network configuration.
DHCP uses UDP.
The standard DHCP server port is UDP 67.
The DHCP client port is UDP 68.
Therefore:
DHCP Server → UDP 67
DHCP Client → UDP 68
DHCP clients may initially use broadcast communication because they may not yet know the DHCP server's IP address.
This allows DHCP servers on the local network to detect the request.
A DHCP server does not necessarily have to be physically located on the same subnet as the client.
Routers can use DHCP relay functionality to forward DHCP requests toward a DHCP server on another network.
This is important in larger organisations.
For example:
Student VLAN
|
Switch
|
Router
|
DHCP Relay
|
DHCP Server
The DHCP server can serve clients across multiple subnets.
DHCP relay allows DHCP requests to cross a router.
This is useful when one central DHCP server serves several networks.
For example:
VLAN 10 → DHCP Server
VLAN 20 → DHCP Server
VLAN 30 → DHCP Server
Instead of installing a separate DHCP server for every VLAN, a router or Layer 3 switch can relay DHCP requests to a central server.
A DHCP reservation allows a particular device to consistently receive a specific IP address.
The reservation is commonly associated with the device's MAC address or another client identifier.
Example:
Printer MAC Address → 00:11:22:33:44:55
Reserved IP → 192.168.10.20
Whenever the printer requests DHCP configuration, the server can provide the reserved address.
Reservations can be useful for:
Network printers
CCTV cameras
Network storage
Access points
Certain servers
POS devices
Other infrastructure devices
The administrator can maintain centralised DHCP management while ensuring important devices receive predictable addresses.
An administrator may exclude certain addresses from the DHCP pool.
For example:
Network: 192.168.10.0/24
DHCP pool: 192.168.10.50–192.168.10.200
Reserved/static range:
192.168.10.1–192.168.10.49
This prevents the DHCP server from automatically assigning addresses intended for infrastructure devices.
DHCP clients do not necessarily wait until a lease completely expires.
They normally attempt to renew their lease during the lease period.
If renewal succeeds, the lease can continue.
If the DHCP server is unavailable, the client's ability to continue using the old configuration depends on the lease state and protocol rules.
A DHCP client can release an IP address when it no longer needs it.
For example, a device leaving a network may release its address.
The server can then make that address available for another client.
DHCP and DNS have different responsibilities.
DHCP:
Provides network configuration.
DNS:
Translates names into IP addresses and performs other name-resolution functions.
For example:
DHCP → "Your DNS server is 192.168.1.1."
DNS → "www.example.com is associated with this IP address."
DHCP can tell a client which default gateway it should use.
For example:
Client IP: 192.168.10.50
Subnet mask: 255.255.255.0
Gateway: 192.168.10.1
The client uses 192.168.10.1 when it needs to communicate with destinations outside its local subnet.
A home router commonly performs several functions:
Router
Firewall
DHCP server
Wireless access point
Sometimes DNS forwarding
When a smartphone joins the home Wi-Fi network, the router can provide an IP address automatically.
A computer laboratory may contain 40 computers.
Instead of configuring every computer manually, the administrator can configure a DHCP server.
For example:
DHCP range:
192.168.50.20–192.168.50.100
Gateway:
192.168.50.1
DNS:
192.168.50.1
When computers start, they request network configuration automatically.
A school may have different network segments:
Administration
Teachers
Students
Guest Wi-Fi
ICT laboratory
Each network can have its own DHCP scope.
Example:
Administration:
192.168.10.0/24
Teachers:
192.168.20.0/24
Students:
192.168.30.0/24
Guests:
192.168.40.0/24
This can be combined with VLANs and DHCP relay.
An organisation with multiple branches can centrally manage DHCP services.
Each branch may have its own subnet and DHCP configuration.
DHCP helps reduce the amount of manual IP configuration required for employee computers and other client devices.
DHCP is frequently used with VLANs.
For example:
VLAN 10 – Administration
VLAN 20 – Students
VLAN 30 – Guests
Each VLAN can have its own subnet and DHCP scope.
Example:
VLAN 10:
192.168.10.0/24
VLAN 20:
192.168.20.0/24
VLAN 30:
192.168.30.0/24
A router can:
Act as a DHCP server
Forward DHCP requests
Provide the default gateway
Connect multiple DHCP-enabled networks
Small networks often use the router itself as the DHCP server.
Larger organisations may use dedicated DHCP servers.
DHCP is commonly associated with IPv4 network configuration.
For IPv4, DHCP can provide:
IPv4 address
Subnet mask
Default gateway
DNS server
Lease information
DHCPv6 provides corresponding functionality for IPv6 networks, with important differences in operation.
DHCP is convenient, but it also presents security risks.
One important risk is an unauthorised DHCP server.
For example, an attacker could connect a rogue DHCP server to the network and provide incorrect:
IP addresses
Default gateways
DNS servers
Other network information
The DHCP specification itself discusses the risk of unauthorised DHCP servers providing false or disruptive information.
A rogue DHCP server is an unauthorised DHCP server operating on a network.
For example:
Legitimate DHCP Server:
Gateway → 192.168.1.1
Rogue DHCP Server:
Gateway → Attacker's device
Clients receiving the rogue configuration may experience:
Loss of Internet access
Incorrect DNS resolution
Traffic interception
Network disruption
Managed switches can support DHCP snooping.
DHCP snooping can help distinguish trusted DHCP server ports from untrusted ports.
For example:
Switch Port 24 → Trusted DHCP server
Ports 1–23 → Untrusted client ports
The switch can then help prevent unauthorised DHCP responses from client-facing ports.
Common problems include:
DHCP server unavailable
DHCP pool exhausted
Incorrect VLAN configuration
DHCP relay misconfiguration
Network cable failure
Wi-Fi connectivity problems
Firewall blocking DHCP traffic
Rogue DHCP server
Incorrect DHCP scope
Incorrect subnet mask
Incorrect gateway
Incorrect DNS settings
Suppose a DHCP server has only 20 available addresses.
If 20 clients are already using them, a new client may not receive an IP address.
The administrator may need to:
Increase the address pool
Reduce unnecessary lease duration
Remove abandoned leases
Investigate devices consuming addresses
Create additional subnets
When a computer does not receive an IP address:
Check the network cable or Wi-Fi connection.
Check whether the network interface is enabled.
Check the IP configuration.
Check whether the DHCP server is operating.
Check the DHCP scope.
Check whether addresses remain available.
Check VLAN configuration.
Check DHCP relay configuration.
Check switch connectivity.
Check firewall rules.
Test another client.
Check DHCP server logs.
The following commands are useful when troubleshooting DHCP on Windows.
View IP configuration:
ipconfig
Display detailed configuration:
ipconfig /all
Release the current DHCP configuration:
ipconfig /release
Request a new DHCP configuration:
ipconfig /renew
Clear the DNS resolver cache:
ipconfig /flushdns
Learners should understand that ipconfig /release and ipconfig /renew are particularly useful for testing DHCP address acquisition.
Linux systems can use commands such as:
ip addr
to inspect IP addresses and interfaces.
Depending on the Linux distribution and network management system, tools such as:
nmcli
can also be used to inspect network configuration.
On a Windows computer:
Open Command Prompt.
Run:
ipconfig /all
Identify:
IPv4 address
Subnet mask
Default gateway
DHCP server
DNS servers
Record the information.
On a test computer:
Open Command Prompt.
Run:
ipconfig /release
Observe the IP configuration.
Run:
ipconfig /renew
Run:
ipconfig /all
Compare the configuration before and after renewal.
Using Cisco Packet Tracer:
Add a router.
Add a switch.
Add three PCs.
Connect the PCs to the switch.
Configure DHCP on the router.
Set the PCs to obtain addresses automatically.
Verify the addresses.
Test communication between the PCs.
Create a DHCP scope for:
Network:
192.168.100.0/24
Gateway:
192.168.100.1
DHCP range:
192.168.100.50–192.168.100.200
DNS:
192.168.100.1
Students should calculate:
Number of available DHCP addresses
Addresses excluded from the pool
Network address
Broadcast address
Create a simulated situation where a client cannot obtain an IP address.
Learners should investigate:
Physical connection
DHCP server
DHCP scope
Available addresses
VLAN
DHCP relay
Client configuration
Students should document the cause and solution.
What does DHCP stand for?
What is the purpose of DHCP?
What is a DHCP client?
What is a DHCP server?
What is a DHCP scope?
What is a DHCP address pool?
What is a DHCP lease?
What does DORA stand for?
What is DHCPDISCOVER?
What is DHCPOFFER?
What is DHCPREQUEST?
What is DHCPACK?
Which transport protocol does DHCP use?
What are the standard DHCP server and client ports?
What is DHCP reservation?
What is DHCP relay?
Why is DHCP useful in a large computer laboratory?
What is a rogue DHCP server?
What is DHCP snooping?
Give five common causes of DHCP failure.
Design a DHCP system for a computer training centre with:
50 student computers
5 instructor computers
5 administrative computers
3 printers
3 wireless access points
2 servers
Create:
IP addressing plan.
DHCP scopes.
Address pools.
Excluded addresses.
Default gateways.
DNS configuration.
DHCP reservations for printers.
VLAN structure.
DHCP relay design if required.
Security measures against rogue DHCP servers.
DHCP – Dynamic Host Configuration Protocol.
DHCP Client – Device requesting network configuration.
DHCP Server – Device or service providing DHCP configuration.
DHCP Scope – Defined range and configuration parameters for DHCP clients.
Address Pool – Collection of IP addresses available for allocation.
Lease – Period during which a client may use an assigned IP address.
DORA – Discover, Offer, Request and Acknowledgement.
DHCPDISCOVER – Message used by a client to locate DHCP servers.
DHCPOFFER – Message containing an offered configuration.
DHCPREQUEST – Message used by a client to request configuration.
DHCPACK – Message confirming the DHCP configuration.
DHCP Relay – Mechanism that forwards DHCP requests between networks.
Reservation – Configuration that associates a particular client with a specific address.
Rogue DHCP – Unauthorised DHCP server.
DHCP Snooping – Switch security mechanism used to help control DHCP traffic.
DHCP is an important network protocol that automates IP configuration.
It can provide clients with:
IP addresses
Subnet masks
Default gateways
DNS server information
Lease information
Other network configuration options
The common DHCP process is DORA:
Discover → Offer → Request → Acknowledgement
DHCP reduces manual configuration and makes it easier to manage large networks.
It can be used in:
Homes
Schools
Computer laboratories
Offices
Businesses
Banks
Universities
Data centres
Multi-branch organisations
However, DHCP must be properly configured and secured because unauthorised DHCP servers can disrupt network operation.
More learning will be delivered through the Senior ICT Academy Campus by either a physical instructor or an online instructor.
Learners can continue with:
IPv4 addressing
Subnetting
VLANs
Routing
DNS
Network security
DHCP server configuration
Cisco networking
Windows Server administration
Network troubleshooting
Campus:
https://campus.seniorictacademy.com/login
Senior ICT Academy: