VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing)...
Transcript of VLSM and CIDRebook.konfigurasi.net/Cisco/VLSM+and+CIDR.pdf• CIDR (Classless InterDomain Routing)...
![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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/1.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/2.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/3.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/4.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/5.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/6.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/7.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/8.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/9.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/10.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/11.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/12.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/13.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/14.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/15.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/16.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/17.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/18.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/19.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/20.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/21.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/22.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/23.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/24.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/25.jpg)
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](https://reader031.fdocuments.net/reader031/viewer/2022022805/5cad50d088c993d4278db32e/html5/thumbnails/26.jpg)
262626© 2002, Svenska-CNAP / Halmstad University.Version 2002-1
Example: Point-to-Point Links