Route Summarization
Route Summarization
by Rene Molenaar
30 votes
In this lesson well take a look how you can configure summaries. First ill show you some
examples how to do so in binary and then well take a look at some tricks how you can do it in
decimal (which is much faster).
Lets say we want to create the most optimal summary for the following 4 networks:
11000000
11000000
11000000
11000000
10101000
10101000
10101000
10101000
00000000
00000001
00000010
00000011
00000000
00000000
00000000
00000000
Now we have to look how many bits these network addresses have in common. The first and
second octets are the same, so thats 16 bits.
Lets zoom in on the third octet:
00000000
00000001
00000010
00000011
The first 6 bits of the third octet are the same. Now we have enough information to create our
summary address.
8 + 8 + 6 = 22 bits
Our summary address will be 192.168.0.0 /22 (subnet mask 255.255.252.0).
Now you have seen how to do this in binary, lets do it in decimal. Theres a simple trick you can
use to calculate this summary.
As you can see we have 4 networks, or when we speak in blocks its a block of 4. Heres a
formula you can use:
256 number of networks = subnet mask for summary address.
For example: 256 4 networks = 252
The subnet mask will be 255.255.252.0
Another way to look at it is by using the CIDR notation. You know a /24 is a block of 256
addresses. Using a /23 means you have 2 x 256, and a /22 means you have 4 x 256.
Lets look at another example. Lets say we want to summarize the following networks:
172.16.0.0 / 16
172.17.0.0 / 16
172.18.0.0 / 16
172.19.0.0 / 16
172.20.0.0 / 16
172.21.0.0 / 16
172.22.0.0 / 16
172.23.0.0 / 16
Lets look at it in binary first. Ill write down the second octet since the first one is the same for
all network addresses:
16
17
18
19
20
21
22
23
00010000
00010001
00010010
00010011
00010100
00010101
00010110
00010111
The first 5 bits for all these addresses are the same. The first octet had 8 similar bits so thats 8 +
5 = 13 bits.
The summary address will be 172.16.0.0 /13 (subnet mask will be 255.248.0.0).
Calculating in binary like this works but its slow. Lets use our trick for this:
256 number of networks = subnet mask for summary address.
So thats 256 8 = 248. The subnet mask will be 255.248.0.0
We can also find it by just looking at the CIDR notations:
Previous Lesson
VLSM (Variable Length Subnet
Digg Del.icio.us
Chapter Information
Contents
1.
Objectives
2.
Key Terms
3.
Introduction (2.0.1.1)
4.
5.
6.
7.
Summary (2.6)
8.
Practice
9.
Chapter Description
This chapter explains the types of static routes as well as the advantages and disadvantages of each type. It also addresses
routing configuration and troubleshooting.
Step 1. List the networks in binary format. Figure 2-53 lists networks 172.20.0.0/16 to 172.23.0.0/16 in binary
format.
Step 2. Count the number of far left matching bits to determine the mask for the summary route. Figure 2-53
highlights the 14 far left matching bits. This is the prefix, or subnet mask, for the summarized route: /14 or
255.252.0.0.
Step 3. Copy the matching bits and then add zero bits to determine the summarized network address. Figure
2-53 shows that the matching bits with zeros at the end results in the network address 172.20.0.0. The four networks
172.20.0.0/16, 172.21.0.0/16, 172.22.0.0/16, and 172.23.0.0/16can be summarized into the single network
address and prefix 172.20.0.0/14.
The destination networks are contiguous and can be summarized into a single network address.
The multiple static routes all use the same exit interface or next-hop IP address.
Consider the example in Figure 2-55. All routers have connectivity using static routes.
R3#
Figure 2-56 displays the steps to summarize those three networks:
Step 2. To find the subnet mask for summarization, start with the far left bit, work to the right, finding all the
bits that match consecutively until a column of bits that do not match is found, identifying the summary boundary.
Step 3. Count the number of far left matching bits; in our example, it is 22. This number identifies the subnet
mask for the summarized route as /22 or 255.255.252.0.
Step 4. To find the network address for summarization, copy the matching 22 bits and add all 0 bits to the
end to make 32 bits.
After the summary route is identified, replace the existing routes with the one summary route.
R3#
The destination networks are contiguous and can be summarized into a single network address.
The multiple static routes all use the same exit interface or next-hop IPv6 address.
Refer to the network in Figure 2-57. R1 currently has four static IPv6 routes to reach networks 2001:DB8:ACAD:1::/64
to 2001:DB8:ACAD:4::/64.
2001:DB8:ACAD:1::/64 [1/0]
via 2001:DB8:FEED:1::2
2001:DB8:ACAD:2::/64 [1/0]
via 2001:DB8:FEED:1::2
2001:DB8:ACAD:3::/64 [1/0]
via 2001:DB8:FEED:1::2
2001:DB8:ACAD:4::/64 [1/0]
via 2001:DB8:FEED:1::2
R1#
Step 1. List the network addresses (prefixes) and identify the part where the addresses differ.
Step 4. Count the number of far left matching bits to determine the prefix length for the summary route.
Step 5. Copy the matching bits and then add zero bits to determine the summarized network address
(prefix).
Step 7. Append the prefix of the summary route (result of Step 4).
Figure 2-59 Identify the Part Where the Addresses Differ Expanded View
Figure 2-62 Add Zero Bits to Determine the Summarized Network Address
Figure 2-65 Remove Static Routes and Configure Summary IPv6 Route
The following output confirms that the summary static route is in the routing table of R1:
2001:DB8:ACA8::/45 [1/0]
via 2001:DB8:FEED:1::2
R1#
EIGRP = 90
IGRP = 100
OSPF = 110
IS-IS = 115
RIP = 120
The administrative distance of a static route can be increased to make the route less desirable than that of another
static route or a route learned through a dynamic routing protocol. In this way, the static route floats and is not used
when the route with the better administrative distance is active. However, if the preferred route is lost, the floating
static route can take over, and traffic can be sent through this alternate route.
A floating static route can be used to provide a backup route to multiple interfaces or networks on a router. It is also
encapsulation independent, meaning it can be used to forward packets out any interface, regardless of encapsulation
type.
An important consideration of a floating static route is that it is affected by convergence time. A route that is
continuously dropping and re-establishing a connection can cause the backup interface to be activated unnecessarily.
R1#
Notice in the following output that R1 automatically generates messages indicating that the serial interface to R2 is
down. A look at the routing table verifies that the default route is now pointing to R3 using the floating static default
route configured for next-hop 10.10.10.2.
R1#
The output confirms that traffic now flows directly between R1 and R3: