
Glossary: What is DHCP?

What is DHCP? It assigns IP addresses dynamically
The answer to “What is DHCP?” is that it’s the standard mechanism to dynamically assign IP addresses within a network. It stands for Dynamic Host Configuration Protocol.
IP, or Internet Protocol, addressing is a logical means of assigning addresses to devices on a network. Each device connected to a network requires a unique IP address.
At home, dynamic host configuration protocol (DHCP) assigns IP addresses to your smartphones, laptops, tablets, and devices like doorbell cameras. When you use wifi on your home network, typically your router is a DHCP server.
In a large enterprise setting, a DHCP server is usually a dedicated computer. By simplifying IP address management, it saves money, is more secure, and doesn’t eat up valuable admin time.
In this glossary entry, we’ll explore the fundamentals of how DHCP works. Then, we’ll take a deeper look at two aspects: dynamic addressing and the communications protocol.
How does DHCP work?
DHCP is a network management protocol. A client device (or DHCP client), such as a laptop, joins a network and requests an IP address. The request is made to a DHCP server.
These servers are often configured with redundancy—often called DHCP failover —or clustering among other network servers. Servers can run on both IPv4 and IPv6 networks.

The server will quickly and automatically assign an IP address and some related network configuration parameters. Once the device has accepted the assignment, it can communicate with both the internal network and the public internet.
Relevant parameters
In addition to assigning IP addresses, these servers also provide relevant parameters, known as DHCP options. The Internet Assigned Numbers Authority (IANA), the global coordinator of IP addresses, defines available DHCP parameters .
Options number in the hundreds. Key among them is how long the IP address can be used—known as the lease time. They also include the default gateway, its subnet mask, and its DNS server.
Some additional definitions
To clarify, let’s quickly define some of these terms we just mentioned:
- A default gateway transfers data back and forth between the local network and the internet, or between local subnets.
- IP networking uses a subnet mask to separate the host address and the network address portions of an IP address.
- A DNS server resolves names to IP addresses, translating domain names that we easily remember, like bluecatnetworks.com, into IP addresses like 104.239.197.100.
Dynamic IP addressing with DHCP
The assignment of IP addresses happens dynamically within a given address range. As a result, a device connected to the network doesn’t have a forever address. The IP address can periodically change as its lease time expires unless the lease is successfully renewed.
For services that always need to be on, a static IP address is often a better option. Corporate enterprises commonly use static IP addresses for hardware like mail servers. Certainly, a DHCP server should have a static IP address.
However, there are drawbacks to dedicating a specific IP address to a device or service. A network administrator must manually assign, configure, and track the IP address. It’s a time-consuming task. Oftentimes, it requires the admin to physically be with the device.
Meanwhile, dynamic IP addresses are usually the preferred choice because they:
- Cost less to manage than static IP addresses;
- May offer more privacy and security with a constantly changing IP address; and
- Don’t require manual administration when a device roams from one subnet to another.
DHCP communications protocol
Communications to fulfill a DHCP request involves both the server and client. Furthermore, a relay agent or IP helper often facilitates communication between the two. Relay agents receive broadcast DHCP messages from clients and then re-send those messages with configuration information to servers.

Communication happens via small units of data, called packets, that are routed through a network. Networking protocols like IP govern all its rules.
Most of the time, communication occurs in four steps. Briefly, they are:
- A discover packet is sent from the client to the server.
- The server replies to the client with a DHCP offer packet containing an IP address.
- The client receives and validates the offer, then sends a request packet back to the server to accept the address.
- The server sends an acknowledgement packet back to the client to confirm the chosen IP address.
With this in mind, one final point: DHCP alongside DNS and IP address management ( IPAM ) are together known as DDI. Want to know how to define DDI or how it works to form a complete management solution? The BlueCat platform is the place to start.
Related content

Automating DHCP reservations at a U.S. government agency
BlueCat worked with a large U.S. government agency to bring automation to a task they perform over and over, all day long: DHCP reservations.

eBook: Network Rising
The gap between what the network team can deliver and what end-users need continues to widen. You need back-end DNS that supports all of your initiatives.

Technical Know-How: Deploying DDNS with BlueCat
Dynamic DNS automatically updates DNS records when an IP address changes. Learn how to deploy DDNS on the BlueCat Address Manager and DNS/DHCP server.

eBook: The Cost of Free
This eBook outlines the journey from the functional to the inevitable, when you realize your free DNS is anything but. See how both tactical and strategic…

- Privacy Overview
- 3rd Party Cookies
- Additional Cookies
- Cookie Policy
Cookies are good for you. Not the eatable kind. (We wish.) The type of cookie we use on this website to improve your experience. This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
To consent, just click on the 'Accept' button.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
This website uses additional cookies
You can find more information about our Cookie Policy on our privacy policy page.
Change TCP/IP settings
TCP/IP defines how your PC communicates with other PCs.
To make it easier to manage TCP/IP settings, we recommend using automated Dynamic Host Configuration Protocol (DHCP). DHCP automatically assigns Internet Protocol (IP) addresses to the computers on your network if your network supports it. If you use DHCP, then you don't have to change your TCP/IP settings if you move your PC to another location, and DHCP doesn't require you to manually configure TCP/IP settings, such as Domain Name System (DNS) and Windows Internet Name Service (WINS).
To enable DHCP or change other TCP/IP settings
Select Start , then type settings . Select Settings > Network & internet .
Do one of the following:
For a Wi-Fi network, select Wi-Fi > Manage known networks . Choose the network for which you want to change the settings.
For an Ethernet network, select Ethernet , then select the Ethernet network you’re connected to.
Next to IP assignment , select Edit .
Under Edit network IP settings or Edit IP settings , select Automatic (DHCP) or Manual .
To specify IPv4 settings manually
Under Edit network IP settings or Edit IP settings , choose Manual , then turn on IPv4 .
To specify an IP address, in the IP address, Subnet mask , and Gateway boxes, type the IP address settings.
To specify a DNS server address, in the Preferred DNS and Alternate DNS boxes, type the addresses of the primary and secondary DNS servers.
To specify if you want to use an encrypted (DNS over HTTPS) or unencrypted connection to the DNS server or servers you specify, for DNS over HTTPS , choose the setting you want:
Off : All DNS queries will be sent to the DNS server unencrypted in plaintext over HTTP.
On (automatic template) : DNS queries will be encrypted and sent to the DNS server over HTTPS. DNS queries will use the default settings for the automatic template or try to discover them automatically.
On (manual template) : DNS queries will be encrypted and sent to the DNS server over HTTPS. They’ll use the settings you enter in the DNS over HTTPS template box.
If you use DNS over HTTPS (automatic or manual template), turn Fallback to plaintext on or off:
When it’s turned on, a DNS query will be sent unencrypted if it can’t be sent over HTTPS.
When it’s turned off, a DNS query won’t be sent if it can’t be sent over HTTPS.
To specify IPv6 settings manually
Under Edit network IP settings or Edit IP settings , choose Manual , then turn on IPv6 .
To specify an IP address, in the IP address , Subnet prefix length , and Gateway boxes, type the IP address settings.
When you select Automatic (DHCP) , the IP address settings and DNS server address setting are set automatically by your router or other access point (recommended).
When you select Manual , you can manually set your IP address settings and DNS server address.
When you’re done, select Save .
Note: To install IPv4, run Command Prompt as an administrator, type netsh interface ipv4 install , and then press Enter .
Select Start , then select Settings > Network & Internet .
For a Wi-Fi network, select Wi-Fi > Manage known networks . Choose the network you want to change the settings for, then select Properties.
For an Ethernet network, select Ethernet , then select the Ethernet network you’re connected to.
Under IP assignment , select Edit .
Under Edit IP settings , select Automatic (DHCP) or Manual .
Under Edit IP settings , choose Manual , then turn on IPv4 .
To specify an IP address, in the IP address, Subnet prefix length , and Gateway boxes, type the IP address settings.
To specify a DNS server address, in the Preferred DNS and Alternate DNS boxes, type the addresses of the primary and secondary DNS servers.
Under Edit IP settings , choose Manual , then turn on IPv6 .
When you select Automatic (DHCP) , the IP address settings and DNS server address setting are set automatically by your router or other access point (recommended).
When you select Manual , you can manually set your IP address settings and DNS server address.
When you’re done, select Save .
In Windows 8.1, select the Start button, start typing View network connections , and then select View network connections in the list.
In Windows 7, open Network Connections by selecting the Start button, and then selecting Control Panel . In the search box, type adapter , and then, under Network and Sharing Center , select View network connections .
Right-click the connection that you want to change, and then select Properties . If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
Select the Networking tab. Under This connection uses the following items , select either Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) , and then select Properties .
To specify IPv4 IP address settings, do one of the following:
To get IP settings automatically using DHCP, select Obtain an IP address automatically , and then select OK .
To specify an IP address, select Use the following IP address , and then, in the IP address, Subnet mask , and Default gateway boxes, type the IP address settings.
To specify IPv6 IP address settings, do one of the following:
To get IP settings automatically using DHCP, select Obtain an IPv6 address automatically , and then select OK .
To specify an IP address, select Use the following IPv6 address , and then, in the IPv6 address, Subnet prefix length , and Default gateway boxes, type the IP address settings.
To specify DNS server address settings, do one of the following:
To get a DNS server address automatically using DHCP, select Obtain DNS server address automatically , and then select OK .
To specify a DNS server address, select Use the following DNS server addresses , and then, in the Preferred DNS server and Alternate DNS server boxes, type the addresses of the primary and secondary DNS servers.
To change advanced DNS, WINS, and IP settings, select Advanced .

Need more help?
Join the discussion.
ASK THE COMMUNITY >
Get support
CONTACT US >
Was this information helpful?
Thank you for your feedback.
Show Contents
Assign an IP address using DHCP
You can assign an IP address using Dynamic Host Configuration Protocol (DHCP). DHCP is an Internet protocol for automating the configuration of computers that use IP. You can use DHCP to automatically assign IP addresses and deliver IP stack configuration parameters.
All products that have a cellular (WAN) interface ship with static IP address for the Ethernet port of 192.168.1.1 and DHCP server enabled by default. All products that only have an Ethernet or Wi-Fi (LAN) interface ship with DHCP client enabled by default.
If desired, set up a permanent entry for the Digi device device on a DHCP server. While this is not necessary to obtain an IP address via DHCP, setting up a permanent entry saves the IP address when the device is rebooted.
For more information on DHCP server configuration, see DHCP server settings .
© 2022 Digi International Inc. All rights reserved. Assign an IP address using DHCP updated on 02 Jul 2018 01:20 PM
- Data Structure & Algorithm Classes (Live)
- System Design (Live)
- DevOps(Live)
- Explore More Live Courses
- Interview Preparation Course
- Data Science (Live)
GATE CS & IT 2024
- Data Structure & Algorithm-Self Paced(C++/JAVA)
- Data Structures & Algorithms in Python
- Explore More Self-Paced Courses
- C++ Programming - Beginner to Advanced
- Java Programming - Beginner to Advanced
- C Programming - Beginner to Advanced
- Full Stack Development with React & Node JS(Live)
- Java Backend Development(Live)
- Android App Development with Kotlin(Live)
- Python Backend Development with Django(Live)
- Complete Data Science Program(Live)
- Mastering Data Analytics
DevOps Engineering - Planning to Production
Cbse class 12 computer science.
- School Guide
- All Courses
- Linked List
- Binary Tree
- Binary Search Tree
- Advanced Data Structure
- All Data Structures
- Asymptotic Analysis
- Worst, Average and Best Cases
- Asymptotic Notations
- Little o and little omega notations
- Lower and Upper Bound Theory
- Analysis of Loops
- Solving Recurrences
- Amortized Analysis
- What does 'Space Complexity' mean ?
- Pseudo-polynomial Algorithms
- Polynomial Time Approximation Scheme
- A Time Complexity Question
- Searching Algorithms
- Sorting Algorithms
- Graph Algorithms
- Pattern Searching
- Geometric Algorithms
- Mathematical
- Bitwise Algorithms
- Randomized Algorithms
- Greedy Algorithms
- Dynamic Programming
- Divide and Conquer
- Backtracking
- Branch and Bound
- All Algorithms
- Company Preparation
- Practice Company Questions
- Interview Experiences
- Experienced Interviews
- Internship Interviews
- Competitive Programming
- Design Patterns
- System Design Tutorial
- Multiple Choice Quizzes
- Go Language
- Tailwind CSS
- Foundation CSS
- Materialize CSS
- Semantic UI
- Angular PrimeNG
- Angular ngx Bootstrap
- jQuery Mobile
- jQuery EasyUI
- React Bootstrap
- React Rebass
- React Desktop
- React Suite
- ReactJS Evergreen
- ReactJS Reactstrap
- BlueprintJS
- TensorFlow.js
- English Grammar
- School Programming
- Number System
- Trigonometry
- Probability
- Mensuration
- Class 8 Syllabus
- Class 9 Syllabus
- Class 10 Syllabus
- Class 11 Syllabus
- Class 12 Syllabus
- Class 8 Notes
- Class 9 Notes
- Class 10 Notes
- Class 11 Notes
- Class 12 Notes
- Class 8 Formulas
- Class 9 Formulas
- Class 10 Formulas
- Class 11 Formulas
- Class 8 Maths Solution
- Class 9 Maths Solution
- Class 10 Maths Solution
- Class 11 Maths Solution
- Class 12 Maths Solution
- Class 7 SS Syllabus
- Class 8 SS Syllabus
- Class 9 SS Syllabus
- Class 10 SS Syllabus
- Class 7 Notes
- History Class 7
- History Class 8
- History Class 9
- Geo. Class 7
- Geo. Class 8
- Geo. Class 9
- Civics Class 7
- Civics Class 8
- Business Studies (Class 11th)
- Microeconomics (Class 11th)
- Statistics for Economics (Class 11th)
- Business Studies (Class 12th)
- Accountancy (Class 12th)
- Macroeconomics (Class 12th)
- Machine Learning
- Data Science
- Mathematics
- Operating System
- Computer Networks
- Computer Organization and Architecture
- Theory of Computation
- Compiler Design
- Digital Logic
- Software Engineering
- GATE 2024 Live Course
- GATE Computer Science Notes
- Last Minute Notes
- GATE CS Solved Papers
- GATE CS Original Papers and Official Keys
- GATE CS 2023 Syllabus
- Important Topics for GATE CS
- GATE 2023 Important Dates
- Software Design Patterns
- HTML Cheat Sheet
- CSS Cheat Sheet
- Bootstrap Cheat Sheet
- JS Cheat Sheet
- jQuery Cheat Sheet
- Angular Cheat Sheet
- Facebook SDE Sheet
- Amazon SDE Sheet
- Apple SDE Sheet
- Netflix SDE Sheet
- Google SDE Sheet
- Wipro Coding Sheet
- Infosys Coding Sheet
- TCS Coding Sheet
- Cognizant Coding Sheet
- HCL Coding Sheet
- FAANG Coding Sheet
- Love Babbar Sheet
- Mass Recruiter Sheet
- Product-Based Coding Sheet
- Company-Wise Preparation Sheet
- Array Sheet
- String Sheet
- Graph Sheet
- ISRO CS Original Papers and Official Keys
- ISRO CS Solved Papers
- ISRO CS Syllabus for Scientist/Engineer Exam
- UGC NET CS Notes Paper II
- UGC NET CS Notes Paper III
- UGC NET CS Solved Papers
- Campus Ambassador Program
- School Ambassador Program
- Geek of the Month
- Campus Geek of the Month
- Placement Course
- Testimonials
- Student Chapter
- Geek on the Top
- Geography Notes
- History Notes
- Science & Tech. Notes
- Ethics Notes
- Polity Notes
- Economics Notes
- UPSC Previous Year Papers
- SSC CGL Syllabus
- General Studies
- Subjectwise Practice Papers
- Previous Year Papers
- SBI Clerk Syllabus
- General Awareness
- Quantitative Aptitude
- Reasoning Ability
- SBI Clerk Practice Papers
- SBI PO Syllabus
- SBI PO Practice Papers
- IBPS PO 2022 Syllabus
- English Notes
- Reasoning Notes
- Mock Question Papers
- IBPS Clerk Syllabus
- Apply for a Job
- Apply through Jobathon
- Hire through Jobathon
- All DSA Problems
- Problem of the Day
- GFG SDE Sheet
- Top 50 Array Problems
- Top 50 String Problems
- Top 50 Tree Problems
- Top 50 Graph Problems
- Top 50 DP Problems
- Solving For India-Hackthon
- GFG Weekly Coding Contest
- Job-A-Thon: Hiring Challenge
- BiWizard School Contest
- All Contests and Events
- Saved Videos
- What's New ?
- Data Structures
- Interview Preparation
- Topic-wise Practice
- Latest Blogs
- Write & Earn
- Web Development
Related Articles
- Write Articles
- Pick Topics to write
- Guidelines to Write
- Get Technical Writing Internship
- Write an Interview Experience
Setting IP Address Using DHCP Server
- Dynamic Host Configuration Protocol (DHCP)
- Thread functions in C/C++
- Multithreading in C
- Multithreading in C++
- Socket Programming in C/C++
- Socket Programming in C/C++: Handling multiple clients on server without multi threading
- TCP Server-Client implementation in C
- UDP Server-Client implementation in C++
- UDP Client Server using connect | C implementation
- C program for file Transfer using UDP
- File Transfer Protocol (FTP) in Application Layer
- What are the differences between HTTP, FTP, and SMTP?
- Asynchronous Transfer Mode (ATM) in Computer Network
- What is Local Host?
- DHCP Relay Agent in Computer Network
- How DHCP server dynamically assigns IP address to a host?
- Layers of OSI Model
- TCP/IP Model
- Protocols in Application Layer
- Simple Mail Transfer Protocol (SMTP)
- Domain Name System (DNS) in Application Layer
- Why does DNS use UDP and not TCP?
- Address Resolution in DNS (Domain Name Server)
- DNS Spoofing or DNS Cache poisoning
- Basics of Computer Networking
- Caesar Cipher in Cryptography
- Network Devices (Hub, Repeater, Bridge, Switch, Router, Gateways and Brouter)
- Last Updated : 06 Mar, 2022
Every computer on the network has to have an IP address for communication purposes. An IP address is an identifier for a computer or device on a network. The IP address can be assigned in two ways i.e. Static IP or Dynamic IP.
Static IP : A static IP is where a user assigns an IP address manually. It has certain drawbacks for example you have 100 computers or devices in your network and you want to assign IP addresses to each one statically, so keep in mind that the IP address must be unique because if you assign the same IP address twice it would cause an IP conflict and it would not have access to a network.
Dynamic IP: A dynamic IP is where a computer gets an IP address from a DHCP server. A DHCP server automatically assigns a computer an IP address along with a subnet mask, default gateway, DNS server.
DHCP Server: A Dynamic Host Configuration Protocol is an application layer protocol that is used to provide dynamic IP addresses to computers and devices. DHCP is a service that runs on a server, such as a Microsoft server or a Linux server. It’s also a service that runs on routers.
Why set the IP address using the DHCP server?
When a computer obtains an IP address from a DHCP server the server assigns the IP address on lease. The computer doesn’t own the IP address its lease and lease is the amount of time an IP address is assigned to a computer. For example, the lease could be for one day.
Another reason for lease is to make sure that the DHCP server does not run out of IP addresses. A DHCP server has its scope, let’s just say that this DHCP scope has only a range of three IP addresses so it can give only three IP addresses. Now obviously this is not so realistic as no network administrator is going to create a scope with such a small range. But for now, as an example let use this example let’s go ahead and add three computers to a network once they get added, a DHCP server is going to assign them IP addresses so in this example let’s just say that the IP address given to computers is not on lease so the DHCP has reached out its limit on giving IP address all these three IP addresses are currently being used.
What if one of the computers gets removed from the network. If a computer is removed it takes the IP address that it has been given with it. Let’s say another computer gets added to the network but the problem is the computer won’t be able to access the network because the DHCP server has run out of IP addresses. Even though that third computer has been removed it still occupies an IP address that could be used for another computer.
This is why the IP address leased and are not given permanently because if IP addresses are leased then this would tell the DHCP server which IP address is still being used and which ones are not being used so in this example the IP address are leased, after a certain period during lease a computer must send a signal to the server asking to the server to renew its list of the IP addresses. In another word, we can say informing the DHCP server that it is still present on the network and its IP address is still being used.
If a computer is removed from the network that computer not going to ask the DHCP server for renewal and if it doesn’t ask for renewal then the list will expire and then the IP address will go back to their IP address pool of servers. Now the IP address can be used for another computer and this is why the IP address is leased.
How to set the IP address using the DHCP server?
Lets us see practically how to assign an IP address using DHCP to your windows 10/8/7 computer step by step :
Step 1: Go to the control panel.
Step 2: Select the Networking and sharing option.
Step 3: Select change adapter setting.
Step 4: Select and open your internet, ethernet , or wi-fi connection to which you want to set the IP address using the DHCP server.
Step 5: Once you have done with Step 4 a pop-up of wi-fi status (in my case connected with wi-fi) will appear on your screen, now click on properties.
Step 6: Once you click on the properties option a new pop-up of wi-fi properties will appear on your screen. Now, select Internet Protocol version 4(TCP/IPv4) in some cases it may have IPv6. Once you select this option properties option will enable and once it is enabled click on that.
Step 7: After clicking on the properties option of the recent screen a new screen of Internet Protocol Version will appear where you have to go inside the general tab which by default opens and click on the option of obtain an IP address automatically along with this option click on obtain DNS server address automatically.
When we choose this option computer will broadcast a request for an IP address on the network then the DHCP server will assign an IP address from its pool and deliver it to the computer. once it is done you can verify that the DHCP server has given address to your computer or not by opening a command prompt on your system and typing a command ipconfig /all and you can see there is DHCP enable or not along with IPv4 or IPV6 address, subnet mask, and default gateway.
All of these settings are given by the DHCP server. Dynamic IP addressing is the best choice because it automatically manages the network and makes the process a lot easier.
Please Login to comment...
- Computer Subject

Complete Interview Preparation - Self Paced

Complete Machine Learning & Data Science Program


Complete Test Series for Service-Based Companies
Improve your coding skills with practice, start your coding journey now.

- NEWSLETTER SIGN-UP
DHCP and Assigning IP Addresses
Mark Minasi | Jul 31, 1996
If you have an IP-based network (if you don't yet, you will soon), you've probably discovered the painful part of putting an IP stack on everyone's PC. You have to type in arcane numbers like 206.83.41.13, provide the Windows Internet Name Service (WINS) and Domain Name System (DNS) server locations, identify the domain name, and perform other tedious tasks for each PC. Windows NT's Dynamic Host Configuration Protocol (DHCP) tool eliminates a lot of this runaround. (For details on DHCP, see John Enck, " Take A Number ," Windows NT Magazine , October 1995.)
To use DHCP, you set up an NT server as a DHCP server and give it a range of IP addresses to assign. A PC with DHCP client software can then request an IP address from the DHCP server. The DHCP server hands out the next available IP address and can supply a subnet mask, WINS server, WINS node type (don't worry about what it is, just set it to "8"), domain name, DNS server, and default gateway.
Suppose you set up a subnet with 100 PCs. You have addresses 200.123.100.15 through 200.123.100.114 to give those PCs. You could go around and hardwire one IP address into each machine, but that's a lot of work. Instead, set up a DHCP server to distribute addresses and tell a machine that its subnet mask is 255.255.255.0, its WINS server is at 200.12.4.88, its WINS node type is 8, its domain name is acme.com, its DNS server is at 184.33.82.14, and its default gateway is 200.123.100.1.
Sound great? It is, in general. But be aware of a few wrinkles.
Setting up DHCP
In the group Network Administration, you'll see a new program, DHCP Manager. It's the central DHCP control tool. Once you set up the DHCP server, you need to create a scope --a pool of IP addresses. In my example, the scope is 200.123.100.15 to 200.123.100.114.
To create a new scope, go to the DHCP Manager menu and select Scope and then Create. You can fill in the range of addresses, name the scope, and even exclude particular addresses. For example, in my network, which is 199.34.57.0, I can safely use DHCP to give out all IP addresses because most of my PCs run client software that supports DHCP. But I have a few fixed IP addresses: an Integrated Services Digital Network (ISDN) Mac-layer bridge takes addresses ending in .5 and .6, and some important servers take addresses ending in .50 through .53. These fixed addresses aren't a problem. I could, for example, put all addresses from 199.34.57.2 through 199.34.57.254 into a scope and exclude .5, .6, and .50 through .53.
Understanding Your Lease
First, DHCP is a pull protocol--client-driven--rather than a push protocol--server-driven. The first time a DHCP client workstation comes up on a network, the client issues a broadcast seeking a DHCP server; this message is a "DHCP Discover." DHCP servers hear the workstation and respond by offering IP addresses; this message is a "DHCP Offer." The workstation looks through its offers and selects one (I'm not clear about how it selects. I've seen workstations turn down more-attractive leases in favor of less-attractive leases). The workstation broadcasts back to the DHCP server that it wants an offer; this message is the "DHCP Request."
Why is this third part of the DHCP sequence a broadcast rather than a directed communication to the DHCP server that offers the requested lease? The workstation sends a broadcast so all DHCP servers, including the requested DHCP server, hear the message; by broadcasting its message to the DHCP server, the workstation is saying to other DHCP servers, "Thanks for the offers, but I'm going with Server X."
Finally, the chosen DHCP server sends the lease information (the IP address, potentially a subnet mask, DNS server, WINS server, WINS node type, domain name, and default gateway) to the workstation in a message called the DHCP ACK (data communications jargon for acknowledge). You can remember the four parts of a DHCP message by the mnemonic DORA--Discover, Offer, Request, and ACK.
Now we have a workstation with an IP address and a lease period. For example, let's say the PC has address 200.123.100.77 for three days.
Set a Lease Duration
I encountered this problem when I set up my first DHCP server years ago. Thinking to make my life easier, I set the lease durations to "infinite." But, later, I needed to change my domain structure. I added some DNS servers and a default gateway address and divided my C network into four subnets. I had no problem rearranging DHCP to accommodate these changes. I changed the DHCP Manager and went to the Control Panel to stop the DHCP server and restart it. (Don't forget this step when you make changes to your DHCP servers.)
Soon I realized that none of my changes were in effect. The problem was that my workstations obtained IP addresses from DHCP with infinite leases, which told them, "You have this lease forever; you never have to check with me again." This situation seemed strange. I assumed that when a DHCP client boots, it checks with the DHCP server. After all, how else does the workstation know its IP address, subnet mask, and the like?
What I was missing was this: If your PC is a DHCP client, it keeps its lease information on its local hard disk . When the PC boots, it looks at the lease information. If that information says, "Use IP address such-and-such and subnet mask such-and-such, and you can use this until summer 2031," the workstation doesn't have to check with the DHCP server. And it doesn't.
I emailed my users, telling them to open up a command prompt window and type two commands: ipconfig /release and ipconfig/renew. Ipconfig/renew should be sufficient, but it isn't. I often see DHCP not working properly--it gets stuck on something and stops working. The two ipconfig commands usually straighten it out. For Windows 95, don't use ipconfig; rather, use winipcfg, which is a GUI version of ipconfig.
If the ipconfig or winipcfg commands don't work, go to each workstation, and erase the local DHCP information. On a DOS or Windows for Workgroups machine, the file is dhcp.bin. On a Win95 machine, the DHCP information is in the Registry in hkey_local_machine\system\currentcontrolset\services\vxd\dhcp\dhcpinfo xx , where xx is two digits. You can have multiple leases, and the two digits accommodate that capability. In NT, see hkey_local_machine\system\currentcontrolset\services\netcardname\parameters\tcpip. (Netcard name will be something like E159x.)
Back Issues

More information about text formats
- Allowed HTML tags: <em> <strong> <blockquote> <br> <p>
- No HTML tags allowed.
- Web page addresses and e-mail addresses turn into links automatically.
- Lines and paragraphs break automatically.
- Help Center
- Speakers and Displays
- Nest Thermostat
- Cameras and Doorbell
- Locks and Alarm Systems
- Smoke Alarms
- Subscriptions and Services
- Nest Common Concerns
- Your privacy
- Google Nest
- Privacy Policy
- Terms of Service
- Submit feedback
- Speakers and Displays Get started Explore features Change your settings Troubleshoot an issue Warranty, manual and returns
- Nest Thermostat Introducing Nest thermostats Get started Explore features and settings Fix a problem Warranty, manual & returns
- Cameras and Doorbell Introducing Nest cameras and doorbells Get started Explore features and settings Fix a problem Warranty, manual & returns
- Locks and Alarm Systems Locks Alarm Systems
- Smoke Alarms Introducing Nest Protect Get started Explore features and settings Safety and certifications Fix a problem Warranty, manual & returns
- Wi-Fi Learn about Wifi products Get started Features and settings Fix a problem Warranty, manual & returns Your privacy
- Subscriptions and Services Nest Aware Partner Devices and Services Nest Renew Rush Hour Rewards HVAC monitoring Nest Pro installation ADT
- Nest Common Concerns Nest Products Nest App Accounts Notifications and Emails
To get the most out of Google Home, choose your Help Center: U.S. Help Center, U.K Help Center , Canada Help Center, Australia Help Center .
DHCP IP reservation or Set a Static IP address for a device
When you use DHCP IP reservation, you're telling your Wi-Fi network to assign the same IP address to a specific device whenever that device connects to your network.
Why use DHCP IP reservation or Static IP
Most devices use DHCP, which assigns dynamic IP addresses, as a default. But sometimes, you want devices to always have the same IP address.
For example, a wireless printer. When you print something, your computer and printer locate each other using IP addresses. If your printer’s IP address keeps changing, your computer may not always be able to find it. Giving your printer a static IP address ensures that your computer always knows the address of your printer as it won’t change if it’s rebooted or if a DHCP IP lease expires.
- You'll need DHCP IP reservation (Static IP for your client) if you want to set up port forwarding to that device.
- You can customize the subnet you use under LAN settings (if you prefer to use a different subnet).
- This article applies only to local devices connected to your router (laptop, smartphone, tablet, etc.). They can have static IP addresses that only your router sees. The outside world won’t see these static IP addresses. But your router can also have a static IP address that the rest of the internet sees. Learn about Static IP for your Wifi point’s WAN .
Change your DHCP settings
- Tap the device for which you’d like to assign a static IP.
Note : You may need to disconnect this device from your Wi-Fi network and reconnect it before it is assigned the reserved IP.
Need more help?
Try these next steps:.
Get an answer from an expert on the Google Home Help Forum.
- Previous : Setting Up DHCP Clients for a Consistent IP Address
- Next : How to Assign a Consistent IP Address to a DHCP Client (pntadm)
How to Assign a Consistent IP Address to a DHCP Client (DHCP Manager)
Determine the client ID for the client you want to have a permanent IP address.
See the entry for client ID in Table 4–6 for information about how to determine the client ID.
Select the Addresses tab in DHCP Manager.
Select the appropriate network.
Double-click the IP address you want to the client to use.
The Address Properties window opens.
Select the Lease tab.
In the Client ID field, type the client ID you determined from the client's hardware address.
See the Client ID entry in Table 4–6 for more information.
Select the Reserved option to prevent the IP address from being reclaimed by the server.
In the Lease Policy area of the window, select Dynamic or Permanent assignment.
Select Dynamic if you want the client to negotiate to renew leases, and thus be able to track when the address is used. Because you selected Reserved, the address cannot be reclaimed even when it uses a dynamic lease. You do not need to enter an expiration date for this lease. The DHCP server calculates the expiration date based on the lease time.
If you select Permanent, you cannot track the use of the IP address unless you enable transaction logging.
- © 2010, Oracle Corporation and/or its affiliates
- Network Infrastructure
DHCP (Dynamic Host Configuration Protocol)

- Alexander S. Gillis, Technical Writer and Editor
What is DHCP (Dynamic Host Configuration Protocol)?
DHCP (Dynamic Host Configuration Protocol) is a network management protocol used to dynamically assign an IP address to any device, or node , on a network so it can communicate using IP. DHCP automates and centrally manages these configurations rather than requiring network administrators to manually assign IP addresses to all network devices. DHCP can be implemented on small local networks, as well as large enterprise networks.
DHCP assigns new IP addresses in each location when devices are moved from place to place, which means network administrators do not have to manually configure each device with a valid IP address or reconfigure the device with a new IP address if it moves to a new location on the network.
Versions of DHCP are available for use in IP version 4 ( IPv4 ) and IP version 6 ( IPv6 ). IPv6 became an industry standard in 2017 -- nearly 20 years after its specifications were first published. While the adoption rate of IPv6 was slow, more than 29% of Google users were making inquiries using IPv6 by July 2019.
How DHCP works
DHCP runs at the application layer of the TCP/IP stack. It dynamically assigns IP addresses to DHCP clients and allocates TCP/IP configuration information to DHCP clients. This information includes subnet mask information, default gateway IP addresses and domain name system ( DNS ) addresses.
DHCP is a client-server protocol in which servers manage a pool of unique IP addresses, as well as information about client configuration parameters. The servers then assign addresses out of those address pools. DHCP-enabled clients send a request to the DHCP server whenever they connect to a network.
Clients configured with DHCP broadcast a request to the DHCP server and request network configuration information for the local network to which they're attached. A client typically broadcasts a query for this information immediately after booting up. The DHCP server responds to the client request by providing IP configuration information previously specified by a network administrator. This includes a specific IP address, as well as a time period -- also called a lease -- for which the allocation is valid.
When refreshing an address assignment, a DHCP client requests the same parameters, but the DHCP server may assign a new IP address based on policies set by administrators. DHCP clients can also be configured on an Ethernet interface.
A DHCP server manages a record of all the IP addresses it allocates to network nodes. If a node is relocated in the network, the server identifies it using its media access control ( MAC ) address, which prevents the accidental configuration of multiple devices with the same IP address. Configuring a DHCP server also requires the creation of a configuration file, which stores network information for clients.
DHCP is not a routable protocol, nor is it a secure one. DHCP is limited to a specific local area network , which means a single DHCP server per LAN is adequate -- or two servers for use in case of a failover. Larger networks might have a wide area network ( WAN ) that contains multiple individual locations. Depending on the connections between these points and the number of clients in each location, multiple DHCP servers can be set up to handle the distribution of addresses.
If network administrators want a DHCP server to provide addressing to multiple subnets on a given network, they must configure DHCP relay services located on interconnecting routers that DHCP requests have to cross. These agents relay messages between DHCP clients and servers located on different subnets.
DHCP lacks any built-in mechanism that enables clients and servers to authenticate each other. Both are vulnerable to deception -- one computer pretending to be another -- and to attack, where rogue clients can exhaust a DHCP server's IP address pool.
When managing many DHCP servers or DHCP servers in a WAN, users can work with a command line. Users should also be aware that starting, stopping and restarting affects the running of the daemon.
Components of DHCP
DHCP is made up of numerous components, such as the DHCP server, client and relay.
The DHCP server -- typically either a server or router -- is a networked device that runs on the DHCP service. The DHCP server holds IP addresses, as well as related information pertaining to configuration.
The DHCP client is a device -- such as a computer or phone -- that connects to a network and communicates with a DHCP server.
The DHCP relay manages requests between DHCP clients and servers. Typically, relays are used when an organization has to handle large or complex networks.
Other components include the IP address pool, subnet, lease and DHCP communications protocol.

Static vs. dynamic DHCP leases
With dynamic DHCP, a client does not own the IP address assigned to it but instead leases it for a period of time. Each time a device with a dynamic IP address is powered up, it must communicate with the DHCP server to lease another IP address. Wireless devices are examples of clients that are assigned dynamic IP addresses when they connect to a network.
On the other hand, static devices -- such as web servers and switches -- are assigned permanent IP addresses.
Under a dynamic DHCP setup, a client might also have to perform certain activities that lead to terminating its IP address and then reconnecting to the network using a different IP address. DHCP lease times can vary depending on how long a user is likely to need an internet connection at a particular location. Devices release their IP addresses when their DHCP leases expire and then request a renewal from the DHCP server if they are staying online. The DHCP server may assign a new address rather than renewing an old one.
The typical dynamic DHCP lease cycle is as follows:
- A client acquires an IP address lease through the allocation process of requesting one from the DHCP server.
- If a client already has an IP address from an existing lease, it needs to refresh its IP address when it reboots after being shut down and contact the DHCP server to have an IP address reallocated.
- Once a lease is active, the client is bound to the lease and to the address.
- Once the lease has expired, a client contacts the server that initially granted the lease to renew it so it can keep using its IP address.
- If a client is moving to a different network, its dynamic IP address is terminated, and it requests a new IP address from the DHCP server of the new network.
DHCP uses and functions
DHCP is used to distribute IP addresses within a network and to configure the proper subnet mask, default gateway and DNS server information on the device.
DHCP, including Request for Comments (RFC) 8415 -- the draft version released in November 2018 -- can also be used by ordinary electronic devices whose manufacturers want them to be part of the internet of things ( IoT ). DHCP is one method of connecting devices -- such as refrigerators and lawn sprinkler systems -- to the internet using a Manufacturer Usage Description (MUD), suggested by the Internet Engineering Task Force (IETF).
Pros and cons of DHCP
DHCP makes it easier for network administrators to add or move devices within a network, whether it be a LAN or WAN. But DHCP is not inherently secure, and if malicious actors access the DHCP server, they can wreak havoc. Also, if the DHCP server does not have a backup and the server fails, so do the devices served by it.
DHCP security
One of the key vulnerabilities of DHCP has been the use of so-called man in the middle ( MitM ) attacks, in which an attacker secretly intercepts and relays messages between two parties who believe they are communicating directly with each other.
DHCP servers have also been the subject of multiple memory corruption vulnerabilities. In these, attackers have targeted the Windows DHCP Server service. When successful, the attacks can lead to a full compromise of Microsoft Active Directory (AD). One such vulnerability, patched by Microsoft, was the Common Vulnerabilities and Exposures (CVE)-2019-0725 Windows DHCP Server Remote Code Execution (RCE) Vulnerability.
History of DHCP
DHCP is an extension of a 1985 network IP management protocol, Bootstrap Protocol ( BOOTP ). DHCP is more advanced, and DHCP servers can handle BOOTP client requests if any BOOTP clients exist on a network segment.
Using one central BOOTP server to serve hosts on many IP subnets, BOOTP introduced the concept of a relay agent that enabled BOOTP packets to be forwarded across networks. BOOTP required a manual process to add configuration information for each client, however, and did not provide a mechanism for reclaiming IP addresses no longer in use.
Editor's note: This definition was republished to improve reader experience.
Continue Reading About DHCP (Dynamic Host Configuration Protocol)
- DHCP client configuration for Linux, Windows and macOS
- 12 common network protocols and their functions explained
- Static IP vs. dynamic IP addresses: What's the difference?
- Brief introduction: DHCP and DNS
Related Terms
Dig deeper on network infrastructure.

DNS server troubleshooting for Linux and Windows

Automatic Private IP Addressing (APIPA)

5 basic network commands for Linux and Windows

Configure DHCP failover for Windows Server
This series of UC blogs examines Cisco's hybrid work bundle, Neat's new Neat Pulse offering and how Zoho Workplace increases work...
More organizations are adopting ESG initiatives, and UC vendors have begun to offer new programs and capabilities in response. ...
The tech giant's $10 billion investment in OpenAI brings AI-supported updates to its basic Teams offering, on top of features ...
Organizations can use the iPadOS Files app to manage files locally or in the cloud. Learn the pros and cons of both storage types...
It's important to ensure that files are secure and easy to work with on enterprise mobile devices. In iOS, the Files app is a key...
If the native macOS file manager is lacking, IT can look to third-party options for advanced features. Commander One, ForkLift ...
New addenda to ASHRAE 90.4 simplify mechanical load component calculations and modify the definition of UPS, among other changes....
As climate change becomes a more pressing issue, these sustainability best practices can help your data center go greener, which ...
Linux admins can use Cockpit to view Linux logs, monitor server performance and manage users. Use the tool to help admins manage ...
IT shops appear ready to focus on cloud costs amid inflation and economic uncertainty. Service providers expect clients to invest...
Digital transformation can take too long and fail to deliver. Root causes include lack of focus, cultural barriers and technical ...
Software and services companies are adding personnel and expanding their offerings, as venture funds invest in tech startups with...

IMAGES
VIDEO
COMMENTS
The answer to “What is DHCP?” is that it's the standard mechanism to dynamically assign IP addresses within a network. It stands for Dynamic Host Configuration
To enable DHCP or change other TCP/IP settings · Select Start, then type settings. Select Settings > Network & internet. · Do one of the following: · Next to IP
You can assign an IP address using Dynamic Host Configuration Protocol (DHCP). DHCP is an Internet protocol for automating the configuration
DHCPACK: If the address is assigned, it marks the IP address in the storage as unavailable to ensure consistency. Now, the server sends a
When a computer obtains an IP address from a DHCP server the server assigns the IP address on lease. The computer doesn't own the IP address its
To use DHCP, you set up an NT server as a DHCP server and give it a range of IP addresses to assign. A PC with DHCP client software can then request an IP
Procedure · From the library's Activity touchscreen, press MENU —> Settings —> Network —> Ethernet IPv4—> ENTER. · To change the Ethernet setting, press ENTER.
Change your DHCP settings · Open the Google Home app . · Tap Wi-Fi and then Settings and then Advanced Networking. · Tap DHCP IP reservations and then Add IP
Determine the client ID for the client you want to have a permanent IP address. · Select the Addresses tab in DHCP Manager. · Select the appropriate network.
DHCP runs at the application layer of the TCP/IP stack. It dynamically assigns IP addresses to DHCP clients and allocates TCP/IP configuration information to