RouteDuck

IP addressing

Route Summarization Calculator

Paste a list of networks. You get the exact aggregate, and the single summary route together with the addresses it covers that your list does not.

Prefix form, address and mask, or lines pasted from a routing configuration. Lines starting with # or ! are skipped.

Exact aggregate

5 networks in, 2 out, covering the same 1,280 addresses and no others.

Prefixes
172.16.8.0/22
172.16.13.0/24

Single summary route

Summary
172.16.8.0/21
Mask
255.255.248.0
Addresses not in your list
768

The summary covers 768 addresses that are not in your list. Check the blocks below before advertising it.

Covered but not in your list
172.16.12.0/24
172.16.14.0/23
OSPF, on the area border router
area 1 range 172.16.8.0 255.255.248.0
EIGRP, on the outgoing interface
ip summary-address eigrp 100 172.16.8.0 255.255.248.0
BGP
aggregate-address 172.16.8.0 255.255.248.0 summary-only

Cisco IOS syntax. Replace the area and AS numbers with your own.

Two answers to one question

Summarising a list of routes can mean two things. The exact aggregate is the shortest list of prefixes that covers the same addresses as your list and no others. The single summary route is the smallest one prefix that contains everything, and it usually covers addresses that were not in your list.

10.0.1.0/24 and 10.0.2.0/24 cannot be joined exactly, because a /23 must start on an even third octet. Their single summary is 10.0.0.0/22, which also covers 10.0.0.0/24 and 10.0.3.0/24.

Why the extra addresses matter

A summary that covers more than its parts draws traffic for the extra addresses towards the summarising router. Check that list before advertising a summary, and check what your routing protocol does with traffic for the parts that have no more specific route.

How the single summary is found

Write the lowest and the highest address in binary and count the leading bits they share. That count is the prefix length, and those shared bits followed by zeros are the network.

Related tools