PasteZap
🌐 简体中文
免费 · 无需注册

免费 · 网络与 IT 基础设施

子网计算器(IPv4 与 IPv6).

计算任意 IPv4 或 IPv6 前缀的网络地址、广播地址、主机范围、子网掩码、通配符掩码和可用主机数,并可拆分为更小的子网。

开始之前

部分技术控件使用英语。支持 Unicode 文本;文件格式和输出语言取决于具体工具。

下面以英语列出技术限制。处理大型文件或使用结果之前,请先查看这些限制。

CALCULATED IN YOUR BROWSER · NOTHING IS UPLOADED

Accepts CIDR (/26), a dotted mask (192.168.1.10 255.255.255.0 or /255.255.255.0) and IPv6 prefixes.

0 turns the subnet list off. Must be longer than the network prefix.

Usable hosts62192.168.10.0/26
Network address
192.168.10.0/26
Subnet mask
255.255.255.192
Wildcard (inverse) mask
0.0.0.63
Broadcast address
192.168.10.63
First usable host
192.168.10.1
Last usable host
192.168.10.62
Usable hosts
62
Total minus network and broadcast
Total addresses
64
Address type
Private (RFC 1918)
Historic class
C (classless routing ignores it)
Address in binary (| = prefix boundary)
11000000.10101000.00001010.00|100101
Mask in binary
11111111.11111111.11111111.11000000
Hexadecimal
0xC0A80A25 · C0.A8.0A.25
32-bit integer
3232238117
Reverse DNS (PTR) name
37.10.168.192.in-addr.arpa
IPv4-mapped IPv6
::ffff:192.168.10.37

4 subnets of /28

SubnetFirst hostLast hostBroadcastUsable hosts
192.168.10.0/28192.168.10.1192.168.10.14192.168.10.1514
192.168.10.16/28192.168.10.17192.168.10.30192.168.10.3114
192.168.10.32/28192.168.10.33192.168.10.46192.168.10.4714
192.168.10.48/28192.168.10.49192.168.10.62192.168.10.6314
  • 192.168.10.37 is a host inside the network 192.168.10.0/26.
  • Calculated locally; nothing is sent or probed on the network.
  • Usable hosts exclude the network and broadcast addresses, except /31 (RFC 3021) and /32.

使用子网计算器(IPv4 与 IPv6)的步骤

输入数据或选择文件,调整设置并生成结果。复制或下载之前,请检查结果。

限制与支持格式

输入内容在您的设备上处理。

英语技术说明

Up to 4,096 subnets per CSV and 256 shown on screen. /31 follows RFC 3021 (two usable addresses) and /32 is a single host. Address types follow the IANA special-purpose registries. Everything is calculated in your browser; nothing is sent or probed on the network.

The prefix becomes a bit mask; the network address is the address AND the mask, the broadcast is the network OR the inverted mask. IPv6 values are handled as 128-bit integers and printed in RFC 5952 compressed form. Binary, hexadecimal, integer and reverse-DNS forms are derived from the same value.

192.168.10.37/26 gives network 192.168.10.0, broadcast 192.168.10.63, hosts .1 to .62 and 62 usable addresses; splitting into /28 lists four subnets.