Skip to main content

数学

Subnet Calculator

IP Subnet Calculator

/
🌐

Detailed Guide Coming Soon

We're working on a comprehensive educational guide for the Subnet Calculator in your language. The content below is shown in English.

是什么 Subnet Calculator?

▾

An IP subnet calculator finds network address, broadcast address, usable host range, wildcard mask, and number of hosts from an IP/CIDR input like 192.168.1.0/24.

PrimeCalcPro provides professional-grade tools trusted by businesses and academics.

公式

▾
f(x)Network address = IP AND subnet mask; Host count = 2^(32−prefix)−2; CIDR = /24 means /24 prefix bits

变量说明

▾
符号名称单位描述
IPIP addressIPv4 dotted decimal—
SMSubnet maskdotted decimal or /prefix—
nNumber of usable hosts——

如何 Subnet Calculator

▾
  1. 1CIDR /n: first n bits = network; remaining bits = host addresses
  2. 2Network address: all host bits set to 0
  3. 3Broadcast: all host bits set to 1
  4. 4Usable hosts = 2^(32−n) − 2

例题解析

▾
示例 1
已知:10.0.0.0/8
结果:Network: 10.0.0.0; Broadcast: 10.255.255.255; Hosts: 10.0.0.1–10.255.255.254 (16,777,214 hosts)

实际应用

▾
🏗️

Network administration and planning

🔬

IP addressing schemes

📊

VLAN and network segmentation

🏥

Network security and access control

Common Subnet Sizes

▾
CIDRHosts usableSubnet maskUse case
/302255.255.255.252Point-to-point links
/296255.255.255.248Small office
/24254255.255.255.0Standard LAN
/1665,534255.255.0.0Large network
/816.7M255.0.0.0Class A network

常见问题

▾
Q

What's a subnet mask?

A

Defines network portion of IP (mask 1s) and host portion (mask 0s). /24 = 255.255.255.0.

Q

How many hosts in /24 subnet?

A

2^(32−24)−2 = 2^8−2 = 256−2 = 254 usable addresses (network & broadcast reserved).

Q

What's CIDR notation?

A

/24 means first 24 bits are network. Shorthand for subnet mask. 192.168.1.0/24 is cleaner than /255.255.255.0.

参考资料

Mathematically verified
Reviewed October 2026
Our methodology

获取每周数学提示

加入 12,000+ 订阅者,每周都会获得计算器提示。

🔒
100% 免费
无需注册
✓
准确
经过验证的公式
⚡
即时
即时结果
📱
移动友好
所有设备

设置

隐私条款关于© 2026 PrimeCalcPro