IPv4 VLSM & IPv6 Subnet Planner
Instant browser-side CIDR math for IPv4 networks and IPv6 /48 → /56 → /64 hierarchy planning.
Engineering Guide: IPv4 VLSM & IPv6 Subnetting Best Practices
Variable Length Subnet Masking (VLSM) allows network architects to divide an IPv4 address block into subnets of different sizes without wasting IP space. Defined in RFC 4632 (CIDR), classless routing replaced legacy Class A/B/C boundaries so a /22 block (1,024 addresses) can be carved into a /24 for servers, a /25 for staff Wi-Fi, and /30 or /31 (RFC 3021) point-to-point router links.
Why IPv6 Subnetting Is Different
Unlike IPv4 where conservation forces tight /28 or /29 allocations, IPv6 (RFC 4291 and BCP 157 / RFC 6177) standardizes every end-user LAN segment on a /64. Stateless Address Autoconfiguration (SLAAC, RFC 4862) requires a 64-bit interface identifier, meaning subnets smaller than /64 break SLAAC and cause unpredictable OS behavior. Enterprises and ISPs typically receive a /32 or /48, assign a /48 or /56 per physical site or customer, and allocate /64s to each VLAN.
Common Pitfalls & FAQ
Should I use /31 for point-to-point links? Yes—RFC 3021 allows /31 on router-to-router links, saving 50% of transit IPv4 space compared to /30. What is a wildcard mask? It is the bitwise inverse of the subnet mask (e.g., 0.0.0.255 for a /24), commonly used in Cisco ACLs and OSPF network statements.