Subnet Consolidation
Consolidate multiple contiguous subnets into one larger subnet
How to use
About this tool
Consolidates multiple contiguous subnets (CIDR notation) into one larger subnet. Determines in real time whether consolidation is possible, and if so, displays the consolidated subnet, original subnet count, and saved address count. If consolidation is not possible, clearly displays the reason. All calculations are done in the browser.
How to use
Enter the subnets to consolidate in CIDR notation (e.g., 192.168.1.0/26), one per line. Results are displayed in real time as you type. If consolidation is possible: The consolidated subnet (CIDR notation), original subnet count, consolidated subnet count (always 1), and saved address count are displayed. If consolidation is not possible: A "Cannot Consolidate" message and reason (e.g., "Subnets are not contiguous") are displayed. You can copy the results.
Options
Subnets to consolidate: Enter CIDR notation (e.g., 192.168.1.0/26), one per line. Consolidation requirements: All subnets must have the same prefix length, be in the same network address space (first 3 octets must match), be contiguous, and the subnet count must be a power of two (2, 4, 8, 16, ...). Results: The consolidated subnet (CIDR notation), original subnet count, consolidated subnet count (always 1), and saved address count are displayed.
Use cases
• Network design optimization (consolidating multiple small subnets into one to simplify management) • Efficient use of network resources (removing unnecessary subnet boundaries to save address space) • Network redesign (reviewing existing subnet configurations to identify consolidatable subnets) • Network management (verifying and documenting consolidated subnet information) • Router and switch configuration updates (updating settings based on consolidated subnet information)
How it works
Subnet consolidation determines whether multiple contiguous subnets can be consolidated and, if so, calculates the consolidated prefix length and network address. Consolidation checks: Verifies that all subnets have the same prefix length, are in the same network address space, are contiguous (previous subnet's broadcast address + 1 = next subnet's network address), and that the subnet count is a power of two. Consolidated prefix length calculation: consolidatedPrefix = originalPrefix - log2(subnetCount). Consolidated network address: The first subnet's network address. Saved address count calculation: Total addresses before consolidation - addresses after consolidation. All calculations are implemented with JavaScript bitwise operations and complete instantly in the browser.
Privacy and data
All calculations are done in the browser; no network information is sent to any server.
