How to enable or disable DHCP in Windows
The majority of corporate and home networks today are configured for DHCP (Dynamic Host Configuration Protocol), which enables your computer to be automatically assigned an IP address.
To enable or disable DHCP in Windows, follow the steps below for your version of Windows.
When disabling DHCP and using a static IP address, make sure you know and enter all the correct settings. Entering wrong settings can result in your Internet or Network connection not working anymore.
Windows 8 and Windows 10
- On the Windows desktop, press the Windows key+X on the keyboard to open the Power User menu.
- Select the Network Connections option.
- You should see at least two types of network connections: Ethernet and Wi-Fi. Double-click the active network connection.
- On the network connection status window, click the Properties button.
- Click the Internet Protocol Version 4 option and click the Properties button. You may need to perform the following steps for the Internet Protocol Version 6 option as well.
- To enable DHCP, make sure Obtain an IP address automatically is selected, and Obtain DNS server address automatically.
To disable DHCP and enter your network settings instead, select the Use the following IP address option and enter values for IP address, Subnet mask, and Default Gateway. Also, select the Use the following DNS server address option and enter a value for Preferred DNS (Domain Name System) server. You can also enter a value for Alternate DNS server if you want.
Windows Vista and Windows 7
- Open the Control Panel.
- Click the Network and Sharing Center icon.
- In the View your active networks section, click the Local Area Connection link.
- In the Local Area Connection Status window, click the Properties button.
- Highlight the Internet Protocol Version 4 option and click the Properties button. You may need to perform the following steps for the Internet Protocol Version 6 option as well.
- To enable DHCP, make sure Obtain an IP address automatically is selected, and Obtain DNS server address automatically.
To disable DHCP and enter your network settings instead, select the Use the following IP address option and enter values for IP address, Subnet mask, and Default Gateway. Also, select the Use the following DNS server address option and enter a value for Preferred DNS server. You can also enter a value for Alternate DNS server if you want.
Windows XP and earlier versions
- Open the Control Panel.
- Double-click Network connections.
You may be see Network and Internet connections instead. If so, double-click it and then Network connections.
- Right-click Local Area Connection and select Properties.
- Highlight the Internet Protocol (TCP/IP) option and click the Properties button.
- To enable DHCP, make sure Obtain an IP address automatically is selected, and Obtain DNS server address automatically.
To disable DHCP and manually define your network settings instead, select the Use the following IP address option. Then, enter the appropriate values for IP address, Subnet mask, and Default Gateway. Also, select the Use the following DNS server address option and enter a value for Preferred DNS server. You can also enter a value for Alternate DNS server if you want.
How can I tell if I'm using DHCP?
An easy method of determining this is to use the ipconfig /all command from the command line. The output lists the DHCP status of your Ethernet adapter Local Area Connection. The line looks like this:
DHCP Enabled. . . . . . . . . . . : Yes