In Microsoft Windows how do I enable or disable DHCP?

The majority of corporate and home networks today are configured for DHCP, which enables your computer to be automatically assigned an IP address.

To enable or disable DHCP for Windows XP and earlier versions, follow the steps below.

  1. Open Control Panel.
  2. Double-click Network connections.

Note: You may be see Network and Internet connections instead. If so, double-click this and then select Network connections.

  1. Right-click on Local Area Connection and select Properties.
  2. Highlight the Internet Protocol (TCP/IP) option and click the Properties button.
  3. If you want to enable DHCP, make sure Obtain an IP address automatically is selected, as well as Obtain DNS server address automatically.

    If you want to disable DHCP and manually define 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.

To enable or disable DHCP for Windows Vista and Windows 7, follow the steps below.

  1. Open Control Panel.
  2. Click on the Network and Sharing Center icon.
  3. In the View your active networks section, click the Local Area Connection link.
  4. In the Local Area Connection Status window, click the Properties button.
  5. Highlight the Internet Protocol Version 4 option and click the Properties button.
  6. If you want to enable DHCP, make sure Obtain an IP address automatically is selected, as well as Obtain DNS server address automatically.

    If you want to disable DHCP and manually define 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
  7. 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 prompt. When typing this command, for the "Ethernet adapter Local Area Connection", one of the lines will say if DHCP is enabled as shown below.

DHCP Enabled. . . . . . . . . . . : Yes

Additional information

  • See the DHCP definition for further information and related links.