CIRCUITO
CARIOCA TI · DOCUMENTATION
♙
Networking calculator

IPv4 Calculator

Calculate IPv4 network address, subnet mask, wildcard, broadcast, host range, address capacity and CIDR details.

IPv4CIDRSubnettingSubnet MaskWildcardRFC 3021

IPv4 subnet calculator

Enter any IPv4 host address and CIDR prefix to identify its subnet and addressing details.

Example: 192.168.10.34
From /0 to /32.
IPv4 SUBNETTING

How to calculate an IPv4 subnet with CIDR

An IPv4 address contains 32 bits. The CIDR prefix indicates how many of those bits identify the network, while the remaining bits identify addresses inside the subnet. For example, /24 means 24 network bits and 8 host bits, producing the subnet mask 255.255.255.0.

CIDR

Network address, broadcast and usable host range

For conventional prefixes from /0 through /30, the first address identifies the subnet and the last address is the directed broadcast address. Addresses between them form the traditional usable host range. /31 and /32 require different interpretation and are handled separately by this calculator.

RFC 3021

Why a /31 can have two usable addresses

RFC 3021 defines the use of 31-bit IPv4 prefixes on point-to-point links. In this context, the two addresses that would traditionally look like network and broadcast addresses are interpreted as host addresses for the two endpoints, reducing address consumption on point-to-point infrastructure.

WILDCARD

Subnet mask versus wildcard mask

The subnet mask marks the network-prefix bits with 1s. The wildcard is its bitwise inverse: mask bits set to 1 become 0 and vice versa. Wildcards are widely encountered in network configurations such as access control lists and routing-related match rules, depending on platform and syntax.

ADDRESS SCOPE

Public, private and special-purpose IPv4 addresses

Not every syntactically valid IPv4 address is globally routable. Private RFC 1918 ranges, shared address space, loopback, link-local, documentation, multicast and other special-purpose ranges have specific roles. The calculator identifies common address scopes to make the result more useful for network planning and troubleshooting.

FAQ

IPv4 calculator frequently asked questions

What does /24 mean in IPv4?+

It means that 24 of the 32 IPv4 bits form the network prefix. The equivalent subnet mask is 255.255.255.0, leaving 8 host bits.

How many usable hosts does a /24 have?+

A conventional /24 contains 256 total addresses. Excluding the network and directed broadcast addresses leaves 254 traditionally usable host addresses.

Does a /31 have a network and broadcast address?+

On a point-to-point link using RFC 3021, both addresses in the /31 are interpreted as host endpoints and the traditional network/broadcast interpretation is not used for those two addresses.

What is a /32 used for?+

A /32 identifies exactly one IPv4 address. It is commonly seen in host routes and loopback addressing.

What is the difference between subnet mask and wildcard?+

A wildcard is the bitwise inverse of the subnet mask. It is commonly encountered in ACLs and some routing or matching configurations.

Is every valid IPv4 address public?+

No. IPv4 includes private, shared, loopback, link-local, documentation, multicast and other special-purpose address ranges in addition to globally routable public space.