子网计算器
通过IP地址和CIDR表示法计算子网信息。获取网络地址、广播地址、主机范围、子网掩码等。
输入带CIDR前缀的IP地址,例如 192.168.1.0/24
| 网络地址 | 192.168.1.0 |
| 子网掩码 | 255.255.255.0 |
| 广播地址 | 192.168.1.255 |
| 第一个可用主机 | 192.168.1.1 |
| 最后一个可用主机 | 192.168.1.254 |
| 通配符掩码 | 0.0.0.255 |
| 总主机数 | 256 |
| 可用主机数 | 254 |
| IP类别 | C |
| 地址类型 | 私有 |
二进制表示
IP地址: 11000000.10101000.00000001.00000000
子网掩码: 11111111.11111111.11111111.00000000
网络: 11000000.10101000.00000001.00000000
使用方法
通过IP地址和CIDR表示法计算子网信息。获取网络地址、广播地址、主机范围、子网掩码等。
- 1Type an IP address with its CIDR prefix into the input field — for example, 192.168.1.0/24. Or click one of the example buttons below the field to auto-fill a common network.
- 2The calculator instantly shows the network address, subnet mask, broadcast address, first and last usable hosts, total and usable host counts, IP class, and whether it is a private or public range.
- 3Check the Binary Representation section at the bottom to see the IP address, subnet mask, and network address in dotted binary notation — useful for visualizing how the subnet mask splits the address.
- 4Use the wildcard mask output directly in Cisco ACLs or OSPF configurations.
- 5Try the quick-fill examples (10.0.0.0/8, 172.16.0.0/12, etc.) to compare class A, B, and C subnets side by side.
主要功能
- Instant CIDR calculation — network address, mask, broadcast, and host range appear as you type
- Binary representation — see the IP and mask in dotted binary to understand bit-level subnet logic
- Wildcard mask output — ready to paste into Cisco ACLs and routing configurations
- Private/public detection — identifies RFC 1918 private address ranges automatically
- Example quick-fill — common subnets (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/24) to explore immediately