How to disable IPv6

Binding for IPv6 should be enabled on all physical nics, uinless they are part of a team, in which case it should already be disabled. Virtual team nics should have IPv6 enabled if IPv4 is enabled. disabled on team virtual nics. The important point is to avoid a situation where the IPv4 binding is enabled, but not IPv6.

Physical nics should look like this:

SNAGHTMLa46429e

Or like this:

image

But never like this:

image

IPv6 should be disabled through the creation of the DisabledComponents registry key.

clip_image005

You can use the following powershell command to read the registry key:

(get-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters -Name DisabledComponents).DisabledComponents

clip_image006

And you can use this command to create or update it if it doesn’t exist or has the wrong value. A reboot is required to apply the changes.

New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters -Name DisabledComponents -PropertyType DWord -Value 0xffffffff

clip_image007

Author: DizzyBadger

SQL Server DBA, Cluster expert, Principal Analyst

3 thoughts on “How to disable IPv6”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.