Ask Leo! by Leo A. Notenboom

What is DHCP?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Networking » Network IP Addressing

Summary: DHCP is the protocol computers use to request and receive a "dynamic" IP address.

What is DHCP?

DHCP stands for "Dynamic Host Configuration Protocol".

So I can hear you thinking, "great ... what's that?"

In a nutshell, it's the request your computer makes and the response it receives that assigns it a "dynamic" IP address.

Let's look at that a little more closely.

First, a refresher. Every computer on the internet has an "address". That address is just a number, but it uniquely identifies that computer; no other computer on the internet can have the same address.

There are two types of IP addresses: static and dynamic. Static IP addresses are just that - unchanging. They refer to a particular computer, whether that computer is turned on or not, connected or not. Most typically domain names like "ask-leo.com" map to a single static IP address.

Dynamic IP addresses are assigned to a computer on-the-fly. The most common scenario is dial-up. When you dial-up to your ISP, part of the connection sequence is your computer asking for an IP address, and your ISP assigning it one of the addresses it has available. When you disconnect, that IP address is returned to the list of available addresses and may be reused by another computer when it dials in.

Because most home users tend to turn their computers off, even broadband connections such as DSL and Cable continue to use dynamic addresses. If your computer is off, you don't need an address so someone else might get to use it.

Dynamic addresses are also used by NAT routers. Not necessarily on their internet connection, though it can, but rather on the local area network side. Each computer that you connect to your router will ask for an IP address, and that router will respond with an IP address that's available within your LAN.

The actual DHCP protocol is fairly simple. The computer in need of an IP address broadcasts a request, meaning it sends out a request to anyone who'll listen. That, in essence, says "Hey, anyone? I need an IP address!" By definition on any network (or more correctly, sub-network), there should at most one device who's job it is to answer back "Sure, here ya go, have this one." That's a DHCP server. Along with that answer is additional information as well, such as what machines to ask for domain name (DNS) look-ups and what address to forward all outgoing network traffic, too (the gateway).

In Windows, if your computer doesn't get a response from a DHCP server within a certain amount of time, it will give up or it may fall back to only asking every few minutes. It may "make up" an answer as well. In fact if your IP address begins with "169.", that's probably exactly what's happened; no IP address was assigned, and Windows made one up. And I'll bet your networking and internet don't work.

Related:

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

Article C2070 - June 17, 2004

Was this article helpful? «Yes» «No»

Recent Comments
12 Comments

A1 site to learn networking and its basics.

Posted by: huma at June 26, 2006 10:21 PM

Based on what I've just read about this DHCP thing....and, even this 75 yr old unreconstructed "bookie" i.e. non- techie could understand it, I believe now that dial-up access may have its advantages in anonymity..am I correct? Could you perhaps make it the subject of another column?
Best,
Charlie G.

Posted by: Charlie Griffith at July 20, 2007 7:20 PM

I have a 2 MBps broadband connection which uses a dialer to connect to the internet. Now, when I check whether or not DHCP is enabled through ipconfig, it shows "no" sometimes and "yes" sometimes. What could be a possible reason?

Posted by: Ritwik at December 18, 2007 12:58 AM

wonderful information about DHCP protocol , thank you Leo.
http://www.fosdir.com

Posted by: peter at June 20, 2008 9:34 PM

how to set up my home network

Posted by: shaikh at December 20, 2008 2:18 AM

Post a comment on "What is DHCP?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!