53
Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College [email protected] Last Updated: 3/30/2008

Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College [email protected] Last Updated: 3/30/2008

Embed Size (px)

Citation preview

Page 1: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

Chapter 6 VLSM and CIDR

CIS 82 Routing Protocols and Concepts

Rick Graziani

Cabrillo College

[email protected]

Last Updated: 3/30/2008

Page 2: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

2

Note My web site is www.cabrillo.edu/~rgraziani. For access to these PowerPoint presentations and other

materials, please email me at [email protected].

Page 3: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

3

For further information This presentation is an

overview of what is covered in the curriculum/book.

For further explanation and details, please read the chapter/curriculum.

Book: Routing Protocols

and Concepts By Rick Graziani and

Allan Johnson ISBN: 1-58713-206-0 ISBN-13: 978-58713-

206-3

Page 4: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

4

Topics Classful and Classless

Addressing Classful IP Addressing Classful Routing Protocols Classless IP Addressing Classless Routing Protocols

VLSM VLSM in Action VLSM and IP Addresses

CIDR Route Summarization Calculating Route

Summarization

Page 5: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

Classful and Classless Addressing

Classful IP Addressing Classful Routing Protocols Classless IP Addressing Classless Routing Protocols

Page 6: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

6

Classful and Classless Routing Protocols

Routing protocols: classful or classless.

This is a result of the evolution from classful to classless IPv4 addressing.

As networks began to use classless addressing, classless routing protocols had to be modified or developed to include the subnet mask in the routing update.

Page 7: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

7

Classful IP Addressing

When the ARPANET was commissioned in 1969, no one anticipated that the Internet would explode out of the humble beginnings of this research project.

Over the next decade, the number of hosts on the Internet grew exponentially, from 159,000 in October 1989 to over 72 million by the end of the millennium.

As of January 2007, there were over 433 million hosts on the Internet. Without the introduction of VLSM and CIDR notation in 1993 (RFC 1519),

Network Address Translation (NAT) in 1994 (RFC 1631), and private addressing in 1996 (RFC 1918), the IPv4 32-bit address space would now be exhausted.

Page 8: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

8

High-Order Bits

In the original specification of IPv4 (RFC 791), released in 1981, the authors established the classes to provide three different sizes of networks for large, medium, and small organizations.

As a result, Class A, B, and C addresses were defined with a specific format for the high-order bits.

Page 9: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

9

IPv4 Classful Addressing Structure

RFC 790 (released with RFC 791). Subnet mask for a network is determined based on its class. Only choices were networks with very large number of hosts, large number

of hosts, or few number of hosts. No medium sized networks Only these three choices.

16,384

Page 10: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

10

Classful Routing Protocol

Routing protocols, such as RIPv1, only needed to propagate the network address, not the subnet mask.

Subnet mask of a network address could be determined by the value of the first octet (or more accurately, the first 3 bits of the address).

The subnet mask was directly related to the network address.

Page 11: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

11

Classful Routing Protocol

R2 applies s0/0/0’s /24 subnet mask (same major network)

R3 applies the default /16 subnet mask (different major network)

R1 sends a subnet address out s0/0/0 (same major network)

R2 sends a summarized route out s0/0/1 (different major network)

Page 12: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

12

Moving Toward Classless Addressing

By 1992, members of the IETF had serious concerns about the exponential growth of the Internet and the limited scalability of Internet routing tables.

They were also concerned with the eventual exhaustion of 32-bit IPv4 address space.

1993, IETF introduced classless interdomain routing (CIDR) (RFC 1517). CIDR allowed the following: More efficient use of IPv4 address space Prefix aggregation, which reduced the size of routing tables

Page 13: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

13

Moving Toward Classless Addressing

To CIDR-compliant routers, address class is meaningless. The network portion of the address is determined by the network subnet

mask, also known as the: network prefix, or prefix length (/8, /19, and so on).

The network address is no longer determined by the class of the address. ISPs could now more efficiently allocate address space using any prefix

length, starting with /8 and larger (/8, /9, /10, and so on). ISPs were no longer limited to a /8, /16, or /24 subnet mask. Blocks of IP addresses could be assigned to a network based on the

requirements of the customer, ranging from a few hosts to hundreds or thousands of hosts.

Page 14: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

14

11111111.00000000.00000000.00000000 /8 (255.0.0.0) 16,777,216 host addresses

11111111.10000000.00000000.00000000 /9 (255.128.0.0) 8,388,608 host addresses 11111111.11000000.00000000.00000000 /10 (255.192.0.0) 4,194,304 host addresses 11111111.11100000.00000000.00000000 /11 (255.224.0.0) 2,097,152 host addresses 11111111.11110000.00000000.00000000 /12 (255.240.0.0) 1,048,576 host addresses 11111111.11111000.00000000.00000000 /13 (255.248.0.0) 524,288 host addresses 11111111.11111100.00000000.00000000 /14 (255.252.0.0) 262,144 host addresses 11111111.11111110.00000000.00000000 /15 (255.254.0.0) 131,072 host addresses 11111111.11111111.00000000.00000000 /16 (255.255.0.0) 65,536 host addresses 11111111.11111111.10000000.00000000 /17 (255.255.128.0) 32,768 host addresses 11111111.11111111.11000000.00000000 /18 (255.255.192.0) 16,384 host addresses 11111111.11111111.11100000.00000000 /19 (255.255.224.0) 8,192 host addresses 11111111.11111111.11110000.00000000 /20 (255.255.240.0) 4,096 host addresses 11111111.11111111.11111000.00000000 /21 (255.255.248.0) 2,048 host addresses 11111111.11111111.11111100.00000000 /22 (255.255.252.0) 1,024 host addresses 11111111.11111111.11111110.00000000 /23 (255.255.254.0) 512 host addresses 11111111.11111111.11111111.00000000 /24 (255.255.255.0) 256 host addresses 11111111.11111111.11111111.10000000 /25 (255.255.255.128) 128 host addresses 11111111.11111111.11111111.11000000 /26 (255.255.255.192) 64 host addresses 11111111.11111111.11111111.11100000 /27 (255.255.255.224) 32 host addresses 11111111.11111111.11111111.11110000 /28 (255.255.255.240) 16 host addresses 11111111.11111111.11111111.11111000 /29 (255.255.255.248) 8 host addresses 11111111.11111111.11111111.11111100 /30 (255.255.255.252) 4 host addresses 11111111.11111111.11111111.11111110 /31 (255.255.255.254) 2 host addresses 11111111.11111111.11111111.11111111 /32 (255.255.255.255) “Host Route”

Page 15: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

15

11111111.00000000.00000000.00000000 /8 (255.0.0.0) 16,777,216 host addresses

11111111.10000000.00000000.00000000 /9 (255.128.0.0) 8,388,608 host addresses 11111111.11000000.00000000.00000000 /10 (255.192.0.0) 4,194,304 host addresses 11111111.11100000.00000000.00000000 /11 (255.224.0.0) 2,097,152 host addresses 11111111.11110000.00000000.00000000 /12 (255.240.0.0) 1,048,576 host addresses 11111111.11111000.00000000.00000000 /13 (255.248.0.0) 524,288 host addresses 11111111.11111100.00000000.00000000 /14 (255.252.0.0) 262,144 host addresses 11111111.11111110.00000000.00000000 /15 (255.254.0.0) 131,072 host addresses 11111111.11111111.00000000.00000000 /16 (255.255.0.0) 65,536 host addresses 11111111.11111111.10000000.00000000 /17 (255.255.128.0) 32,768 host addresses 11111111.11111111.11000000.00000000 /18 (255.255.192.0) 16,384 host addresses 11111111.11111111.11100000.00000000 /19 (255.255.224.0) 8,192 host addresses 11111111.11111111.11110000.00000000 /20 (255.255.240.0) 4,096 host addresses 11111111.11111111.11111000.00000000 /21 (255.255.248.0) 2,048 host addresses 11111111.11111111.11111100.00000000 /22 (255.255.252.0) 1,024 host addresses 11111111.11111111.11111110.00000000 /23 (255.255.254.0) 512 host addresses 11111111.11111111.11111111.00000000 /24 (255.255.255.0) 256 host addresses 11111111.11111111.11111111.10000000 /25 (255.255.255.128) 128 host addresses 11111111.11111111.11111111.11000000 /26 (255.255.255.192) 64 host addresses 11111111.11111111.11111111.11100000 /27 (255.255.255.224) 32 host addresses 11111111.11111111.11111111.11110000 /28 (255.255.255.240) 16 host addresses 11111111.11111111.11111111.11111000 /29 (255.255.255.248) 8 host addresses 11111111.11111111.11111111.11111100 /30 (255.255.255.252) 4 host addresses 11111111.11111111.11111111.11111110 /31 (255.255.255.254) 2 host addresses 11111111.11111111.11111111.11111111 /32 (255.255.255.255) “Host Route”

ISPs no longer restricted to three classes. Can now allocate a large range of network addresses based on customer requirements

Page 16: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

16

CIDR and Route Summarization

Recall from Chapter 2, “Static Routing,” that you can create one static route for multiple networks.

Internet routing tables were now able to benefit from the same type of aggregation of routes.

The capability for routes to be summarized as a single route helped reduce the size of Internet routing tables.

A supernet summarizes multiple network addresses with a mask less than the classful mask.

Page 17: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

17

CIDR and Route Summarization

The 192.168.0.0/20, summarized or aggregated route includes all the networks belonging to customers A, B, C, and D.

192.168.0.0/23, 192.168.2.0/23, 192.168.4.0/22, and 192.168.8.0/21 are all subnets of 192.168.0.0/20

Page 18: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

18

CIDR and Route Summarization

Propagating VLSM and supernet routes requires a classless routing protocol, because the subnet mask can no longer be determined by the value of the first octet.

Although the network address is the same; one is a subnet of the other.

The subnet mask is required in the routing update to determine the network portion of the address.

The network portion of the address is used by the routing table to know whether or not the destination IP address of the packet is a match with the route in the routing table.

A classless routing protocol includes the subnet mask with the network address in the routing update.

Page 19: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

19

Classless Routing Protocol

Classless routing protocols include the subnet mask with the network address in their routing updates.

Page 20: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

20

Classless Routing Protocol

With a classless routing protocol: Networks 172.16.0.0/16, 172.17.0.0/16, 172.18.0.0/16, and 172.19.0.0/16 can be

summarized as 172.16.0.0/14, known as a supernet. The /14 (255.252.0.0) subnet mask is included in the routing update.

With a classful routing protocol: If R2 sends the 172.16.0.0 summary route without the /14 mask, R3 only knows

to apply the default classful mask of /16. Classful routing protocols cannot send supernet routes because the receiving

router will apply the default classful mask to the network address in the routing update.

Page 21: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

VLSM

VLSM in Action VLSM and IP Addresses

Page 22: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

22

VLSM

The network 10.0.0.0/8 has been subnetted using the subnet mask of /16, which gives the potential of 256 subnets:

10.0.0.0/1610.1.0.0/1610.2.0.0/16...10.255.0.0/16

Page 23: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

23

Any of these /16 subnets can be subnetted further. For example the 10.1.0.0/16 subnet is subnetted again using the /24 mask.

VLSM

Page 24: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

24

The 10.2.0.0/16 subnet is also subnetted again with a /24 mask. The 10.3.0.0/16 subnet is subnetted again with the /28 mask. The 10.4.0.0/16 subnet is subnetted again with the /20 mask.

VLSM

Page 25: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

25

Individual host addresses are assigned from the addresses of “sub-subnets.”

For example, the 10.1.0.0/16 subnet divided into /24 subnets. The 10.1.4.10 address would now be a member of the more specific subnet

10.1.4.0/24.

VLSM10.1.4.10/24

Page 26: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

26

VLSM: A different way to look at it

The 10.0.0.0/8 network is subnetted with a /16 mask on the first round of subnetting.

You already know that borrowing 8 bits (going from /8 to /16) creates 256 subnets.

With classful routing, that is as far as you can go. You can choose only one mask for all your networks.

With VLSM and classless routing, you have more flexibility to create additional network addresses and use a mask that fits your needs.

Page 27: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

27

VLSM: A different way to look at it

For subnet 10.1.0.0/16 (see Figure 6-10), 8 more bits are borrowed again, to create 256 subnets with a /24 mask.

This mask will allow 254 host addresses per subnet. The subnets ranging from 10.1.0.0/24 to 10.1.255.0/24 are subnets

of the subnet 10.1.0.0/16

Page 28: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

28

VLSM: A different way to look at it

Subnet 10.2.0.0/16 is also further subnetted with a /24 mask Could be subnetted using a different mask (next)

The subnets ranging from 10.2.0.0/24 to 10.2.255.0/24 are subnets of the subnet 10.2.0.0/16.

Page 29: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

29

VLSM: A different way to look at it

Subnet 10.3.0.0/16 is further subnetted with a /28 mask (different mask!). This mask will allow 14 host addresses per subnet. Twelve bits are borrowed, creating 4096 subnets ranging from 10.3.0.0/28

to 10.3.255.240/28.

Page 30: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

30

VLSM: A different way to look at it

Subnet 10.4.0.0/16 is further subnetted with a /20 mask. This mask will allow 4094 host addresses per subnet. Four bits are borrowed, creating 16 subnets ranging from 10.4.0.0/20 to

10.4.240.0/20. These /20 subnets are big enough to subnet even further, allowing more

networks.

Page 31: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

31

VLSM

All other /16 subnets are still available for use as /16 networks or to be subnetted.

These subnets could be subnetted further!

Page 32: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

32

VLSM

All other /16 subnets are still available for use as /16 networks or to be subnetted.

Hosts are assigned an IP address and mask from a specific subnet.

10.2.1.55/24

10.2.5.55/24

10.4.0.55/20

Page 33: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

33

VLSM

All other /16 subnets are still available for use as /16 networks or to be subnetted.

Host can only be a member of the subnet. Host can NOT be a member of the network that was subnetted.

10.2.1.55/24

10.2.0.55/16

NO!

YES!

Page 34: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

34

VLSM 1

Page 35: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

35

VLSM 1

255.255.255.240 or /28

Page 36: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

36

VLSM 2

/30 – Gives 4 addresses

- 2 usable host addresses

Page 37: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

37

VLSM 2 – Possible /30 options

128 64 32 16 8 4 2 1.64 0 1 0 0 0 0 0 0.96 0 1 1 0 0 0 0 0.128 1 0 0 0 0 0 0 0---------------------------------------.113 0 1 1 1 0 0 0 1.145 1 0 0 1 0 0 0 1.193 1 1 0 0 0 0 0 1

Conflicts

Existing /27 Networks

/30 Choices

Page 38: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

38

VLSM 2

Page 39: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

39

VLSM 2 – Our new VSLM Subnet

128 64 32 16 8 4 2 1

.64 0 1 0 0 0 0 0 0

.96 0 1 1 0 0 0 0 0

.128 1 0 0 0 0 0 0 0

----------------------------------------------

.192 1 1 0 0 0 0 0 0 (Net)

.193 1 1 0 0 0 0 0 1 (1st hst)

.194 1 1 0 0 0 0 1 0 (2nd hst)

.195 1 1 0 0 0 0 1 1 (Bcast)

Existing /27 Networks

.192 Network

Page 40: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

40

VLSM 2 – Other VLSM Subnets

128 64 32 16 8 4 2 1.64 0 1 0 0 0 0 0 0.96 0 1 1 0 0 0 0 0.128 1 0 0 0 0 0 0 0---------------------------------------.192 1 1 0 0 0 0 0 0.196 1 1 0 0 0 1 0 0.200 1 1 0 0 1 0 0 0.204 1 1 0 0 1 1 0 0.208 1 1 0 1 0 0 0 0.212 1 1 0 1 0 1 0 0.216 1 1 0 1 1 0 0 0.220 1 1 0 1 1 1 0 0

Existing /27 Networks

.192 Network

Other /30 Networks

Page 41: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

CIDR

Route Summarization Calculating Route Summarization

Page 42: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

42

CIDR

Classless interdomain routing (CIDR) is a prefix-based standard for the interpretation of IP addresses.

CIDR allows routing protocols to summarize multiple networks, a block of addresses, as a single route.

With CIDR, IP addresses and their subnet masks are written as four octets, separated by periods, and followed by a forward slash and a number that represents the subnet mask (slash notation).

An example is 172.16.1.0/24.

CIDR Report: www.cidr-report.org

Page 43: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

43

Route Summarization

Route summarization, also known as route aggregation, is the process of advertising a contiguous set of addresses as a single address with a less-specific, shorter subnet mask.

Remember that CIDR is a form of route summarization and is synonymous with the term supernetting.

ip route 172.16.0.0 255.248.0.0 s0/0/0

Page 44: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

44

Route Summarization

Remember: RIPv1 summarizes subnets to a single major network classful address when sending the RIPv1 update out an interface that belongs to another major network.

For example, RIPv1 will summarize 172.30.0.0/24 subnets (172,30.1.0/24, 172.30.2.0/24 and 172.30.3.0/24) as 172.30.0.0.

R3 applies the /8 mask (classful routing protocol)

Page 45: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

45

Route Summarization

CIDR ignores the limitation of classful boundaries and allows summarization with masks that are less than that of the default classful mask.

Only classless routing protocols can propagate supernets. Classless routing protocols include both the network address and the mask

in the routing update. Classful routing protocols cannot include supernets in their routing updates

because they cannot apply a mask less than the default classful mask.

ip route 172.16.0.0 255.248.0.0 s0/0/0

Page 46: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

46

Route Summarization

A static route can be used to configure a supernet route because the network address and mask are configured directly on that router.

Graphic shows a single static route with the address 172.16.0.0 and the mask 255.248.0.0 summarizing all the 172.16.0.0/16 to 172.23.0.0/16 classful networks.

ip route 172.16.0.0 255.248.0.0 s0/0/0

Page 47: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

47

Route Summarization

Although 172.22.0.0/16 and 172.23.0.0/16 are not shown in the graphic, these are also included in the summary route.

Notice that the /13 mask (255.248.0.0) is less than the default classful mask /16 (255.255.0.0).

Note: You might recall that a supernet is always a route summary, but a route summary is not always a supernet.

ip route 172.16.0.0 255.248.0.0 s0/0/0

Page 48: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

48

More specific match?

A router could have both a specific route entry and a summary route entry covering the same network.

If a router has two routes in routing table: 172.16.0.0/16 - S0/0/0 172.16.10.0/24 - S0/0/1

A packet with the destination IP address 172.16.10.10 would match both entries in the routing table.

But the packet has a more specific (longer) match with 172.16.10.0/24, so S0/0/1 would be used to forward this packet. A minimum of 24 bits match between the IP address and the route.

Packets for other subnets, such as destination IP address 172.16.20.10 would only match the summary route 172.16.0.0/16. A minimum of 16 bits match between the IP address and the route.

S0/0/0 S0/0/1

172.16.10.0/24172.16.0.0/16

Different example from book.

Page 49: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

49

Calculating Route Summarization

Calculating route summaries and supernets is identical to the process that you already learned in Chapter 2.

Page 50: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

50

Calculating Route Summarization

Consider the following four networks: 172.20.0.0/16 172.21.0.0/16 172.22.0.0/16 172.23.0.0/16

Page 51: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

51

Step 1. List the networks in binary format. Step 2. Count the number of leftmost matching bits to determine the mask for the

summary route. You can see in the figure that the first 14 leftmost bits match. 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 0 bits to determine the summarized network address. The matching bits with 0s at the end result 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/

Page 52: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

52

Topics Classful and Classless

Addressing Classful IP Addressing Classful Routing Protocols Classless IP Addressing Classless Routing Protocols

VLSM VLSM in Action VLSM and IP Addresses

CIDR Route Summarization Calculating Route

Summarization

Page 53: Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu Last Updated: 3/30/2008

Chapter 6 VLSM and CIDR

CIS 82 Routing Protocols and Concepts

Rick Graziani

Cabrillo College

[email protected]

Last Updated: 3/30/2008