08 Tech Group
返回计算器中心

IP Subnet 计算器

日常 / 其他
Subnet mask255.255.255.0
Network address192.168.1.0
Broadcast address192.168.1.255
First host192.168.1.1
Last host192.168.1.254
Usable hosts254
Total addresses256

IP Subnet 计算器

Subnetting organizes IP address space and helps networks scale efficiently. This IP Subnet 计算器 computes key subnet properties such as network address, broadcast address, subnet mask, and usable host range for an IPv4 block based on an input IP and prefix length. Use it to learn networking fundamentals.

使用方法

  1. Enter an IPv4 address.
  2. Enter the prefix length (CIDR) such as 24 or 16.
  3. Run the calculation to see network and broadcast addresses.
  4. Review the usable host range and number of hosts.

背后的逻辑 / 公式

Subnet mask is derived from prefix length by setting the first p bits to 1. Network address = IP AND mask. Broadcast address = network OR (NOT mask). Usable hosts depend on whether you exclude network and broadcast addresses.

实际示例

  • An IP in /24 networks typically uses 255.255.255.0 with 256 total addresses.
  • A /16 block contains 65,536 total addresses and a much larger host range.
  • The calculator updates network boundaries when prefix length changes.

常见问题

Does this support IPv6?

This estimator focuses on IPv4 subnet math unless your widget explicitly supports IPv6.

Are network and broadcast usable for hosts?

Often they are reserved. Some environments may allow different conventions, so check your networking policy.

What is CIDR?

CIDR expresses subnet size as a prefix length, such as /24, which determines how many network bits are used.

分享工具
IP Subnet 计算器 — Network and Host Range | 08 Tech Group