How to Disable IP Autoconfiguration

If DHCP service is enabled and DHCP server is temporarily or permanently unavailable, TCP/IP assigns a class B IP address from 169.254.0.0 to 169.254.255.255 to the machine. This function in Windows is called “Automatic Private IP Addressing”.

If you want to use static IP addresses in the machine, you need to disable IP autoconfiguration. To disable;

1- Check in which interface autoconfiguration is on.

2- Check for index number of the interface with the command;

netsh interface ipv4 show inter

Our index is ‘2’ in this example.

3- Run the command below with changing the ‘2’ with your index number;

netsh interface ipv4 set interface 2 dadtransmits=0 store=persistent

4- Disable DHCP Client service

5- Reboot

9 Comments

  1. Thanks. Most helpful.

  2. The best. TYVM. Makes me wonder if Microsoft did an update to enable this recently…first Ive ran into it.

  3. thanks .. i was puzzled by this..

  4. Can this be made to work without disabling DHCP? I don’t need DCHP since using a static IP, but it also then disables the network location awareness that affects the windows firewall.

  5. It didn’t permanently disable it for me.
    It comes back.
    And while it connects to the router it won’t connect to the internet.

  6. Still says “Autoconfiguration Enabled = Yes”. I am on static IP.

  7. Without disabling DHCP mine still gets an auto ip even though dadtransmits=0. However, creating DWORD “IPAutoconfigurationEnabled” with value 0 at HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ works for me, although ipconfig /all shows “Autoconfiguration enabled: Yes” the adapter does NOT receive an auto ip even with DHCP enabled. You can get the adapter guid using powershell: `Get-CimInstance -ClassName Win32_NetworkAdapter | Where-Object Name -eq ‘{DESCRIPTION GOES HERE}’ | Select-Object GUID`, replace {DESCRIPTION GOES HERE} with the “Description” listed from ipconfig.

  8. after typing command netsh interface ipv4 set interface 12 dadtransmits=0 store=persistant it gives ‘the parameter is incorrect’ I’ve tried 1 and 2 and 12 as well. It lists the idx as 12. ??!!

    1. Persistent spelling is wrong in ur cmd. Presist’a’nt u entered.

Leave a Reply