Normalize a prefix and allocate aligned LAN, /31 point-to-point and /32 host requests inside it.
Networking
IPv4 CIDR and VLSM allocator
Normalize a prefix and allocate aligned LAN, /31 point-to-point and /32 host requests inside it.
Example inputs · Replace these with your measurements to build your plan.
Modes: lan reserves network/broadcast; p2p means exactly two endpoints; host means exactly one.
Method, example and sources
Normalize the parent IPv4 address to its prefix boundary.
Choose a power-of-two LAN block including network and broadcast addresses.
Allocate largest blocks first on aligned boundaries.
Use /31 only for two-endpoint point-to-point links and /32 for a single host.
Worked example. The /24 example allocates /26, /27, /31 and /32 blocks: 99 addresses allocated and 157 unallocated. A /31 supplies two endpoints without a broadcast address.
Largest blocks are allocated first. /31 is point-to-point; /32 is one host, not a normal LAN.
Parent network
192.0.2.0/24
Parent addresses
256
Parent usable endpoints
254
Allocated addresses
99
Unallocated addresses
157
IPv4 CIDR and VLSM allocator: detailed result
Request
Prefix
First endpoint
Last endpoint
Broadcast
Addresses
office
192.0.2.0/26
192.0.2.1
192.0.2.62
192.0.2.63
64
lab
192.0.2.64/27
192.0.2.65
192.0.2.94
192.0.2.95
32
uplink
192.0.2.96/31
192.0.2.96
192.0.2.97
No broadcast
2
loopback
192.0.2.98/32
192.0.2.98
192.0.2.98
No broadcast
1
DHCP reservations, gateways and overlapping existing allocations are not inferred. The parent input may contain a host address; it is normalized to its network boundary.
From the catalog
Routers & Gateways
Explore related listings, then confirm the exact model requirements against your plan. These listings are not an automatic compatibility or capacity verdict.
Different subnet requests need different block sizes. Allocating the largest first prevents a small allocation from fragmenting the boundary required by a larger network. A LAN request includes space for its network and broadcast addresses; it does not silently include your gateway, DHCP reservations or future endpoints. Add those requirements to the requested endpoint count.
What to verify next
A /31 has special point-to-point semantics under RFC 3021, and a /32 identifies one address. Neither is a general substitute for a broadcast LAN. The worksheet starts with a clean parent prefix and does not discover existing allocations, routes or DHCP exclusions. Reconcile the result with your address plan before configuring switches, routers or services.
Worked example
The /24 example allocates /26, /27, /31 and /32 blocks: 99 addresses allocated and 157 unallocated. A /31 supplies two endpoints without a broadcast address.