IPv4 网络工具箱

本地计算 IPv4 子网、掩码、主机容量、范围、地址转换和同子网判断。

输入内容只留在浏览器

交互式工具

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

IPv4 网络工具箱把子网计算、掩码转换、主机容量规划、范围转 CIDR、IPv4 表示形式转换、本地分类和同子网判断放在一个规范页面。每个模块保留自己的输入、验证、结果、复制和重置状态。

适用场景

  • 配置路由器或防火墙前规划局域网前缀和可用主机数。
  • 在不离开浏览器的情况下转换地址范围、掩码和 IPv4 表示形式。

使用步骤

  1. 从子网模块开始,可试用 192.168.1.10/24。
  2. 使用锚点导航切换到掩码、主机、范围、转换或同子网模块。
  3. 分别查看各模块结果;修正某个模块不会清除或覆盖其他模块。

实际示例

Subnet and range planning

192.168.1.10/24 reports the 192.168.1.0 network, 255.255.255.0 mask, 254 usable hosts, and range boundaries.

工作原理与规则

  • IPv4 addresses are converted to unsigned 32-bit integers. Masks must be contiguous, ranges are summarized exactly, and /31 follows RFC 3021 point-to-point behavior.

限制与注意事项

  • Classful networking is not used.
  • Ambiguous leading-zero IPv4 octets and non-contiguous masks are rejected.
  • The page does not contact DNS or any external network service.

常见问题

Why are several IPv4 functions on one page?

They share the same IPv4 addressing model, so grouping them avoids duplicate pages while keeping each module independent.

Does range-to-CIDR approximate?

No. Returned CIDR blocks do not cover addresses outside the requested IPv4 range.

参考资料

相关工具

提交工具反馈

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

提交工具反馈