vlsm and cidr review

24
1 VLSM and CIDR Review CSE 421 CCNA Exploration 2 Chapter 6 Thanks to S Ward Abingdon and Witney College

Upload: bat

Post on 20-Jan-2016

122 views

Category:

Documents


3 download

DESCRIPTION

VLSM and CIDR Review. CSE 421 CCNA Exploration 2 Chapter 6. Topics. Revision of classful and classless IP addressing Revision of VLSM and benefits Use of Classless Interdomain Routing (CIDR). Classful addressing. Network part and host part. Classful networks. IPv4 Address Exhaustion. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: VLSM and CIDR Review

1

VLSM and CIDR Review

CSE 421

CCNA Exploration 2

Chapter 6

Thanks to S Ward Abingdon and Witney College

Page 2: VLSM and CIDR Review

2

Topics

Revision of classful and classless IP addressing

Revision of VLSM and benefits Use of Classless Interdomain Routing (CIDR)

Page 3: VLSM and CIDR Review

3

Classful addressing

Page 4: VLSM and CIDR Review

4

Network part and host part

Page 5: VLSM and CIDR Review

5

Classful networks

Address class

First octet range

Number of networks

Hosts per network

Class A 0 to 127 128 (less 0 and 127)

16,777,214

Class B 128 to 191 16,348 65,534

Class C 192 to 229 2,097,152 254

Page 6: VLSM and CIDR Review

6

IPv4 Address Exhaustion

Page 7: VLSM and CIDR Review

7

Solutions

Long term: Change to IP version 6.

Plenty of addresses using a different scheme Short term: Use VLSM and CIDR to avoid wasting

addresses Use private addresses locally and NAT for internet

access – lets many hosts share a few public addresses

Page 8: VLSM and CIDR Review

8

Classful Subnetting

All subnets of a main network must have the same subnet mask.

This means that they must all have the same number of hosts.

Page 9: VLSM and CIDR Review

9

192.168.80.0/27

192.168.80.32/27

192.168.80.64/27 192.168.80.96/27

192.168.80.128/27

192.168.80.160/27

192.168.80.192/27

Classful Subnetting192.168.80.0/24

Page 10: VLSM and CIDR Review

10

Subnet 192.168.1.0/24

Need 6 networks, up to 26 hosts. Borrow 3 bits, /27, 255.255.255.224 Gives 8 networks, up to 30 hosts. Point to point need 2. 28x3 = 84 wasted

26 hosts 12 hosts

10 hosts

Page 11: VLSM and CIDR Review

11

Subnet 172.16.0.0/16

Need 6 networks, up to 500 hosts. Borrow 7 bits, /23, 255.255.254.0 Gives 128 networks, up to 510 hosts. Point to point need 2. 508x3 = 1524 wasted

500 hosts 350 hosts

100 hosts

Page 12: VLSM and CIDR Review

12

Waste

Classful subnetting wastes addresses.

If you are using private addresses then you may not be bothered.

Waste of public addresses does matter.

Page 13: VLSM and CIDR Review

13

Solution:

Variable Length Subnet Masking (VLSM)

Create subnets as per specific host requirements.

CSE 421

Need 10 addresses /28. Give them 16.

Need 500 addresses /23. Give them 512.

Page 14: VLSM and CIDR Review

14

Variable Length Subnet Masking (VLSM)

“If you know how to subnet, you can do VLSM.”

What’s the trick?

Always satisfy the requirements of your biggest LAN and then work your way down

….

Page 15: VLSM and CIDR Review

15

Variable Length Subnet Masking (VLSM)

Page 16: VLSM and CIDR Review

16

VLSM

201.1.0.0/22

201.1.4.0/23

201.1.6.0/24

201.1.7.0/24

Advertise?

Router A

How many entries does Router A has in it’s routing table?

Page 17: VLSM and CIDR Review

17

Route summarization

201.1.0.0/22 201.1.4.0/23 201.1.6.0/24 201.1.7.0/24

Same Difference starts here

Octet 3 in binary

00000000000001000000011000000111

Same Difference starts here

21 bits the same so use /21 for summary

Page 18: VLSM and CIDR Review

18

Route summarization

201.1.0.0/22

201.1.4.0/23

201.1.6.0/24

201.1.7.0/24

Advertise201.1.0.0/21

•A Supernet summarizes multiple network addresses with a mask that is less than (or a summary of) the classful mask.

Page 19: VLSM and CIDR Review

19

Route summarisation

What address would summarise: 170.16.0.0/16 170.17.0.0/17 170.17.128.0/17

15 the same altogether 170.16.0.0/15

Octet 2 in binary

000100000001000100010001

7 the same here

You can create static summary routes.Dynamic routes can be summarised.

Page 20: VLSM and CIDR Review

20

CIDR Concept

Classless InterDomain Routing (CIDR) introduced 1993 by IETF.

• 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, etc.).

Page 21: VLSM and CIDR Review

21

Classless Routing Protocols• Classless routing protocols are complaint with

CIDR which means they understand

• VLSM and • Route Summarization.

• All routing protocols are classless nowadays.

Page 22: VLSM and CIDR Review

22

VLSM Exercise

Subnet 172.16.0.0/16 by borrowing 4 bits. Then subnet the third subnet by borrowing 2

more bits. Write out the subnet addresses and masks.

Page 23: VLSM and CIDR Review

23

Subnetting 172.16.0.0/16172.16.0.0/20

172.16.16.0/20

172.16.32.0/20

172.16.48.0/20

172.16.64.0/20

172.16.80.0/20

172.16.96.0/20

172.16.112.0 /20

172.16.32.0/22

172.16.36.0/22

172.16.40.0/22

172.16.44.0/22

172.16.128.0/20

172.16.144.0/20

172.16.160.0/20

172.16.176.0/20

172.16.192.0/20

172.16.208.0/20

172.16.224.0/20

172.16.240.0 /20

Page 24: VLSM and CIDR Review

24

The End