Nov 15, 2024 • Filed to: Windows Computer Solutions • Proven solutions
For the ones who like to stay connected to the internet on the go, it is not possible to do without WiFi. The availability of WiFi in public sapaces and also our homes helped us in every possible way. As we travel to different places and traverse through different meetings, we feel the need to carry our system which contains all our work. Therefore, the system needs to have an operational DHCP that can prove to be useful while using WiFi in public spaces. Before we understand how to disable or enable DHCP in our Windows Operating System, let us understand why Dynamic Host Configuration Protocol (or DHCP, as we shall refer to it in the article), is necessary and what it is all about?
DHCP is an essential feature that allows you to connect your system with WiFi that is configured for public spaces. It happens to be a client-server protocol that automatically provides the user with an Internet Protocol (IP) host along with an IP Address and other relevant configuration information which includes the subnet mask and default gateway. RFCs 2131 and 2132 define DHCP to be an Internet Engineering Task Force (IETF) standard based on the Bootstrap Protocol (BOOTP), as it shares many implementation details with the protocol. DHCP is instrumental in allowing hosts to obtain necessary TCP/IP configuration information from a DHCP Server with ease.
Since we are considering Windows in the given article, we must consider the Microsoft Windows Server 2003 Operating System that includes the DHCP Server Service, and happens to be an optional networking component. Please note that all Windows-based clients include the DHCP client as a part of the TCP/IP, including Windows Server 2003, Microsoft Windows XP, Windows 2000, Windows NT 4.0, Windows Millennium Edition (Windows Me), and also Windows 98. The new versions of Windows that include Windows 7, 8, and 10 come with the functionality of DHCP. In the following section, we shall undertake the procedure to enable DHCP on our systems.
In the following section, we shall list out the steps that can help you enable DHCP on Windows 10 with ease. Contrary to the earlier variants of Windows, the process has been made fairly simple in the latest offering of Windows.
1) To have the DHCP enabled, tap the combination of Windows key+ R on the desktop screen which starts the "Run" command box. Once the command box is displayed, type "ncpa.cpl", and this will direct you to the network and sharing window.
2) Once you are inside the Network and Sharing Window, simply right-click on the icon that says "Ethernet" and clicks on Properties. If you are prompted by UAC, simply click on "Yes".
3) The next step to have the DHCP enabled involves you scrolling down in the Properties box, and located the "Internet Protocol Version 4(which is TCP/IPv4)", and "Internet Protocol Version 6(TCP/IPv6)". These two are pretty critical when it comes to the usage of the internet and to enable DHCP. Therefore, users must be careful when they are being edited manually. In the case discussed here, the modification wasn’t that tedious to have DHCP enabled.
4) Follow the above process by double-clicking on the Internet Protocol Version 4 (TCP/IPv4) and check the following boxes to have DHCP enabled, ‘Obtain an IP Address automatically, and ‘Obtain DNS Server Address Automatically’, and once you have completed the process, tap ‘Ok’.
For the ones opting for Internet Protocol Version 6 (TCP/IPv6), you must follow the above steps and then close the window to have the DHCP enabled.
Here is an important note for our users to have DHCP enabled; whenever you are making the above-listed changes to your system, ensure that the broadband router being put to use can support DHCP. Some routers come with a control panel where you need to have DHCP enabled, but the ones being used these days are having DHCP enabled by default.
In the following section, we shall take a look at the procedure that helps us reverse the order of DHCP enabled, which is to disable DHCP.
1) Again, go to the desktop screen of your system, and tap the Windows + X key combination to access the Power User Menu.
2) Tap the "Network Connections" Option that is listed there.
3) If you have DHCP enabled on your system, you should be seeing two types of network connections, which are Ethernet and WiFi. Simply double-click the active network connection.
4) Once you are on the network connection status window, click on the "Properties" button.
5) The next step is clicking on the Internet Protocol Version 4 option and tapping the Properties Button. Users must note that similar steps could be required to be performed on IPv6 as well.
6) To reverse the status of DHCP enabled, which is to disable it, we enter the Network Settings, and select the "Use the following IP address" option, and then enter the values for the IP Address, subnet mask, and default gateway. Also, finish the process to reverse DHCP enabled by tapping the "Use the following DNS Server Address" option and entering a value for your preferred DNS server. Users are free to enter a value for any corresponding DNS Server as they wish to.
As we learned through the above methodologies, having DHCP enabled is critical for using your internet on the go, and if you wish to disable it to secure your information over a public space, disable it using the above-listed steps with ease.
Your domain controller is one of the most critical services in a Windows domain. Therefore, it’s advised to not run DHCP or other roles on your domain controller other than DNS, as doing so increases the attack surface, which can ultimately lead to security and performance issues.
Sometimes after plugging a switch or router into a port on the wall, the users still aren’t able to connect to the internet or other resources. This can be because it is a rogue DHCP server. In addition to not working, such servers can be a headache and a security risk, which can be used for various attacks. So, it’s better to prevent using such rogue DHCP servers. The best way to block them is at the network switch.
Assigning static IP addresses to computers, phones, laptops, printers, or any other end-user device is a really bad idea. When you statistically assign an IP address, a number of things happen- device partially or completely loses connection, helpdesk replaces the device not aware of the static IP and sends tickets to network team to fix the issue. The network team sends the ticket back with the static IP, and the helpdesk now assigns the IP to the device. So, if you want to avoid this lengthy process, you should use DHCP reservations instead of static IP assignments.
DHCP failover ensures the high availability of a DHCP server. The DHCP failover option is in-built in the Windows server operating system. It allows two DHCP servers to share DHCP information. This ensures that if one DHCP server goes down, the other server can still provide DHCP leases to clients if the two servers are configured with load balance failure mode. Therefore, it’s recommended to use DHCP failover so that if one server fails the other server is still active and takes over all DCHP requests.
The DHCP servers of your system are critical in providing IP settings to your clients. So, in case your system crashes, it becomes imperative that you recover this server as soon as possible. Though by default the Windows back up the DHCP configuration every 60 minutes to %SystemRoot%System32\DHCP\backup folder, it is of no consequence to you. This is because even if the server crashes, you can’t access the folder.
It implies that you should copy the backup folder of the DHCP server to another location on a regular schedule, which can be done with a script that copies the folder to another location or uses PowerShell to specify a remote location.
David Darlington
staff Editor