vlsm and cidrebook.konfigurasi.net/cisco/vlsm+and+cidr.pdf• cidr (classless interdomain routing)...

26
1 © 2002, Svenska-CNAP Halmstad University Session Number Version 2002-1 VLSM and CIDR Malin Bornhager Halmstad University

Upload: vannhu

Post on 10-Apr-2019

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

1© 2002, Svenska-CNAP Halmstad UniversitySession NumberVersion 2002-1

VLSM and CIDRMalin Bornhager

Halmstad University

Page 2: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

222© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Objectives

• Classless routing

• VLSM

• Example of a VLSM calculation

Page 3: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

333© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Classless routing

• CIDR (Classless InterDomain Routing)– Network not identified based on default

classes

– Router uses prefix (/) to describe how many bits are network bits

– More efficient use of IPv4 address space

– Aggregation reduces the size of the routing table

Page 4: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

444© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Classless Routing Protocols

• Includes the subnet mask in the routing updates– RIP v2

– EIGRP

– OSPF

– IS-IS

– BGP

Page 5: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

555© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

CIDR and Route Summarization

The first 20 bits in all four networks are common, and can be summarized as a single route

Page 6: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

666© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Calculating Route Summarization

• Step 1: List the networks in binary format

192.168.0.0 11000000.10101000.00000000.00000000

192.168.2.0 11000000.10101000.00000010.00000000

192.168.4.0 11000000.10101000.00000100.00000000

192.168.8.0 11000000.10101000.00001000.00000000

Page 7: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

777© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Calculating Route Summarization

• Step 2: Count the number of left-most matching bits to determine the mask

192.168.0.0 11000000.10101000.00000000.00000000

192.168.2.0 11000000.10101000.00000010.00000000

192.168.4.0 11000000.10101000.00000100.00000000

192.168.8.0 11000000.10101000.00001000.00000000

20 matching bits, corresponds to /20 or 255.255.240.0

Page 8: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

888© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Calculating Route Summarization

• Step 3: Copy the matching bits and add zeros to determine the network address

192.168.0.0 11000000.10101000.00000000.00000000Copy Add zero bits

All four networks will be summarized as 192.168.0.0 /20

Page 9: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

999© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Route Summarization

Page 10: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

101010© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

What is VLSM?

• VLSM = Variable Length Subnet Mask

• Different subnet masks within the same network address space– ”Sub-subnetting”

• Used for efficient and scalable addressing

Page 11: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

111111© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Subnet mask

Page 12: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

121212© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Benefits with VLSM

• More efficient use of IP addresses– Variable size of the networks

• Greater capability to use route summarization– Will reduce the entries in the routing table

Page 13: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

131313© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

How to calculate VLSM:

• You have a network that is divided into the subnetwork address 172.16.32.0 /20

• This subnetwork is further divided into the VLSM address 172.16.32.0 /26

• Calculate the subnet addresses that can be used in the network

Page 14: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

141414© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

How to calculate VLSM:

• Use the following steps: – Write 172.16.32.0 in binary form

– Draw a vertical line between bit 20 and 21, where the original subnet boundary was

– Draw a vertical line between bit 26 and 27, to extend the subnet boundary

– Calculate the 64 subnet addresses with the bits between the two lines

• Remember: only unused subnets can be further subnetted

Page 15: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

151515© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

How to calculate VLSM:

Page 16: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

161616© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

How to calculate VLSM:

• Use the following steps: – Write 172.16.32.0 in binary form

– Draw a vertical line between bit 20 and 21, where the original subnet boundary was

– Draw a vertical line between bit 26 and 27, to extend the subnet boundary

– Calculate the 64 subnet addresses with the bits between the two lines

• Remember: only unused subnets can be further subnetted

Page 17: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

171717© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

How to calculate VLSM:

Page 18: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

181818© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

How to calculate VLSM:

• Use the following steps: – Write 172.16.32.0 in binary form

– Draw a vertical line between bit 20 and 21, where the original subnet boundary was

– Draw a vertical line between bit 26 and 27, to extend the subnet boundary

– Calculate the 64 subnet addresses with the bits between the two lines

• Remember: only unused subnets can be further subnetted

Page 19: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

191919© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

How to calculate VLSM:

Page 20: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

202020© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

How to calculate VLSM:

• Use the following steps: – Write 172.16.32.0 in binary form

– Draw a vertical line between bit 20 and 21, where the original subnet boundary was

– Draw a vertical line between bit 26 and 27, to extend the subnet boundary

– Calculate the 64 subnet addresses with the bits between the two lines

• Remember: only unused subnets can be further subnetted

Page 21: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

212121© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

How to calculate VLSM:

Page 22: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

222222© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

How to calculate VLSM:

• Use the following steps: – Write 172.16.32.0 in binary form

– Draw a vertical line between bit 20 and 21, where the original subnet boundary was

– Draw a vertical line between bit 26 and 27, to extend the subnet boundary

– Calculate the 64 subnet addresses with the bits between the two lines

• Remember: only unused subnets can be further subnetted

Page 23: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

232323© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Results

Page 24: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

242424© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Example: Point-to-Point Links

Page 25: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

252525© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Example: Point-to-Point Links

• Subnet 6 divided to sub-subnets

Page 26: VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing) – Network not identified based on default classes – Router uses prefix (/) to

262626© 2002, Svenska-CNAP / Halmstad University.Version 2002-1

Example: Point-to-Point Links