Skip to content
NetworkingAdvanced

What Is DHCP? How Dynamic Host Configuration Protocol Works

QUICK ANSWER DHCP stands for Dynamic Host Configuration Protocol. It is a network protocol that automatically assigns IP addresses and other network settings...

BI
Bison Technical Team Enterprise IT specialists
Updated 03 Sep 2026 15 min read 0 total views

QUICK ANSWER

DHCP stands for Dynamic Host Configuration Protocol. It is a network protocol that automatically assigns IP addresses and other network settings to computers, smartphones, printers, servers, and other devices when they connect to a network.

Instead of manually entering an IP address, subnet mask, default gateway, and DNS server on every device, a DHCP server provides these settings automatically.

Advertisement

In most home and small-office networks, the router acts as the DHCP server.

A typical DHCP assignment may look like this:

IP Address:      192.168.1.105
Subnet Mask:     255.255.255.0
Default Gateway: 192.168.1.1
DNS Server:      192.168.1.1

DHCP simplifies network administration, reduces configuration errors, and helps prevent duplicate IP address problems.


3. COMPLETE ARTICLE

What Is DHCP?

DHCP, or Dynamic Host Configuration Protocol, is a networking protocol used to automatically configure devices on an IP network.

Whenever a computer, laptop, smartphone, printer, IP camera, or other device joins a network, it normally needs several settings before it can communicate properly.

These settings commonly include:

  • IP address
  • Subnet mask
  • Default gateway
  • DNS server
  • Domain information
  • Lease duration
  • Additional network configuration options

DHCP allows these settings to be supplied automatically.

Without DHCP, an administrator would need to manually configure network settings on every device.


Why Is DHCP Needed?

Every device communicating using Internet Protocol requires an IP address.

For example:

192.168.1.25

If two devices accidentally use the same IP address, an IP address conflict may occur.

Manually configuring hundreds of computers can therefore become difficult and error-prone.

DHCP solves this problem by centrally managing IP address allocation.

For example, a router may be configured with the following DHCP pool:

192.168.1.100 to 192.168.1.200

When devices connect to the network, the DHCP server assigns available addresses from this range.

A laptop might receive:

192.168.1.101

A desktop computer might receive:

192.168.1.102

A mobile phone might receive:

192.168.1.103

The DHCP server keeps track of these assignments.


What Information Can DHCP Provide?

DHCP can provide more than just an IP address.

Common DHCP settings include:

DHCP Setting Purpose
IP Address Identifies the device on the network
Subnet Mask Defines which addresses belong to the local network
Default Gateway Tells the device where to send traffic outside the local network
DNS Server Converts domain names such as example.com into IP addresses
Lease Time Defines how long the device may use the assigned IP
Domain Name Can provide the local network domain
NTP Server Can provide time synchronization information in supported environments
Additional Options DHCP supports many optional network parameters

The exact information supplied depends on how the DHCP server has been configured.


How DHCP Works

When a device connects to a network, it initially may not know:

  • its IP address;
  • the network gateway;
  • the DNS server;
  • where the DHCP server is located.

DHCP therefore uses a discovery process.

The standard DHCP address-assignment process is commonly remembered using the acronym:

DORA

DORA stands for:

Discover
Offer
Request
Acknowledge

Step 1: DHCP Discover

When a device connects to the network, it sends a DHCP Discover message.

The device is essentially asking:

Is there a DHCP server available that can give me network settings?

Because the client does not yet know its network configuration, the message is normally broadcast on the local network.


Step 2: DHCP Offer

A DHCP server receives the request and responds with a DHCP Offer.

The offer may contain information such as:

IP Address:      192.168.1.105
Subnet Mask:     255.255.255.0
Default Gateway: 192.168.1.1
DNS Server:      192.168.1.1
Lease Time:      24 Hours

There may occasionally be more than one DHCP server capable of responding.


Step 3: DHCP Request

The client sends a DHCP Request indicating that it wants to use the offered configuration.

This also informs other DHCP servers that may have made offers that their addresses were not selected.


Step 4: DHCP Acknowledge

The DHCP server sends a DHCP Acknowledgement, commonly called DHCP ACK.

The device can then configure its network interface and begin normal communication.

The process can therefore be summarized as:

Client → DHCP Discover
Server → DHCP Offer
Client → DHCP Request
Server → DHCP Acknowledge

What Is a DHCP Server?

A DHCP server is the device or service responsible for assigning network configuration to DHCP clients.

A DHCP server can run on many platforms.

Examples include:

  • Home router
  • Business firewall
  • Windows Server
  • Linux server
  • Dedicated network appliance
  • Enterprise router
  • Layer 3 network equipment

In most home networks, the broadband router normally performs this role automatically.


What Is a DHCP Client?

A DHCP client is any device configured to obtain its IP address automatically.

Common DHCP clients include:

  • Windows computers
  • Linux computers
  • Mac computers
  • Smartphones
  • Tablets
  • Smart TVs
  • Network printers
  • IP cameras
  • VoIP phones
  • IoT devices

For example, Windows commonly displays the setting as:

Obtain an IP address automatically

When this option is enabled, Windows acts as a DHCP client.


What Is a DHCP Scope?

A DHCP scope defines the range of IP addresses that a DHCP server is allowed to distribute.

For example:

Network: 192.168.1.0/24
DHCP Start Address: 192.168.1.100
DHCP End Address:   192.168.1.200

The DHCP server may therefore assign addresses between:

192.168.1.100

and:

192.168.1.200

The range is commonly called the:

  • DHCP scope;
  • DHCP pool;
  • address pool.

What Is DHCP Lease Time?

DHCP normally does not permanently give an IP address to a device.

Instead, the address is assigned for a specified period called a lease.

For example:

Lease Duration: 24 Hours

Before the lease expires, the client normally attempts to renew it.

If the client remains connected and the address remains available, the DHCP server may allow it to continue using the same address.

This is why your computer often receives the same IP address repeatedly even though the address was assigned dynamically.


Dynamic IP Address vs Static IP Address

A DHCP-assigned IP address is generally considered a dynamic IP address.

A static IP address is manually configured or otherwise reserved so the device consistently uses the same address.

Example

Dynamic DHCP configuration:

IP address: Automatically assigned

Static configuration:

IP Address:      192.168.1.20
Subnet Mask:     255.255.255.0
Gateway:         192.168.1.1
DNS Server:      192.168.1.1

DHCP vs Static IP

Feature DHCP Static IP
Configuration Automatic Usually manually configured
Administration Easier Requires more planning
IP May Change Yes Normally no
Risk of Manual IP Conflicts Lower Higher if poorly managed
Common Use Client devices Servers and infrastructure
Central Management Yes Depends on implementation

For ordinary computers and mobile devices, DHCP is generally preferable.

Static or consistently assigned addresses are often used for infrastructure such as:

  • Servers
  • Network printers
  • NAS devices
  • Routers
  • Firewalls
  • CCTV recorders
  • Network controllers

What Is a DHCP Reservation?

A DHCP reservation combines some advantages of DHCP and static addressing.

The DHCP administrator can configure the server so that a particular device always receives the same IP address.

The reservation is usually associated with the device's network adapter identifier, commonly its MAC address.

For example:

Printer MAC Address: 00-11-22-33-44-55
Reserved IP:         192.168.1.50

Whenever that printer requests DHCP configuration, the server can assign:

192.168.1.50

This is especially useful for:

  • Network printers
  • NAS devices
  • IP cameras
  • Servers
  • Access points
  • Other devices that should have predictable addresses

DHCP Reservation vs Static IP

Both methods can provide a consistent IP address, but they work differently.

Static IP

The address is manually configured on the device itself.

DHCP Reservation

The device still uses DHCP, but the DHCP server always assigns the same address.

For many managed networks, DHCP reservations can be easier to administer because addressing remains centrally controlled.


Which Ports Does DHCP Use?

IPv4 DHCP communication typically uses UDP.

The commonly used ports are:

UDP Port 67 — DHCP Server
UDP Port 68 — DHCP Client

This information is useful when diagnosing firewall, VLAN, DHCP relay, or network connectivity problems.


What Happens If DHCP Is Not Working?

If a device cannot contact a DHCP server, it may fail to obtain normal network configuration.

On Windows, one possible result is an automatically assigned address from the APIPA range:

169.254.x.x

For example:

169.254.25.17

An address in the 169.254.x.x range commonly indicates that Windows could not obtain an IPv4 address from a DHCP server and assigned itself a link-local address.

A computer with this address may communicate with some devices on the same link but normally will not have standard connectivity to the rest of the network or internet without additional configuration.


How to Check DHCP Configuration in Windows

Open Command Prompt and run:

ipconfig /all

Look for information such as:

DHCP Enabled. . . . . . . . . . : Yes
IPv4 Address. . . . . . . . . . : 192.168.1.105
Subnet Mask . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . : 192.168.1.1

If:

DHCP Enabled: Yes

the computer is configured to obtain its network configuration through DHCP.


How to Release and Renew a DHCP Address in Windows

If a Windows computer is experiencing an IP-address assignment problem, an administrator or support technician may release and request a new lease.

Open Command Prompt and run:

ipconfig /release

This releases the current DHCP-assigned IPv4 configuration.

Then run:

ipconfig /renew

Windows requests new DHCP configuration.

Important

Running ipconfig /release can temporarily disconnect the computer from the network.

Do not perform this unnecessarily on a remote computer unless you have another method of accessing the system, because the remote session may disconnect.


How to Check Whether Windows Is Using DHCP

You can check through either Command Prompt or Windows network settings.

Using Command Prompt

Run:

ipconfig /all

Check:

DHCP Enabled

Using Windows Settings

Depending on the Windows version:

  1. Open Settings.
  2. Open Network & Internet.
  3. Select Ethernet or Wi-Fi.
  4. Locate IP assignment settings.
  5. Check whether IP assignment is set to automatic or DHCP.

The exact wording may vary between Windows versions.


What Is a DHCP Relay?

DHCP discovery traffic is normally broadcast locally.

Routers generally do not forward ordinary broadcast traffic between IP networks.

In networks containing multiple VLANs or subnets, a DHCP relay can forward DHCP requests to a DHCP server located on another network.

For example:

VLAN 10: 192.168.10.0/24
VLAN 20: 192.168.20.0/24

DHCP Server: 192.168.1.10

A DHCP relay configured on the router or Layer 3 switch can forward requests from VLAN 10 and VLAN 20 to the central DHCP server.

This makes it possible to manage several subnets from one DHCP server.


What Is DHCP Snooping?

DHCP snooping is a network security feature available on many managed switches.

It can help protect a network against unauthorized or rogue DHCP servers.

For example, an attacker or incorrectly configured router connected to a corporate network might start providing incorrect DHCP settings.

A rogue DHCP server could potentially provide an incorrect:

  • Default gateway
  • DNS server
  • IP configuration

DHCP snooping can restrict which switch ports are trusted to send DHCP server responses.

This is mainly an enterprise-network feature and should be configured carefully because incorrect settings can prevent legitimate clients from obtaining addresses.


What Is a Rogue DHCP Server?

A rogue DHCP server is an unauthorized or incorrectly configured DHCP server operating on a network.

For example, someone may connect a consumer Wi-Fi router to an office network with its DHCP service enabled.

Both the company DHCP server and the accidental router could then respond to DHCP requests.

Users may receive incorrect settings such as:

Wrong gateway
Wrong DNS server
Wrong subnet
Wrong IP range

This can cause intermittent or confusing network problems.

On business networks, DHCP servers should therefore be carefully controlled.


Common DHCP Problems

1. Computer Gets a 169.254 Address

Example:

169.254.10.25

Possible causes include:

  • DHCP server unavailable
  • Network cable disconnected
  • Wi-Fi connection problem
  • Router failure
  • VLAN configuration problem
  • DHCP scope exhausted
  • Firewall or relay configuration issue

2. DHCP Scope Is Full

Suppose a DHCP pool contains only:

192.168.1.100 – 192.168.1.120

Only a limited number of addresses are available.

If all addresses are leased, new devices may be unable to obtain an address.

The administrator may need to:

  • identify unused leases;
  • shorten an excessively long lease duration;
  • expand the DHCP scope;
  • redesign the subnet if necessary.

3. Duplicate IP Address

Duplicate addresses can occur when static IP addresses have been manually configured inside the DHCP pool.

Example:

DHCP pool:

192.168.1.100 – 192.168.1.200

A user manually configures:

192.168.1.120

The DHCP server may later attempt to allocate the same address to another device.

A safer design is to keep manually configured infrastructure addresses outside the dynamic DHCP pool or manage them using reservations where appropriate.


4. Wrong Default Gateway

A DHCP server may be operating normally but distributing an incorrect gateway.

For example:

Assigned Gateway: 192.168.1.254
Actual Router:     192.168.1.1

Clients may communicate locally but fail to reach other networks or the internet.


5. Wrong DNS Server

Incorrect DNS settings can create situations where the network appears connected but websites cannot be accessed by name.

For example:

ping 8.8.8.8

may work while:

ping example.com

fails.

The DNS configuration supplied by DHCP should then be investigated.


6. Multiple DHCP Servers

Unexpected DHCP servers are a common source of intermittent networking problems.

Different clients may receive settings from different servers.

Administrators should verify which DHCP server assigned the configuration.

On Windows:

ipconfig /all

Look for:

DHCP Server

DHCP in Home Networks

In a normal home setup, the Wi-Fi router commonly performs several functions:

  • Router
  • NAT gateway
  • Firewall
  • Wireless access point
  • DHCP server
  • Sometimes DNS forwarding

Example:

Router IP:      192.168.1.1
DHCP Pool:      192.168.1.100 – 192.168.1.200
Lease Duration: 24 Hours

When your laptop connects, the router may assign:

192.168.1.105

DHCP in Business Networks

Business environments can use dedicated DHCP infrastructure.

For example:

Windows Server DHCP

may provide addresses to hundreds or thousands of computers.

Organizations may configure separate scopes for:

  • Office PCs
  • Wi-Fi users
  • IP phones
  • Printers
  • CCTV
  • Guest Wi-Fi
  • Servers
  • Different departments
  • Different VLANs

Central DHCP management can significantly simplify network administration.


Advantages of DHCP

Automatic Configuration

Devices receive network configuration automatically.

Reduced Administrative Work

Administrators do not need to manually configure every workstation.

Fewer IP Conflicts

Central address allocation reduces accidental duplicate addresses.

Easier Network Changes

If the DNS server or gateway changes, the DHCP configuration can be updated centrally.

Clients can receive the new values during lease renewal.

Better Address Utilization

Addresses can be reused when devices leave the network and their leases expire.

Centralized Management

Administrators can manage addressing from one location.


Limitations of DHCP

DHCP is extremely useful, but it also has limitations.

Dependence on DHCP Availability

If the DHCP infrastructure fails, new devices may not obtain proper network configuration.

Dynamic Addresses Can Change

A dynamically assigned address may change over time.

Applications requiring a consistent address may therefore need a reservation or static configuration.

Incorrect DHCP Configuration Can Affect Many Devices

A wrong DNS server, gateway, or subnet configuration distributed through DHCP can affect an entire network.

Rogue DHCP Servers Can Cause Problems

Unauthorized DHCP servers may distribute incorrect network settings.


DHCP Best Practices

For business networks, consider the following practices:

  • Maintain clear documentation of DHCP scopes.
  • Keep appropriate addresses available for infrastructure.
  • Use DHCP reservations where predictable addressing is required.
  • Avoid manually assigning static addresses inside dynamic DHCP pools.
  • Monitor DHCP scope utilization.
  • Configure appropriate lease durations.
  • Use redundant DHCP infrastructure where availability is critical.
  • Secure enterprise switching environments against rogue DHCP servers where supported.
  • Carefully document VLAN-to-scope mappings.
  • Regularly review obsolete reservations and leases.

When Should You Use DHCP?

DHCP is appropriate for most client devices, including:

  • Employee PCs
  • Laptops
  • Smartphones
  • Tablets
  • Guest devices
  • Wi-Fi clients

It is particularly useful where devices frequently join and leave the network.


When Might a Fixed IP Be Preferable?

Devices accessed regularly by IP address may require predictable addressing.

Examples include:

  • Servers
  • NAS devices
  • Network printers
  • CCTV recorders
  • Routers
  • Firewalls
  • Managed switches
  • Access points

A DHCP reservation is often a convenient alternative to manually configuring a static IP address.


Simple DHCP Network Example

Consider a small office.

Router:

192.168.10.1

DHCP pool:

192.168.10.100 – 192.168.10.200

Laptop 1 receives:

192.168.10.101

Laptop 2 receives:

192.168.10.102

Desktop receives:

192.168.10.103

Network printer has a DHCP reservation:

192.168.10.20

The DHCP server automatically manages workstation addresses while the printer maintains a predictable address.


4. FAQ

1. What does DHCP stand for?

DHCP stands for Dynamic Host Configuration Protocol.

2. What is the main purpose of DHCP?

Its main purpose is to automatically provide IP addresses and other network settings to devices.

3. Does DHCP provide only an IP address?

No. DHCP can also provide settings such as the subnet mask, default gateway, DNS servers, lease duration, and other network options.

4. Where is the DHCP server in a home network?

In most home networks, the internet or Wi-Fi router acts as the DHCP server.

5. What is DHCP DORA?

DORA describes the common DHCP assignment sequence:

Discover
Offer
Request
Acknowledge

6. What ports does DHCP use?

For IPv4 DHCP, the server normally uses UDP port 67 and clients use UDP port 68.

7. What is a DHCP lease?

A DHCP lease is the period for which a client is allowed to use an assigned IP address.

8. Does DHCP always give a device the same IP address?

Not necessarily. The device may receive the same address repeatedly, but DHCP does not normally guarantee it unless a reservation has been configured.

9. What is a DHCP reservation?

A DHCP reservation instructs the DHCP server to consistently assign a particular IP address to a particular device.

10. Is DHCP better than static IP addressing?

For most client devices, DHCP is easier to manage. Static or reserved addresses are more appropriate for devices requiring predictable network addresses.

11. What does a 169.254 IP address mean?

On Windows and other systems supporting link-local IPv4 addressing, a 169.254.x.x address commonly indicates that the device did not obtain a normal DHCP address and assigned itself a link-local address.

12. How can I check my DHCP server in Windows?

Open Command Prompt and run:

ipconfig /all

Look for the DHCP Server entry.

13. How can I renew my DHCP IP address?

On Windows, you can run:

ipconfig /renew

The computer will request DHCP configuration.

14. Can two DHCP servers exist on the same network?

Yes, but they must be intentionally configured to work correctly. An unintended second DHCP server can cause serious connectivity problems.

15. Can DHCP assign DNS servers?

Yes. DNS server addresses are among the most commonly distributed DHCP options.

16. Can DHCP work across different VLANs?

Yes. A DHCP relay can forward DHCP requests from one subnet or VLAN to a DHCP server located on another network.

17. Should servers use DHCP?

Servers may use static addresses or DHCP reservations depending on the network design. The important requirement is usually that their address remains predictable.

18. What happens if the DHCP server fails?

Existing clients may continue working until their leases require renewal, but new devices may be unable to obtain correct network configuration.

19. What is DHCP scope exhaustion?

Scope exhaustion occurs when all available addresses in the DHCP pool have already been allocated and no address remains for a new client.

20. Is DHCP secure?

DHCP itself was designed primarily for automatic network configuration rather than strong authentication. Enterprise networks can use additional controls, such as DHCP snooping and network access controls, to reduce risks from unauthorized DHCP servers.


5. FINAL RECOMMENDATION / CONCLUSION

DHCP is one of the fundamental services used in modern IP networks.

It automatically supplies devices with essential network configuration such as:

IP Address
Subnet Mask
Default Gateway
DNS Server

For home users and most client computers, DHCP should normally remain enabled because it significantly simplifies networking.

In business environments, DHCP should be planned carefully. Administrators should properly design scopes, avoid overlapping static addresses, monitor available leases, use reservations for devices requiring consistent addresses, and protect the network against unauthorized DHCP servers.

When troubleshooting network connectivity, checking the DHCP configuration with:

ipconfig /all

is often one of the first and most useful diagnostic steps.

 

#DHCP #Networking #DynamicHostConfigurationProtocol #IPAddress #DHCPServer #DHCPClient #NetworkAdministration #NetworkTroubleshooting #DORA #DHCPLease #DHCPReservation #DHCPPool #DHCPScope #StaticIP #DynamicIP #IPAddressing #WindowsNetworking #WindowsServer #Router #WiFi #LAN #TCPIP #IPv4 #DNS #DefaultGateway #SubnetMask #IPConfiguration #NetworkConfiguration #DHCPRelay #VLAN #DHCPSnooping #NetworkSecurity #RogueDHCP #APIPA #IPConflict #NetworkSupport #ITSupport #NetworkEngineer #SystemAdministrator #Windows11 #CommandPrompt #IPConfig #NetworkBasics #ComputerNetworking #DHCPPorts #UDP67 #UDP68 #NetworkInfrastructure #ITKnowledgebase #TechnicalSupport

YOUR FEEDBACK

Was this guide useful?

Your answer helps us keep BISONKB accurate and practical.

THE BISON BRIEF

Practical IT knowledge, once a week.

New troubleshooting guides, scripts and infrastructure notes. No noise.

By subscribing, you agree to our privacy policy.