关闭或重新启用网卡的 IPv6

用 Disable-NetAdapterBinding / Enable-NetAdapterBinding 按网卡切换 ms_tcpip6(IPv6)绑定。

Windows适配器IPv6PowerShell中风险
以管理员身份运行 `Disable-NetAdapterBinding -Name "网卡名" -ComponentID ms_tcpip6`,即可关闭该网卡的 IPv6。

01命令

命令
$ Disable-NetAdapterBinding -Name "以太网" -ComponentID ms_tcpip6

02作用说明

IPv6 是每个网卡上的一种协议绑定,遇到网页打开慢、VPN 冲突或应用优先走坏掉的 IPv6 路由等问题时,关闭它常能解决。先用 `Get-NetAdapterBinding -ComponentID ms_tcpip6` 查看哪些网卡启用了 IPv6,命令中的网卡名要与显示的完全一致。此命令只影响指定的网卡,其他网卡不受影响。

03风险

风险中风险
使用条件Administrator terminal required. Adapter name must match `Get-NetAdapter` output.
!注意: 微软建议没有具体问题时保持 IPv6 开启。问题解决后用 Enable-NetAdapterBinding 重新启用。

04撤销

撤销
$ Enable-NetAdapterBinding -Name "以太网" -ComponentID ms_tcpip6

05来源

  • Disable-NetAdapterBinding
    Microsoft Learn · vendor-doc · 2026-09-17
    依据: Disables a binding on an adapter; ComponentID ms_tcpip6 targets the IPv6 protocol binding.
  • Get-NetAdapter
    Microsoft Learn · vendor-doc · 2026-09-17
    依据: Returns adapter objects with Status, LinkSpeed and MacAddress properties.

最后验证: 2026-09-18 · 分类: 网络

06相关方案