范围: /0 - /32
Total addresses: 256
Usable hosts: 254
Host bits: 8
Network bits: 24
The number of addresses in a subnet is calculated using the formula: 2^(host bits), where host bits = total bits - prefix length.
IPv4 Address Counts (32-bit addresses):
IPv6 Address Counts (128-bit addresses):
Usable Hosts Calculation (IPv4 only):
For standard subnets (/1 through /30), usable hosts = total addresses - 2 (excluding network address and broadcast address). For /31 networks (RFC 3021), both addresses are usable for point-to-point links. For /32, there is only 1 address (host route).