Welcome to the System Administrator training section on CoreNetworkZ Tech Solutions. Today, I will explain how to set a computer to receive an automatic IP address from a DHCP server.
Importance of Setting a PC to Receive IP Address automatically
Without a layer three address (IP or logical address), your computer cannot communicate with other devices in the network. You can either assign a static IP to your computer or configure it to obtain an IP address automatically from a DHCP server.
One of our regular readers, Enrico Sterpi, asked why we did not configure the IP address manually. The answer is simple.
For a smaller network, it is easy to assign Logical addresses manually to devices connected to the network. But it is not practical for a big network.
For bigger networks, it is better to use the option to get automatic IP configuration from the DHCP server in the network. So, I believe you understand why I prefer automatic IP addressing to manual IP addressing.
This tutorial explains different methods to configure a Windows computer to receive an IP address from an external DHCP server.
Different Methods to Obtain IP Address Automatically
Tom Battista Raggi asked me to explain different methods to obtain IP addresses automatically on a Windows 11 laptop. Let me answer him in this section.
In this section, I will explain two different methods to set a Windows computer to receive an IP address from an external DHCP server.
DOS Prompt Command to Set Automatic IP Addressing
Abdul Renish asked in the comment section to explain the steps to configure a Windows computer for an automatic IP address from the Command Prompt.
You can set a PC to receive an automatic IP address from a DHCP server with a DOS command. Follow the instructions:
- Open Command Prompt As Administrator
Type DOS in the Windows 11 search. Click run as administrator.
- Type the command
netsh interface ip set address "connected adapter name " dhcp and press the enter key.
The DORA will start now to get a logical address from the DHCP server. To learn more about the DORA process, visit the link below.
So, I answered the questions asked by Adbul Renish and Tom Battista Raggi.
Bruno Moretti asked me to explain how to change static IP to DHCP in the command prompt. Hello Bruno, execute the DOS command I mentioned, and your computer will start receiving IP addresses from the external DHCP server.
- Open Command Prompt As Administrator
-
Obtain an IP Address Automatically From Adapter Properties
Some users may not want to set computers to receive an automatic Internet Protocol number from the command prompt. Let me share another method for them.
- Right click on the adapter icon in the system tray
- Click properties and select Internet Protocol version4 (TCP/IPv4)
- Click Properties
- Select the radio button Obtain an IP address automatically and click OK
- Right click on the adapter icon in the system tray
I have explained two methods to configure a Windows computer to receive an IP address from an external DHCP server.
Benefits Of Using Automatic IP Addressing
Harpal Singh shared his job interview experiences in the comment section. The interview board asked him about the benefits of using automatic IP addressing.
Let me share a few benefits here.
Since DHCP provides layer three numbers to computers, there won't be any Internet Protocol addressing error. DHCP assigns a unique IP address to every computer in the network without having an Internet Protocol address conflict.
Another advantage of using automatic addressing is the reduction in network configuration time. We do not need to spend the time to assign static IP addresses to devices in the network if all the devices can receive it automatically.
Reference
- https://www.systosys.com/viewtopic.php?t=71
- https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/install-configure-dhcp-server-workgroup
- https://www.cisco.com/c/en/us/td/docs/routers/ncs6000/software/ip-addresses/command/reference/b-ip-addresses-cr-ncs6000/b_ipaddr_cr50ncs_chapter_0100.pdf
Hello Alex,
ReplyDeleteI bought a Windows 11 laptop from Dell. I tried the methods to renew the IP address automatically but failed. Can you explain another way to obtain an IP address automatically on this Dell laptop?
Hello Tom,
DeleteWelcome to CoreNetworkZ Tech Solutions. I have updated the tutorial with an additional method to obtain an IP address automatically.
Hello Alex,
ReplyDeleteCan we set an automatic IP address with the auto config IP address command?
Hello Abdul Renish,
DeleteI have updated the tutorial with an explanation of using DOS commands to obtain automatic IP addresses.
Why don't we fix a static IP address for each computer? Isn't it easier?
ReplyDeleteHello Enrico Sterpi,
DeleteAssigning static IP addresses in a large corporate network is difficult.
Hello Corenetworkz Team,
ReplyDeleteThank you for this detailed tutorial. I am an aspiring network engineer who just started my networking courses. I attended a job interview recently. The HR asked me to list out the benefits of the auto config ip address. I could not tell all. I wish I had found this article before that interview.
Hello Harpal Singh,
DeleteWelcome to CoreNetworkZ Tech Solutions. Thank you for sharing your job interview experience with us.
Hello Alex,
ReplyDeleteA helpful tutorial as usual from the CoreNetworkZ Team. However, you missed one important point. You did not explain how to change static ip to dhcp in the command prompt. Please add this part.
Hello Bruno,
DeleteThank you for reminding me. I have updated the article.