Subnet & VLSM calculator: plan IPv4 address space
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.
Your planning result
Aligned IPv4 allocation
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
| 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.
- AdvantechAdvantech ICR-4401 Wireless Router - 5 Ports - 4 RJ-45 Port(s) - 1 WAN Port(s) - 1 SFP (mini-GBIC) Slots - 4 GB - 10 Gigabit Ethernet - IEEE 802.3 - Wall Mountable, DIN Rail - 36 MonthICR-4401
$971.13
Back-orderedBack-ordered — estimated OEM lead time 3–8 weeks (Dec 3, 2026 – Jan 7, 2027 if ordered today).
- AdvantechAdvantech SmartFlex SR300 Wireless Router - 5 Ports - 4 RJ-45 Port(s) - 1 WAN Port(s) - Slots512 MB - Fast Ethernet - IEEE 802.3at, IEEE 802.3af - DIN RailBB-SR30000121-SWH
$608.83
Back-orderedBack-ordered — estimated OEM lead time 3–8 weeks (Dec 3, 2026 – Jan 7, 2027 if ordered today).
- AdvantechAdvantech SmartFlex SR300 Wireless Router - 5 Ports - 4 RJ-45 Port(s) - 1 WAN Port(s) - Slots512 MB - Fast Ethernet - IEEE 802.3at, IEEE 802.3af - DIN RailBB-SR30000125-SWH
$608.83
Back-orderedBack-ordered — estimated OEM lead time 3–8 weeks (Dec 3, 2026 – Jan 7, 2027 if ordered today).
- Allied TelesisAllied Telesis Compact Secure VPN Router - 2 Ports - Management Port - Gigabit Ethernet - DIN Rail, DesktopAT-AR2010V-10
$815.00
Back-orderedBack-ordered — estimated OEM lead time 3–8 weeks (Dec 3, 2026 – Jan 7, 2027 if ordered today).
- Allied TelesisAllied Telesis Secure VPN Router - 5 Ports - Management Port - Gigabit Ethernet - Rack-mountableAT-AR1050V-60
$472.01
Back-orderedBack-ordered — estimated OEM lead time 3–8 weeks (Dec 3, 2026 – Jan 7, 2027 if ordered today).
- ASUS Computer InternationalAsus ExpertWiFi EBG15 Router -TAA-compliant - 5 Ports - 4 RJ-45 Port(s) - 1 WAN Port(s) - Slots512 GB - Gigabit Ethernet - IEEE 802.1p, IEEE 802.1Q, IEEE 802.3, IEEE 802.3ab, IEEE 802.11i, IEEE 802.3u, IEEE 802.3xEBG15
$107.35
Back-orderedBack-ordered — estimated OEM lead time 3–8 weeks (Dec 3, 2026 – Jan 7, 2027 if ordered today).
How to use this result
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.








