DHCP

2.4 Explain common network configuration concepts

📘CompTIA A+ Core 1 (220-1201)


DHCP (Dynamic Host Configuration Protocol)

What is DHCP?

DHCP is a network service that automatically assigns IP configuration information to devices on a network.

When a device (PC, laptop, phone, printer, server) connects to a network, it needs:

  • IP address
  • Subnet mask
  • Default gateway
  • DNS server

DHCP provides these settings automatically, without manual configuration.

Why DHCP is Important

  • Prevents IP address conflicts
  • Saves time for administrators
  • Ensures consistent network settings
  • Makes large networks easier to manage

Without DHCP, every device would need to be manually configured.


How DHCP Works (Exam-Important)

DHCP follows a four-step process, often remembered as DORA:

  1. Discover – Client broadcasts a request asking for an IP address
  2. Offer – DHCP server offers an available IP address
  3. Request – Client requests the offered IP address
  4. Acknowledge – Server confirms and leases the IP address

This process happens automatically when a device joins the network.


DHCP Leases

What is a DHCP Lease?

A lease is the temporary assignment of an IP address to a device.

  • The IP address is not permanent
  • It is assigned for a specific period of time
  • When the lease expires, it can be renewed or reassigned

Lease Duration

  • Common lease times: hours, days, or weeks
  • Configured on the DHCP server

Lease Renewal

  • The client attempts to renew the lease at 50% of the lease time
  • If successful, the same IP address is kept
  • If unsuccessful and the lease expires, the client must request a new IP address

Why Leases Are Important

  • Efficient use of IP addresses
  • Prevents unused addresses from being locked
  • Allows devices to move between networks

DHCP Reservations

What is a DHCP Reservation?

A DHCP reservation assigns a specific IP address to a specific device, based on its MAC address.

  • The IP is always the same
  • Still managed by DHCP
  • The device does not change IP addresses

Common Devices That Use Reservations

  • Servers
  • Network printers
  • Network appliances
  • Cameras
  • Network management systems

Reservation vs Static IP (Exam Tip)

FeatureDHCP ReservationStatic IP
Managed by DHCPYesNo
IP consistencyYesYes
Risk of conflictLowHigher
Recommended by CompTIAYesNo (for most devices)

CompTIA prefers DHCP reservations over manual static IPs.


DHCP Scope

What is a DHCP Scope?

A scope defines the range of IP addresses that a DHCP server can assign.

A scope includes:

  • IP address range (start and end)
  • Subnet mask
  • Default gateway
  • DNS servers
  • Lease duration

Example Scope (Conceptual)

  • Network: 192.168.1.0/24
  • Assignable range: 192.168.1.50 – 192.168.1.200

Key Points About Scopes

  • Each network needs its own scope
  • A DHCP server can have multiple scopes
  • Scopes control how IP addresses are distributed

Why Scopes Matter

  • Prevents IP overlap
  • Organizes network address management
  • Ensures correct network configuration

DHCP Exclusions

What are DHCP Exclusions?

Exclusions are IP addresses within a scope that the DHCP server will not assign.

Why Exclusions Are Used

  • Reserved for devices using static IPs
  • Prevents DHCP from assigning addresses already in use
  • Avoids IP address conflicts

Example Exclusion Range

  • Scope: 192.168.1.1 – 192.168.1.254
  • Exclusion: 192.168.1.1 – 192.168.1.20

These excluded addresses can be used for:

  • Routers
  • Firewalls
  • Servers
  • Network devices

Exam Tip

Exclusions do not assign IPs—they block DHCP from using certain addresses.


DHCP Key Exam Comparison (Very Important)

FeaturePurpose
LeaseTemporary IP assignment
ReservationPermanent IP via DHCP
ScopeRange of assignable IP addresses
ExclusionIPs DHCP must not use

Common DHCP Issues (Exam-Relevant)

Device Not Getting an IP Address

Possible causes:

  • DHCP server offline
  • Scope exhausted
  • Network connectivity issue

Duplicate IP Address Error

Possible causes:

  • Static IP inside DHCP scope
  • Missing exclusion
  • Improper network configuration

Key Exam Takeaways (Memorize)

  • DHCP automatically assigns IP configuration
  • Leases are temporary
  • Reservations provide consistent IPs using MAC addresses
  • Scopes define which IPs can be assigned
  • Exclusions prevent DHCP from using certain IPs
  • DHCP reduces configuration errors and administrative work
Buy Me a Coffee