CYBER LIBRARY
Explore the bootcamp
Connected systemsIntermediate

Variable-length subnet masks

Plan different-sized IPv4 subnets with aligned prefixes, non-overlapping ranges, and room for growth instead of assigning every segment the same block.

3 min readUpdated 12 Oct 20263 connections
Markdown

The idea

VLSM allocates subnets with different prefix lengths inside a larger address range. It helps avoid assigning the same oversized network to every requirement. Plan the largest required blocks first, respect prefix alignment, and leave appropriate capacity. Verify that ranges do not overlap. IPv4 usable-address conventions depend on context, so calculate with the actual design rather than repeating a single host-count rule everywhere.

In practice

A small office needs subnets of different sizes for users, management, and point-to-point connections. The plan assigns aligned prefixes sized for each role.

A common misunderstanding

Adding a desired host count to an arbitrary starting address does not necessarily create a valid aligned subnet.

Check your understanding

What should an allocation table show?

Think it through: Prefix, address range, intended role, capacity, and any reserved space.

Size the requirements before allocating

Imagine a fictional lab has one group needing about fifty ordinary host addresses and another needing about twenty. A conventional /26 provides a 64-address block, while a /27 provides a 32-address block. These sizes can fit the requirements better than assigning a /24 to every group.

Host-count conventions depend on the use case. Reserve space deliberately for gateways, infrastructure, and expected growth. A capacity calculation that exactly fits today's laptops may become difficult to maintain when another device category appears.

Alignment prevents accidental overlap

Starting with 192.168.50.0/24, one illustrative allocation is 192.168.50.0/26 followed by 192.168.50.64/27. The first block spans .0 through .63; the second spans .64 through .95. Their boundaries are aligned to their respective sizes and they do not overlap.

Writing a desired number of hosts after an arbitrary starting address does not create a valid prefix. Verify the network boundary mathematically and with an appropriate calculator, and explain the result rather than treating the tool output as magic.

Document what remains unassigned

The unused part of a larger block is operationally valuable. Record whether it is reserved for growth, future segments, or another owner. Without that record, two administrators can allocate overlapping space while both believe it is available.

The address plan should also describe the intended security role. A larger or smaller prefix changes address capacity, not the application's permission model. Communication restrictions still need an enforcement mechanism.

For a learning exercise, add a third small management segment to the illustrative allocation. Identify an aligned block that does not overlap either existing range, then state the conventional host range and any reservations. Explain where routing would connect the segments and which paths should be denied. A successful plan combines arithmetic, growth assumptions, ownership, and policy instead of optimizing address counts alone.

Keep exploring

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

Cisco: Networking basicsIETF: CIDR
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

4 notes · 5 connections
100%
Variable-length subnet masks · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (4)
FOLLOW ANOTHER THREADExplore the rest of the library
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.