HomeNetworking › VLSM Designer

VLSM Designer

Give it a parent network and what each segment needs to hold. It works out the subnets, packs them without gaps, and tells you when they do not fit.

Local toolYour network plan stays in your browser. Nothing you enter is uploaded, logged, or sent to any server.

Segments

How the allocation works

Variable Length Subnet Masking means giving each segment only as much address space as it needs, instead of carving the parent into equal pieces. A link needing two addresses gets a /31; a floor of 500 machines gets a /23.

Largest first. Segments are allocated in descending order of size, which is what keeps the result compact and free of unusable gaps. Allocating smallest-first strands fragments too small to use. The table still shows your segments in the order you typed them — only the placement order differs.

Prefix choice. For IPv4 a segment needing n hosts gets the smallest prefix where 2host bits − 2 ≥ n, because the network and broadcast addresses cannot be assigned. Two exceptions: a segment needing two addresses gets a /31, which RFC 3021 defines as a point-to-point link with no broadcast, and one needing a single address gets a /32.

Growth is applied before sizing, so 100 hosts with 20% headroom is sized for 120 and lands on a /25. This frequently changes the prefix, which is the point of asking.

Anything that does not fit is listed separately with the reason. It is never silently dropped or quietly given a smaller subnet than it asked for.

Related tools

Subnet Calculator inspects a single prefix in detail. CIDR Aggregator merges a finished plan down to the fewest prefixes. IP Range to CIDR converts a range you were handed into blocks you can allocate from.