Arostik Logo
ArostikVLARCK

Micro-Technology Solutions

NETWORKING & IP CONNECTIVITY

Calculator of IP Subnets & Network Planner

Calculate IPv4/IPv6 subnets, plan IPs by device type and download Excel inventory.

A/B/C are mask shortcuts (/8, /16, /24). Offices usually use C · /24.

IP planner (IPv4)

Pick networks → Auto or manual range → colored Excel (free IPs summarized if many).

Networks in the plan

Check networks to plan.

Calculate an IPv4 network above.

Select at least one network to configure categories.

Network Engineering & IP

IPv4 Bitwise Arithmetic, CIDR Notation, and VLSM Network Planning

Local Execution (RAM-Only)

Clean enterprise LAN architecture, cloud VPC layouts, and VLAN segmentation depend on dividing IPv4 address pools with exact binary boundaries so routing tables never waste capacity or suffer overlapping prefixes. Replacing legacy rigid Class A/B/C boundaries, Classless Inter-Domain Routing (CIDR, RFC 4632) draws subnet lines bit by bit from `/0` through `/32`.

Arostik's Subnet Calculator runs locally in volatile browser RAM using unsigned 32-bit bitwise operations (`AND`, `OR`, and shifts). Given any IPv4 address and CIDR prefix, it instantly derives Network ID, Broadcast address, usable host boundaries (`2^(32 - prefix) - 2`), dotted-decimal netmask, and the inverted Wildcard Mask used in Cisco ACLs and OSPF network statements.

When engineers allocate mixed-size blocks across one corporate supernet—such as `/24` user VLANs, `/27` server clusters, and `/30` or `/31` router links—visualizing binary block alignment prevents overlapping address allocations that trigger subtle Longest Prefix Match routing blackholes.

Because all arithmetic executes strictly on your device with zero external API calls, you can safely plan confidential internal RFC 1918 topologies (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) or proprietary public BGP allocations.

Step-by-Step Subnetting & Routing Troubleshooting Guide

Engineering checks to eliminate CIDR overlaps, netmask mismatches across peers, `/31` link rejections, and inverted ACL masks:

1. Cloud VPC or branch router rejects a new subnet citing overlapping CIDR blocks

Root cause: VLSM blocks were assigned smallest-first or misaligned on non-power-of-two octet boundaries, causing a larger block to collide with an existing prefix.

Recommended resolution: Sort required subnets strictly from largest host demand to smallest before assigning base addresses, and verify every Network-to-Broadcast boundary aligns with binary block sizes.

ip route show | sort -n  # Verify contiguous non-overlapping kernel prefixes

2. Two hosts sharing the same VLAN switch cannot ping one another despite matching first three octets

Root cause: Mismatched subnet masks on endpoints (e.g., one host uses `/25` while another uses `/24`), causing one host to forward local traffic via the default gateway.

Recommended resolution: Ensure every endpoint and the gateway interface inside the broadcast domain share the exact same netmask and prefix length.

ip -4 addr show && ip route get <TARGET_IP>

3. Legacy endpoint or switch rejects a /31 point-to-point link address

Root cause: RFC 3021 `/31` point-to-point addressing removes dedicated network and broadcast IDs, which older host IP stacks treat as invalid host addresses.

Recommended resolution: Use `/31` strictly on modern router-to-router P2P links supporting RFC 3021, and fall back to `/30` (2 usable hosts out of 4) for legacy gear.

show ip interface brief  # Verify interface /30 or /31 mask on router

4. Cisco ACL or OSPF statement matches unintended subnets or blocks legitimate hosts

Root cause: Standard subnet mask entered where an inverted Wildcard Mask was expected (e.g., `255.255.255.240` instead of `0.0.0.15`).

Recommended resolution: Compute the Wildcard by subtracting each netmask octet from `255.255.255.255` and update the ACL or routing area rule.

route print  # Windows: verify active interface mask and gateway route

RFC 4632 (CIDR) / RFC 1918 / RFC 3021 (/31) / VLSM

CIDR (RFC 4632), VLSM Alignment, and /30, /31, /32 Exceptions

IPv4 subnetting treats every address as a 32-bit integer split between network prefix bits (`1`s in the mask) and host bits (`0`s). Applying bitwise `AND` between the IP and netmask produces the Network ID (all host bits zero), whereas setting all host bits to `1` yields the Broadcast address.

With Variable Length Subnet Masking (VLSM), a parent allocation such as `10.20.0.0/22` is subdivided dynamically using the smallest power of two accommodating `hosts + 2`. Binary alignment enforces clean boundaries: `/26` blocks always start on multiples of `64`, and `/25` blocks always start on multiples of `128`.

RFC 3021 defines a key efficiency exception for router-to-router serial and Ethernet links: `/31` (`255.255.255.254`) assigns both addresses to link endpoints with zero wasted network or broadcast IDs. At the boundary, `/32` identifies a single exact host route frequently used for Loopback interfaces, BGP next-hops, and strict firewall rules.

Clean VLSM Allocation Walkthrough

To partition `192.168.10.0/24` for 100 Office hosts, 50 Servers, and two P2P links: assign `192.168.10.0/25` (`.1`–`.126`) first, `192.168.10.128/26` (`.129`–`.190`) second, then `192.168.10.192/30` and `192.168.10.196/30` with zero gaps or collisions.

Browser API Scope & Boundaries

Standard RFC 4632 calculations subtract 2 addresses (Network + Broadcast); note that major public cloud providers (AWS, Azure, GCP) reserve additional addresses inside each VPC subnet for internal gateway, DNS, and platform routing.

CIDR, VLSM & IPv4 Subnetting Glossary

Core terminology covering CIDR notation, Wildcard Masks, Broadcast addresses, and VLSM alignment.

Notación CIDRCIDR

What is CIDR notation?

Classless Inter-Domain Routing format indicating leading network mask bits (e.g., /24 equals 255.255.255.0, designating a 256-address block).

Dirección de BroadcastIPv4

What is a subnet Broadcast address?

The final address in an IPv4 subnet block reserved for broadcasting packets simultaneously to every connected host within that network broadcast domain.

Dirección de RedIPv4

What is a Network ID address?

The base address identifying the subnet where all host bits are zero, used by routing tables and unavailable for host device assignment.

Máscara WildcardRouting

What is a Wildcard mask?

The inverted binary complement of a subnet mask (e.g., 0.0.0.255), heavily utilized in Cisco IOS routing filters and Access Control Lists (ACLs).

Frequently Asked Questions (FAQ)

Why are 2 addresses subtracted from usable host counts in standard subnets?

The first address (all host bits 0) identifies the subnet itself, and the last address (all host bits 1) serves as the Layer 3 Broadcast address.

What is the practical difference between a /30 and a /31 subnet?

A `/30` consumes 4 IPs to give 2 usable host addresses; an RFC 3021 `/31` omits network and broadcast IDs on point-to-point router links to give 2 usable IPs using just 2 addresses.

How is a Wildcard Mask calculated for ACLs and OSPF?

Subtract the subnet mask bitwise from `255.255.255.255` (for example, `/24` `255.255.255.0` becomes wildcard `0.0.0.255`), where `0` requires an exact match and `1` acts as a wildcard.

How many usable hosts fit in a /24 versus a /25 network?

A `/24` accommodates 254 usable hosts (`2^8 - 2`), while splitting it into two `/25` subnets provides 126 usable hosts per half.

Recommended Aros Student guide:Subnet Masks and CIDR Notation Step-by-Step
Read guide