What is DHCP
Dynamic Host Configuration Protocol, commonly known as DHCP, is a network service that automatically provides connected devices with the information they need to communicate on a network.
This normally includes an IP address, subnet mask, default gateway and DNS server addresses.
In this beginner-friendly course, you will learn how DHCP works, understand the process used by devices to request network settings and explore important concepts such as scopes, address pools, leases, exclusions and reservations. You will also learn how to view DHCP information on a computer and troubleshoot common problems when a device cannot obtain a valid IP address.
Learning Outcomes
What you will be able to do after completing this course.
By the end of this course, you should understand how DHCP assigns network settings and how to diagnose common address-assignment problems.
- Explain what DHCP is and why networks use it.
- Describe how DHCP reduces manual configuration.
- Identify routers and servers that can provide DHCP.
- Distinguish DHCP clients and DHCP servers.
- Explain IP addresses, subnet masks, gateways and DNS.
- Describe how DHCP provides network settings.
- Explain Discover, Offer, Request and Acknowledge.
- Recognise the DORA abbreviation.
- Explain DHCP scopes.
- Understand address pools.
- Explain DHCP exclusions.
- Understand leases and expiry periods.
- Explain DHCP lease renewal.
- Understand DHCP reservations.
- Identify suitable devices for reservations.
- Compare dynamic and static IP addresses.
- Identify situations requiring static addressing.
- View DHCP information on Windows.
- Use ipconfig to view network settings.
- Release and renew a DHCP address.
- Recognise a 169.254.x.x APIPA address.
- Explain why APIPA appears.
- Identify common DHCP failures.
- Check whether a scope still has available addresses.
- Recognise duplicate IP conflicts.
- Identify incorrect DHCP options.
- Explain DHCP relay.
- Understand DHCP scopes for VLANs.
- Test connectivity after receiving an address.
- Distinguish DHCP, DNS, gateway and internet problems.
- Apply basic DHCP troubleshooting steps.
Course Roadmap
Follow the lessons in order or select a topic to review.
Understanding What DHCP Does
Learn why networks assign settings automatically.
DHCP allows a device to join a network without requiring a user or administrator to type every network setting manually.
Manual Configuration
Each device must be configured individually with an address, gateway, DNS and other required values.
DHCP Configuration
The network automatically supplies suitable settings when the device connects.
Why DHCP is Useful
- Reduces manual configuration work.
- Reduces typing mistakes.
- Helps prevent duplicate addresses.
- Reuses addresses when devices leave the network.
- Allows central changes to gateway or DNS information.
- Supports large numbers of temporary and mobile devices.
Practice Activity
- List five devices in a typical network.
- Identify which devices normally use DHCP.
- Explain one problem caused by manual configuration.
DHCP Clients and DHCP Servers
Understand who requests settings and who provides them.
DHCP Client
A computer, phone, printer or other device that requests network settings.
DHCP Server
A router, firewall, server or other network appliance that provides network settings.
Common DHCP Servers
- Home wireless routers
- Business firewalls
- Windows Server
- Linux servers
- Managed network appliances
- Cloud-managed gateways
Client and Server Exercise
- Identify the DHCP server in a home or lab network.
- List three DHCP clients.
- Record the router or server address.
Network Settings Supplied by DHCP
Understand the information required for communication.
| Setting | Purpose |
|---|---|
| IP Address | Identifies the device on the network |
| Subnet Mask | Defines which addresses are considered local |
| Default Gateway | Provides a path to other networks and the internet |
| DNS Server | Translates names such as websites into IP addresses |
| Lease Duration | Defines how long the address may be used before renewal |
Example Configuration
IPv4 Address: 192.168.1.25
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
DNS Server: 192.168.1.1
DHCP Enabled: Yes
Settings Exercise
- Write the purpose of each major setting.
- Identify the local network portion of the example address.
- Explain what the gateway does.
The DHCP DORA Process
Follow the four main messages used to obtain an address.
- Discover
- Offer
- Request
- Acknowledge
- Discover: The client looks for an available DHCP server.
- Offer: A DHCP server offers an address and other settings.
- Request: The client requests the offered address.
- Acknowledge: The server confirms the lease.
DORA Exercise
- Write the four DORA steps from memory.
- Identify which messages are sent by the client.
- Identify which messages are sent by the server.
DHCP Scopes and Address Pools
Define which addresses can be assigned to clients.
Example Scope
Network: 192.168.10.0/24
Address Pool: 192.168.10.50 - 192.168.10.200
Gateway: 192.168.10.1
DNS Server: 192.168.10.10
Lease Duration: 8 days
Scope Components
- Network and subnet mask
- Starting IP address
- Ending IP address
- Exclusions
- Lease duration
- Default gateway option
- DNS server option
- Reservations
Scope Exercise
- Create a sample /24 scope.
- Select an address pool.
- Reserve space for gateways, servers and printers.
- Define a lease duration.
Using Exclusions and Reservations
Protect special addresses and provide predictable assignments.
Exclusion
Prevents DHCP from dynamically assigning a specific address or range.
Reservation
Assigns the same DHCP address to a specific device, normally identified by its hardware address.
Devices That May Use Reservations
- Network printers
- Wireless access points
- Servers in smaller environments
- CCTV recorders
- Network storage devices
- Management interfaces
Reservation Exercise
- Choose one printer or lab device.
- Record its hardware address.
- Create a sample reservation.
- Explain why the address should remain predictable.
DHCP Leases and Renewal
Understand temporary ownership and address reuse.
A DHCP lease gives a client permission to use an address for a defined period. Before the lease expires, the client normally asks to renew it.
Why Leases Expire
- Allows addresses to be reused.
- Supports temporary devices.
- Allows network settings to change centrally.
- Prevents permanently losing addresses to devices that leave.
General Renewal Behaviour
- The client uses the assigned address.
- The client attempts renewal before expiry.
- The DHCP server confirms or changes the lease.
- If renewal fails, the client tries again later.
- After expiry, the client must stop using the lease.
Lease Exercise
- View a Windows client's lease obtained and lease expires times.
- Calculate the approximate lease duration.
- Explain why a guest network may use shorter leases.
Dynamic and Static IP Addresses
Select the appropriate assignment method for each device.
| Method | Characteristic | Typical Use |
|---|---|---|
| Dynamic DHCP | Address may change | User computers, phones and tablets |
| DHCP Reservation | Same address is assigned through DHCP | Printers, access points and selected devices |
| Manual Static | Address is configured directly on the device | Gateways, DHCP servers and core infrastructure |
When Static Addresses May Be Appropriate
- Routers and default gateways
- DHCP servers
- DNS servers
- Domain controllers
- Core network-management interfaces
- Devices that must remain reachable during DHCP outages
Assignment Exercise
- Classify ten devices as dynamic, reserved or static.
- Explain each decision.
- Check that static addresses are outside the dynamic pool.
Viewing DHCP Information on Windows
Inspect the assigned network configuration.
Basic Command
ipconfig
Detailed Command
ipconfig /all
Important Fields
- DHCP Enabled
- IPv4 Address
- Subnet Mask
- Default Gateway
- DHCP Server
- DNS Servers
- Lease Obtained
- Lease Expires
Windows Exercise
- Open Command Prompt.
- Run ipconfig /all.
- Find the active adapter.
- Record the IP address, gateway, DHCP server and DNS servers.
Releasing and Renewing a DHCP Lease
Use Windows commands to request fresh network settings.
Release the Current Address
ipconfig /release
Request a New Lease
ipconfig /renew
Review the New Configuration
ipconfig /all
Release-and-Renew Exercise
- Record the current address.
- Run ipconfig /release.
- Observe the adapter configuration.
- Run ipconfig /renew.
- Compare the renewed settings.
Understanding APIPA Addresses
Recognise 169.254.x.x when DHCP assignment fails.
When a Windows device is configured for DHCP but cannot obtain a lease, it may assign itself an Automatic Private IP Addressing address in the 169.254.x.x range.
What an APIPA Address Usually Means
- The device did not receive a DHCP response.
- The network cable may be disconnected.
- The Wi-Fi connection may have failed.
- The DHCP service may be unavailable.
- The DHCP scope may be exhausted.
- A VLAN or relay configuration may be incorrect.
APIPA Exercise
- Explain what 169.254.x.x indicates.
- List four likely causes.
- Describe the first physical check you would perform.
DHCP Relay and VLANs
Provide DHCP when clients and servers are on different segments.
Why Relay is Needed
Initial DHCP messages are broadcasts. Routers normally do not forward broadcasts between subnets. A DHCP relay listens for the client request and forwards it to a DHCP server on another network.
- Client VLAN
- Gateway or Relay
- DHCP Server
- Lease Returned
VLAN and Scope Relationship
| VLAN | Subnet | DHCP Scope |
|---|---|---|
| Users | 10.10.10.0/24 | 10.10.10.50 - 10.10.10.200 |
| Guest | 10.10.40.0/24 | 10.10.40.50 - 10.10.40.240 |
| IoT | 10.10.60.0/24 | 10.10.60.50 - 10.10.60.220 |
Relay Exercise
- Draw a client VLAN and remote DHCP server.
- Mark the gateway relay function.
- Create a matching DHCP scope.
- Explain what happens when the scope is missing.
Testing After DHCP Assignment
Separate addressing, gateway, DNS and internet problems.
Recommended Test Sequence
ipconfig /all
ping 127.0.0.1
ping <device-ip-address>
ping <default-gateway>
ping 8.8.8.8
ping example.com
| Test | What It Helps Confirm |
|---|---|
| View configuration | DHCP address, mask, gateway and DNS were assigned |
| Ping the gateway | Local network and gateway communication |
| Ping a public IP | Internet routing without DNS |
| Ping a domain name | Internet routing and DNS resolution |
Testing Exercise
- View the assigned settings.
- Ping the default gateway.
- Ping a public IP address.
- Ping a domain name.
- Identify the first failing stage.
Common DHCP Problems
Recognise failures in connectivity, scopes and configuration.
| Problem | Likely Result |
|---|---|
| Disconnected cable or failed Wi-Fi | No DHCP communication |
| DHCP service stopped | Clients cannot obtain or renew leases |
| Scope exhausted | No free addresses for new clients |
| Wrong scope options | Incorrect gateway or DNS |
| Missing VLAN on a trunk | Client requests never reach the relay or server |
| Missing DHCP relay | Remote subnet clients receive no response |
| Rogue DHCP server | Clients receive unexpected network settings |
| Duplicate manual address | Intermittent communication and conflict warnings |
Problem-Matching Exercise
- Match each symptom to a likely cause.
- Identify which problems affect one client.
- Identify which problems affect an entire subnet.
Structured DHCP Troubleshooting
Work from physical connectivity to service configuration.
- Determine whether one device or many devices are affected.
- Check the cable, Wi-Fi connection and link indicators.
- Run ipconfig /all.
- Check for APIPA or an unexpected subnet.
- Release and renew the lease.
- Verify the DHCP server address.
- Check scope availability.
- Verify gateway and DNS options.
- Check VLAN and relay configuration where applicable.
- Test the gateway, internet and DNS separately.
Problem Isolation Questions
- Does the device have a valid IP address?
- Is DHCP enabled on the client?
- Can the device reach the gateway?
- Can other clients obtain addresses?
- Does the scope contain free addresses?
- Is the correct DHCP server responding?
- Are the VLAN and relay settings correct?
- Are gateway and DNS options correct?
Troubleshooting Exercise
- Disable the lab DHCP service.
- Renew a client address.
- Observe the failure.
- Restore the service.
- Renew again and document the successful result.
Final Project: Diagnose and Resolve a DHCP Problem
Apply the complete beginner troubleshooting workflow.
Project Requirements
- Identify the DHCP client.
- Identify the authorised DHCP server.
- View the client's current configuration.
- Check whether DHCP is enabled.
- Check for an APIPA address.
- Verify the physical or wireless connection.
- Release the current lease.
- Request a renewed lease.
- Check the DHCP-server address.
- Confirm the scope has free addresses.
- Verify exclusions and reservations.
- Verify gateway and DNS options.
- Check DHCP relay when another subnet is involved.
- Check the VLAN scope and gateway.
- Ping the default gateway.
- Test internet routing.
- Test DNS resolution.
- Document the cause and resolution.
Recommended Project Workflow
- Inspect
- Check Link
- View Settings
- Renew
- Check Server
- Check Scope
- Test
- Document
Final Verification Checklist
- The client received an address from the intended subnet.
- The subnet mask is correct.
- The default gateway is correct.
- The DNS server is correct.
- The DHCP-server address is expected.
- The client can reach the gateway.
- The client can reach an external IP where allowed.
- The client can resolve a domain name.
- No duplicate-address warning is present.
- The root cause and corrective action are documented.
Congratulations!
You have completed What is DHCP.
You can now explain DHCP, understand DORA, scopes, pools, leases, exclusions and reservations, view assigned settings on Windows and troubleshoot common DHCP failures.
Continue practising with real network settings and use a structured approach whenever a device cannot obtain a valid address.

