Press "Enter" to skip to content

Как отключить IPv6 в Windows

IPv6 is a mandatory part of the Windows operating system and it is enabled. Microsoft says its Windows OS was designed specifically with IPv6 present. If IPv6 is disabled on Windows 7 or upper versions, some components such as Remote Assistance, HomeGroup, DirectAccess, and Windows Mail may actually fail to function. The problem gets compounded with a delay in the startup time of 5 seconds or more if IPv6 is disabled.

How to properly Enable or Disable IPv6 in Windows 11/10

Till recently, we used the IPv4 version, which provided us with a 32-bit address. But these available addresses will be exhausted soon. The newer version of IP, is the IPv6, on the other hand, offers us 128-bit addressing capability, which means that there would be more addresses available for use and making the Internet more secure (better network layer security) than the earlier version of the IPv4, with a better QoS and other features such as Mobility support, multi-casting support as well.

IPv6, the successor to the protocol currently used on the Internet, was designed in the late 1990s but has not seen deployment on a global scale. With IPv4 address space running out, the industry cannot afford to wait much longer. Now on or after World IPv6 Launch, i.e., beginning June 6, 2012, many websites will permanently enable IPv6 connectivity to their websites.

Most Windows users may not even notice the shift. If you have no IPv6 connectivity, you will continue to connect as before. If you happen to have IPv6 connectivity, your connectivity to participating websites will automatically shift to IPv6. You can test your IPv6 connectivity here.

Force Windows to use IPv4

If you are facing issues while connecting to the Internet or specific sites, due to this reason, you can resolve your Internet connectivity issues using these Fix It’s from Microsoft.

  • The Prefer IPv4 over IPv6 Microsoft Fix it 50410 will configure your computer to use IP4 instead of IPv6.
  • If you wish to reverse it anytime, you can use the Prefer IPv6 over IPv4 Microsoft Fix it 50441 to make your Windows go back to its defaults.

Enable or Disable IPv6 and IPv4 in Windows

If for some reason, you wish to disable IPv6, it can be disabled either through the DisabledComponents registry value or through the checkbox for the Internet Protocol Version 6 (TCP/IPv6) component in the list of items on the Networking tab for the Properties of connections in the Network Connections folder viz. Control Panel\Network and Internet\Network Connections. You also have the options to Uninstall, Install or modify their Properties here.

  1. Disable IPv6
  2. I prefer IPv4 over IPv6
  3. Disable IPv6 on non-tunnel interfaces
  4. Disable IPv6 tunnel interfaces
  5. Disable IPv6 on non-tunnel interfaces (except the loopback) and IPv6 tunnel interface
  6. Enable IPv6
  7. Prefer IPv6 over IPv4
  8. Enable IPv6 on non-tunnel interfaces
  9. Enable IPv6 tunnel interfaces
  10. Enable IPv6 on non-tunnel interfaces and IPv6 tunnel interfaces.

Correct way to disable IPv6, and avoid 5 second Boot delay

UPDATE: New finding shows the correct way to disable IPv6 on Windows systems and avoid a 5 second Boot delay. Microsoft has disclosed the correct value for the DisabledComponents registry key.

Many Windows users and IT administrators have opted to disable IPv6 to solve Internet connectivity issues, or on the assumption that they are not running any applications or services that use it. Yet others have disabled it because they feel that having both IPv4 and IPv6 enabled, effectively doubled their DNS and Web traffic.

Microsoft explains that this is far from the truth. It goes on to explain what are the company’s recommendations about disabling IPv6. But first, let us divert our attention to these standards.

IPv4 is the fourth version in the development of Internet Protocol Internet that routes most traffic on the Internet. The version provides us with a 32-bit address. The newer version of IP, that is the IPv6, on the other hand, offers us 128-bit addressing capability which means that there would be more addresses available for use and making the internet more secure. Check this post to learn more about the difference between IPv4 and IPv6.

IPv6 is a mandatory part of the Windows operating system and it is enabled. Microsoft says its Windows OS was designed specifically with IPv6 present. If IPv6 is disabled on Windows 7 or upper versions, some components such as Remote Assistance, HomeGroup, DirectAccess, and Windows Mail may actually fail to function. The problem gets compounded with a delay in the startup time of 5 seconds or more if IPv6 is disabled.

Disabling IPv6 delayed boot times by 5 seconds

For years, the method practiced regularly to disable IPv6 was setting the DisabledComponents value at 0xFFFFFFFF under the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP6\Parameters\

However, disabling IPv6 with the above registry value caused a 5-second boot delay in the Pre-Session Init Phase of OS startup.

The reason for the delay is that underlying code requires the upper 24-bits to be zero. Since the upper 24-bits have no meaning, setting a value of 0xFF is functionally identical to the 0xFFFFFFFF setting. Unfortunately, the DisabledComponents setting got documented with an all “F” bitmask. If you used this documented setting this unnecessarily results in a 5 second boot delay, says Microsoft.

The Windows versions impacted by the 5-second boot delay include Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Server Windows Server 2008 R2, Windows Server 2012, and Windows Server 2012 R2.

Now a 5-second boot delay may not matter on servers that rarely reboot, but on client operating systems, especially those that are configured with SSD disk drives where full OS boot times are approaching 30 seconds – it does matter!

Leaving IPv6 enabled on current Windows client and server operating systems remains the best practice configuration.

But if you do wish to disable IPv6, the correct setting to use in environments that legitimately need to disable IPv6 and IPv6 transition technologies is to configure the DisabledComponents registry key with a value of 0xFF, says Microsoft now.

If you have disabled IPv6 by setting DisabledComponents at 0xFFFFFFFF, it might be a good idea to make the change based on these new findings.

Disable IPv6 via Network Properties

  1. Click on Windows Search bar and search for Control Panel.
  2. When Control Panel opens, navigate to Network and Internet.
  3. Then, click on Network and Sharing Center, and after that click on Change Adapter Settings.
  4. At the Network Connections window, double click on the option Wi-Fi network adapter.
  5. After that, click on Properties.
  6. From the list, uncheck the box beside IPv6 and finally click OK.

Both the Fix-It and the manual steps mentioned in KB929852 have been updated to reflect this change.

It is always a good idea to create a system restore point before making any changes to your system.

I hope this article helps those who may be facing connectivity issues.

Why does my IPv6 have no Internet access?

It usually happens when you have an outdated driver or wrong DNS and incorrect HT mode. You may also need to run the Network troubleshooters and reset Winsock to fix the problem. If you have recently moved from IP4 to IP6, make sure to get it configured correctly.

Which problem does IPv6?

While IPv6 is an improvement over IPv4, but similar to how IPv4 was optimized, the exact needs to be done with IPv6. While it is faster, it also carries a lot of data. Things will get better as the adoption increases.

Как отключить IPv6 в Windows

Протокол TCP/IP версии 6 (IPv6) включен по умолчанию в актуальных версиях Windows, при этом редко используется и, в некоторых случаях, может приводить к проблемам с подключением к Интернету или ресурсам в локальной сети. Иногда отключение протокола позволяет решить такого рода проблемы.

В этой инструкции подробно о способах отключить IPv6 в Windows 11, Windows 10 и предыдущих версиях системы: с помощью настроек сетевых соединений, в редакторе реестра или командной строке и PowerShell.

Отключение IPv6 в свойствах сетевого подключения

Стандартный способ, одинаково работающий в Windows 11, 10, 8.1 и 7 — использование свойств сетевого подключения.

Шаги для отключения протокола IPv6 в свойствах подключения будут следующими:

  1. Нажмите клавиши Win+R на клавиатуре, а в Windows 11 или 10 можно нажать правой кнопкой мыши по кнопке «Пуск» и выбрать пункт «Выполнить». Введите команду ncpa.cpl и нажмите Enter.
  2. Нажмите правой кнопкой мыши по подключению, для которого нужно отключить IPv6 — вашему Интернет-соединению или подключению по локальной сети, выберите пункт «Свойства».
  3. Снимите отметку с компонента «IP версии 6 (TCP/IPv6)» и нажмите кнопку «Ок».

Готово, протокол IPv6 для выбранного подключения больше не задействован. При необходимости повторите действие для других подключений.

Командная строка

Вы можете полностью отключить IPv6 на компьютере для всех подключений с помощью команды командной строки. По сути, всё что она делает — это вносит соответствующие изменения в параметры протокола в реестре Windows:

reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v DisabledComponents /t REG_DWORD /d 255 /f

Если в дальнейшем вам потребуется откатить эти изменения, используйте команду

reg delete "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v DisabledComponents /f

Ещё один вариант полного отключения IPv6 в командной строке — набор следующих команд:

netsh interface teredo set state disabled netsh interface ipv6 6to4 set state state=disabled undoonstop=disabled netsh interface ipv6 isatap set state state=disabled

Отключение IPv6 в Windows PowerShell (Терминале Windows)

Ещё одна возможность — использование Windows PowerShell и имеющиеся команды для настройки сетевых адаптеров:

  1. Запустите PowerShell от имени администратора или Терминал Windows от имени администратора. В Windows 11 и Windows 10 это проще всего сделать с помощью контекстного меню кнопки «Пуск».
  2. Введите команду

Get-NetAdapterBinding -ComponentID ms_tcpip6
Disable-NetAdapterBinding -Name "ИМЯ" -ComponentID ms_tcpip6

После выполнения указанных команд IPv6 будет отключен.

Параметры TCP/IPv6 в реестре

Первый способ с командной строкой вносил изменения в реестр для отключения IPv6, сделать это можно и вручную с помощью редактора реестра:

  1. Нажмите клавиши Win+R на клавиатуре, введите regedit и нажмите Enter — это откроет редактор реестра.
  2. Перейдите к разделу

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters

Упомянутый параметр DisabledComponents может иметь другие значения:

  • Десятичное 32, шестнадцатеричное 20 — предпочитать IPv4 вместо IPv6
  • Десятичное 16, шестнадцатеричное 10 — отключить IPv6 для всех нетуннельных интерфейсов
  • Десятичное 1, шестнадцатеричное 1 — отключить IPv6 для всех туннельных интерфейсов
  • Десятичное 17, шестнадцатеричное 11 — отключить IPv6 на всех интерфейсах, кроме петлевых

А вдруг и это будет интересно:

  • Лучшие бесплатные программы для Windows
  • Не открываются Параметры Windows 11 — как исправить?
  • Компьютер не видит микрофон от наушников — варианты решения
  • Как скачать dinput8.dll для игр и программ
  • Как переименовать устройство в диспетчере устройств Windows
  • Внутренняя ошибка CallSpawnServer: Unexpected response — варианты решения
  • Windows 11
  • Windows 10
  • Android
  • Загрузочная флешка
  • Лечение вирусов
  • Восстановление данных
  • Установка с флешки
  • Настройка роутера
  • Всё про Windows
  • В контакте
  • Одноклассники
  • Живые обои на рабочий стол Windows 11 и Windows 10
  • Лучшие бесплатные программы на каждый день
  • Как скачать Windows 10 64-бит и 32-бит оригинальный ISO
  • Как смотреть ТВ онлайн бесплатно
  • Бесплатные программы для восстановления данных
  • Лучшие бесплатные антивирусы
  • Средства удаления вредоносных программ (которых не видит ваш антивирус)
  • Встроенные системные утилиты Windows 10, 8 и 7, о которых многие не знают
  • Бесплатные программы удаленного управления компьютером
  • Запуск Windows 10 с флешки без установки
  • Лучший антивирус для Windows 10
  • Бесплатные программы для ремонта флешек
  • Что делать, если сильно греется и выключается ноутбук
  • Программы для очистки компьютера от ненужных файлов
  • Лучший браузер для Windows
  • Бесплатный офис для Windows
  • Запуск Android игр и программ в Windows (Эмуляторы Android)
  • Что делать, если компьютер не видит флешку
  • Управление Android с компьютера
  • Как изменить DNS-сервер на Android
  • Не открываются Параметры Windows 11 — как исправить?
  • Компьютер не видит микрофон от наушников — варианты решения
  • Как скачать dinput8.dll для игр и программ
  • Как переименовать устройство в диспетчере устройств Windows
  • Внутренняя ошибка CallSpawnServer: Unexpected response — варианты решения
  • Как сканировать QR код на компьютере
  • Приложение Microsoft Store заблокировано администратором — как исправить?
  • Как исправить ошибку 0x80000003 Unknown Software Exception
  • Синий экран KERNEL SECURITY CHECK FAILURE — причины и варианты решения
  • Как отключить работу Microsoft Edge в фоновом режиме
  • Как отключить SmartScreen в Windows 11
  • Как исправить ошибку 0x80070103 при установке обновления
  • Как очистить недавние файлы в Windows 11
  • Nilesoft Shell — менеджер контекстных меню для Windows
  • Windows
  • Android
  • iPhone, iPad и Mac
  • Программы
  • Загрузочная флешка
  • Лечение вирусов
  • Восстановление данных
  • Ноутбуки
  • Wi-Fi и настройка роутера
  • Интернет и браузеры
  • Для начинающих
  • Безопасность
  • Ремонт компьютеров
  • Windows
  • Android
  • iPhone, iPad и Mac
  • Программы
  • Загрузочная флешка
  • Лечение вирусов
  • Восстановление данных
  • Ноутбуки
  • Wi-Fi и настройка роутера
  • Интернет и браузеры
  • Для начинающих
  • Безопасность
  • Ремонт компьютеров

Guidance for configuring IPv6 in Windows for advanced users

Windows Vista, Windows Server 2008, and later versions of Windows implement RFC 3484 and use a prefix table to determine which address to use when multiple addresses are available for a Domain Name System (DNS) name.

By default, Windows favors IPv6 global unicast addresses over IPv4 addresses.

Original KB number: 929852

Summary

It is common for IT administrators to disable IPv6 to troubleshoot networking-related issues such as name resolution issues.

Internet Protocol version 6 (IPv6) is a mandatory part of Windows Vista and Windows Server 2008 and newer versions. We do not recommend that you disable IPv6 or its components. If you do, some Windows components may not function.

We recommend using Prefer IPv4 over IPv6 in prefix policies instead of disabling IPV6.

Use registry key to configure IPv6

Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it, back up the registry for restoration in case problems occur.

The IPv6 functionality can be configured by modifying the following registry key:

Location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\
Name: DisabledComponents
Type: REG_DWORD
Min Value: 0x00 (default value)
Max Value: 0xFF (IPv6 disabled)

See startup delay occurs after you disable IPv6 in Windows if you encounter startup delay after disabling IPv6 in Windows 7 SP1 or Windows Server 2008 R2 SP1.

Additionally, system startup will be delayed for five seconds if IPv6 is disabled by incorrectly, setting the DisabledComponents registry setting to a value of 0xffffffff. The correct value should be 0xff. For more information, see Internet Protocol Version 6 (IPv6) Overview.

The DisabledComponents registry value doesn’t affect the state of the check box. Even if the DisabledComponents registry key is set to disable IPv6, the check box in the Networking tab for each interface can be checked. This is an expected behavior.

  • Administrators must create an .admx file to expose the registry settings of below table in a Group Policy setting.
  • You must restart your computer for these changes to take effect.
  • Values other than 0 or 32 causes the Routing and Remote Access service to fail after this change takes effect.

By default, the 6to4 tunneling protocol is enabled in Windows when an interface is assigned a public IPv4 address (Public IPv4 address means any IPv4 address that isn’t in the ranges 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16). 6to4 automatically assigns an IPv6 address to the 6to4 tunneling interface for each address, and 6to4 dynamically registers these IPv6 addresses on the assigned DNS server. If this behavior isn’t desired, we recommend disabling the IPv6 tunnel interfaces on the affected hosts.

You can also follow these steps to modify the registry key:

  1. Open an administrative Command Prompt window.
  2. Run the following command:

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v DisabledComponents /t REG_DWORD /d /f 

Note Replace the with the corresponding value.

How to calculate the registry value

Windows use bitmasks to check the DisabledComponents values and determine whether a component should be disabled.

To learn which component each bit (from low to high) controls, refer to the following table.

Name Setting
Tunnel Disable tunnel interfaces
Tunnel6to4 Disable 6to4 interfaces
TunnelIsatap Disable Isatap interfaces
Tunnel Teredo Disable Teredo interfaces
Native Disable native interfaces (also PPP)
PreferIpv4 Prefer IPv4 in default prefix policy
TunnelCp Disable CP interfaces
TunnelIpTls Disable IP-TLS interfaces

For each bit, 0 means false and 1 means true. Refer to the following table for an example.

Setting Prefer IPv4 over IPv6 in prefix policies Disable IPv6 on all nontunnel interfaces Disable IPv6 on all tunnel interfaces Disable IPv6 on nontunnel interfaces (except the loopback) and on IPv6 tunnel interface
Disable tunnel interfaces 0 0 1 1
Disable 6to4 interfaces 0 0 0 0
Disable Isatap interfaces 0 0 0 0
Disable Teredo interfaces 0 0 0 0
Disable native interfaces (also PPP) 0 1 0 1
Prefer IPv4 in default prefix policy. 1 0 0 0
Disable CP interfaces 0 0 0 0
Disable IP-TLS interfaces 0 0 0 0
Binary 0010 0000 0001 0000 0000 0001 0001 0001
Hexadecimal 0x20 0x10 0x01 0x11

Using the network properties GUI to disable IPv6 is not supported

This registry value doesn’t affect the state of the following check box. Even if the registry key is set to disable IPv6, the check box in the Networking tab for each interface can be selected. This is an expected behavior.

Reference

For more information about how to set IPv4 precedence over IPv6, see Using SIO_ADDRESS_LIST_SORT.

For more information about the related issues, see the articles below:

  • Example 1: On Domain Controllers, you might run into where LDAP over UDP 389 will stop working. See How to use Portqry to troubleshoot Active Directory connectivity issues
  • Example 2: Exchange Server 2010, you might run into problems where Exchange will stop working. See Arguments against disabling IPv6 and Disabling IPv6 And Exchange – Going All The Way.
  • Example 3: Failover Clusters See What is a Microsoft Failover Cluster Virtual Adapter anyway? and Failover Clustering and IPv6 in Windows Server 2012 R2.

Netmon 3.4 isn’t compatible with Windows Server 2012 or newer OS when LBFO NIC teaming is enabled. Use Message Analyzer instead.

Comments are closed, but trackbacks and pingbacks are open.