IPv6 工具箱

本地展开、压缩、规范化、分类并计算 IPv6 前缀范围。

输入内容只留在浏览器

交互式工具

启用 JavaScript 后可使用交互控件;下方说明无需 JavaScript 也可阅读。

IPv6 工具箱合并地址格式化和前缀范围计算。格式化模块按 RFC 5952 输出规范形式,前缀模块使用 128 位整数计算起止地址。

适用场景

  • 在写入文档或配置前规范化 IPv6 地址。
  • 检查 /64、/128 或其他 IPv6 前缀的起始和结束地址。

使用步骤

  1. 输入不含 zone ID 的 IPv6 地址。
  2. 使用格式化模块查看展开形式和 RFC 5952 形式。
  3. 使用前缀模块查看起始地址、结束地址和精确地址数量。

实际示例

Documentation prefix

2001:db8::1 is recognized as documentation space and is not suitable for public lookup.

工作原理与规则

  • The parser expands :: once, converts eight 16-bit groups to a 128-bit BigInt, and compresses the longest zero run according to RFC 5952.

限制与注意事项

  • Zone IDs such as %en0 are not supported.
  • DNS, reverse DNS, and network lookup are not performed.
  • IPv4-mapped IPv6 is parsed but no X-forwarded or proxy interpretation is attempted.

常见问题

Can one zero group be compressed?

No. RFC 5952 avoids compressing a single 0000 group.

Does this page query the network?

No. IPv6 formatting and prefix calculations run locally in the browser.

参考资料

相关工具

提交工具反馈

邮件只包含页面信息,不会包含工具输入或结果。

提交工具反馈