如何让 Windows 释放 IPv6 地址

Mar*_*son 6 networking windows-7 ipv6

我有一个带有 IPv4 地址和 IPv6 地址的 Windows 系统,我正试图弄清楚如何释放我的 IPv6 地址。

我试过了ipconfig /release6,我收到这个错误

An error occurred while releasing interface Local Area Connection : The system cannot find the file specified.

An error occurred while releasing interface Loopback Pseudo-Interface 1 : The system cannot find the file specified.

No operation can be performed on isatap.{6B874193-B28A-4446-B6E6-8ADAC22E5090} while it has its media disconnected.
No operation can be performed on IP6Tunnel while it has its media disconnected.
Run Code Online (Sandbox Code Playgroud)

最后我还有我的 IPv6 地址。我可以使用发布 IPv4 地址ipconfig /release

  • 命令提示符正在运行提升
  • IPv6 地址由 DHCP 分配的

小智 2

具有管理员权限的Powershell

尝试删除 IP6Tunnel netsh interface ipv6 delete interface IP6Tunnel

或者

show ip addres:netsh interface ipv6 show address
删除 ip/use 接口名称: netsh interface ipv6 delete address Ethernet0 200x:x:x:x:x:x:x:x
netsh interface ipv6 删除地址 (接口索引或名称) (ipv6address)

显示路由:netsh interface ipv6 show route
删除路由:netsh interface ipv6 route delete 200x:x:x:x::/64 Ethernet0 store=persistent
netsh interface ipv6 Route delete (ipv6prefix::/64)(接口索引或名称)