☰
WintelGuy.com

CIDR Split Calculator

Enter an IPv4 network or IP address, select the target subnet prefix length and the number of subnets to display, then press Submit to split the CIDR block into smaller subnets.

Enter an IPv4 address or CIDR block. An IP without a prefix is treated as a /24 block.
Select a prefix longer than the initial subnet's prefix, up to /31.
Choose the number of subnets to display, up to 256.
Display: Select display options for the results.

Visualize... http://wintelguy.com/cidr-split-calculator.pl?cidr=10.1.1.5/24&targetprefix=26&numsubnets=32&showranges=1&showintermediate=1
Base subnet: 10.1.1.0/24
IP range: 10.1.1.0-10.1.1.255
Target prefix: /26
Subnets shown: 4
/25/26
10.1.1.0/25
10.1.1.0-10.1.1.127
10.1.1.0/26
10.1.1.0-10.1.1.63
10.1.1.64/26
10.1.1.64-10.1.1.127
10.1.1.128/25
10.1.1.128-10.1.1.255
10.1.1.128/26
10.1.1.128-10.1.1.191
10.1.1.192/26
10.1.1.192-10.1.1.255

About CIDR Split Calculator

The CIDR Split Calculator divides an IPv4 network (CIDR block) into smaller subnets with a specified target prefix length.
Provide the following parameters to perform the calculation:

  • CIDR - Enter the base IPv4 network address in CIDR notation (for example, 192.168.1.0/24) or enter an individual IP address. An address without a prefix is interpreted as a /24 block. The supported prefix range is /8 through /31.
  • Target prefix length (subnet size) - Select the prefix length for the smaller subnets. The target prefix must be longer (numerically greater) than the initial network prefix. For example, splitting a /24 network into /26 subnets produces four smaller subnets, each containing 64 IP addresses.
  • Number of subnets to display - Specify how many subnets to display in the results table (up to 256). If the base network contains more subnets than the specified number, only the requested number of subnets is displayed.
  • Display options:
    • Display IP ranges - Controls whether the IP address range is displayed for each subnet. Enabled by default.
    • Display intermediate CIDRs - Defines whether the results include intermediate subnet prefixes between the base and the target subnets. When enabled (default), the table displays a column for each prefix length, starting one bit longer than the initial prefix and ending with the target prefix. Uncheck this option to display only the list of subnets with the target prefix.

How to use

  • Enter the base IPv4 network address in the CIDR field or provide an IP address.
  • Select the Target prefix length for the resulting smaller subnets. It must be longer than the base network prefix.
  • Specify the number of target subnets to display (up to 256).
  • Select the desired display options.
  • Click Submit to perform calculations and display the resulting subnets.
  • Use Copy table to send the resulting table to the clipboard for use in other applications, documents, or spreadsheets.
  • Click Copy link to copy a link to this page containing the entered CIDR and split configuration, allowing you to reopen or share the same calculator settings and results.

Understanding the results

The resulting table presents the calculated subnets in CIDR notation.

When Display intermediate CIDRs is enabled, additional columns show the intermediate subnets in the range between the initial network prefix and the target prefix. These columns illustrate how the original network is progressively divided into smaller subnet blocks. Cells span their corresponding child subnets, making it easier to see how the target subnets fit within the network hierarchy.

When Display IP ranges is enabled, each subnet or intermediate CIDR cell also displays its corresponding IP address range.

Understanding CIDR and VLSM

Classless Inter-Domain Routing (CIDR) is a method of allocating IP addresses and configuring IP routing that replaces the legacy class-based addressing system (Class A, B, and C). Instead of relying on fixed network boundaries, CIDR uses variable-length network prefixes, allowing IP address blocks to be divided and allocated more flexibly and efficiently.

CIDR notation represents an IPv4 network using an IP address followed by a slash and a prefix length. The prefix length specifies how many bits of the address identify the network portion, with the remaining bits available for host addresses.

For example, 192.168.1.0/24 represents a network with a 24-bit prefix and an equivalent subnet mask of 255.255.255.0. The remaining rightmost 8 bits are used to identify individual host addresses within the network.

Key CIDR concepts:

  • Prefix length: Defines the size of a network by specifying the number of bits reserved for its network portion. A longer prefix represents a smaller address block, while a shorter prefix represents a larger block.
  • Address aggregation: Allows multiple contiguous IP address blocks to be represented by a single, larger CIDR block. This reduces the number of routing entries required and helps simplify Internet routing.
  • Efficient address allocation: Allows organizations to obtain and divide address space into appropriately sized networks without being restricted by traditional class-based boundaries.

Variable Length Subnet Masking (VLSM) is a technique that utilizes CIDR framework to divide IP address space into subnets with different prefix lengths. VLSM allows network administrators to create subnets with varying masks lengths and allocate IP addresses with more granularity, assigning larger subnets to areas where more IP addresses are needed and smaller subnets to areas with fewer hosts. This allows for more efficient use of address space compared to traditional fixed-length subnetting.

CIDR and VLSM are closely related concepts: Together, they enable more efficient utilization of available IP address space.

How to Split a Subnet (CIDR Block)

An IPv4 address consists of 32 bits. The CIDR prefix length determines how many bits identify the network, while the remaining bits identify addresses within that network.

For example, 192.168.1.0/24 has a 24-bit network prefix and an 8-bit host portion. It defines a subnet containing 256 IP addresses, ranging from 192.168.1.0 to 192.168.1.255. Of these, 192.168.1.0 is the network address, 192.168.1.255 is the broadcast address, and the remaining 254 addresses (192.168.1.1 through 192.168.1.254) are available for host assignment.

Splitting a CIDR block involves dividing an existing IP network into multiple smaller subnets by increasing the prefix length. Each additional prefix bit halves the address space available in each resulting subnet.

For example, increasing the prefix length from /24 to /25 divides the 192.168.1.0/24 subnet into two smaller subnets. The resulting /25 subnets use the subnet mask 255.255.255.128 and contain 128 IP addresses each:

  • 192.168.1.0/25 with IP range: 192.168.1.0 - 192.168.1.127
  • 192.168.1.128/25 with IP range: 192.168.1.128 - 192.168.1.255

Similarly, increasing the prefix length from /24 to /26 divides the original subnet into four smaller subnets. Each /26 subnet uses the subnet mask 255.255.255.192 and contains 64 IP addresses:

  • 192.168.1.0/26 with IP range: 192.168.1.0 - 192.168.1.63
  • 192.168.1.64/26 with IP range: 192.168.1.64 - 192.168.1.127
  • 192.168.1.128/26 with IP range: 192.168.1.128 - 192.168.1.191
  • 192.168.1.192/26 with IP range: 192.168.1.192 - 192.168.1.255

This process can continue by progressively increasing the prefix length and dividing the address space into smaller subnets. The smallest commonly used IPv4 subnet for point-to-point connections is /31, which contains two IP addresses that can both be used as endpoints. A /32 prefix represents a single IP address, typically used to identify an individual host or network interface.