Find the gap when summarizing nonadjacent IPv4 CIDRs

Check the covering supernet for 10.14.8.0/24 and 10.14.10.0/24, and count the extra addresses it would advertise.

Try these inputs

Worked calculation

  1. The outer addresses 10.14.8.0 and 10.14.10.255 have 22 common leading bits.
  2. The resulting 10.14.8.0/22 covers third octets 8 through 11, for 4 × 256 = 1,024 addresses.
  3. Only two of the /24 blocks are allocated, for 512 addresses. The /24s for third octets 9 and 11 add 512 unintended destinations.

Inputs

One name,hosts or name,/prefix per line. Leave blank for CIDR details only.
Optional. Separate blocks with commas or spaces.

Calculated in your browser

Results

Network CIDR
10.14.8.0/22
Usable in parent
1,022
Total in parent
1,024

IPv4 address-space map

IPv4 address-space mapBlock widths follow the share of the parent address space. The lower axis shows positions from the first to the last address.10.14.8.0/221,024 addressesParent space0%25%50%75%100%10.14.8.010.14.11.255
  • Parent range
Block widths follow the share of the parent address space. The lower axis shows positions from the first to the last address.
Network
10.14.8.0
Broadcast
10.14.11.255
First usable
10.14.8.1
Last usable
10.14.11.254
Subnet mask
255.255.252.0
Wildcard
0.0.3.255
Input bits
00001010 00001110 00001000 00000000
Mask bits
11111111 11111111 11111100 00000000
Network bits
00001010 00001110 00001000 00000000
Covering supernet
10.14.8.0/22
Coverage
512 extra addresses

Questions

What does an extra-address count of 512 mean for this advertisement?

The covering route includes 512 IPs outside the two source CIDRs. Confirm the router has an appropriate policy for all of them before using that route.

Will entering the same /24 twice fill a missing gap?

The calculator counts the union of address ranges once. A duplicate leaves the gap unchanged.

References