Docsity

Understanding VLSM and CIDR: Classless IP Addressing and Routing, Schemes and Mind Maps of Network security

Toggle sidebar
bg1
1
1
VLSM and CIDR
RIPv2
Routing Protocols and
Concepts – Chapters 6 and 7
2
Objectives
Compare and contrast classful and classless
IP addressing.
Review VLSM and explain the benefits of
classless IP addressing.
Describe the role of the Classless Inter-
Domain Routing (CIDR) standard in making
efficient use of scarce IPv4 addresses
3
Introduction
Prior to 1981, IP addresses used only the first 8
bits to specify the network portion of the
address
In 1981, RFC 791 modified the IPv4 32-bit
address to allow for three different classes
IP address space was depleting rapidly
In 1993 Classless Inter-Domain Routing (CIDR)
CIDR uses Variable Length Subnet Masking
(VLSM) to help conserve address space.
VLSM is simply subnetting a subnet
4
As of January 2007, there are over 433 million hosts
on Internet
Initiatives to conserve IPv4 address space include:
-VLSM & CIDR notation (1993, RFC 1519)
-Network Address Translation (1994, RFC 1631)
-Private Addressing (1996, RFC 1918)
5
IPv4 Classful Addressing Structure (RFC 790)
An IP address has 2 parts:
The network portion
Found on the left side of an IP address
The host portion
Found on the right side of an IP address
The High Order Bits are the leftmost bits in a 32 bit
address 6
Classful IP Addressing
Class A addresses = 0.0.0.0 to 127.255.255.255
Class B addresses = 128.0.0.0 to 191.255.255.255
Class C addresses = 192.0.0.0 to 223.255.255.255
pf3
pf4
pf5

Partial preview of the text

Download Understanding VLSM and CIDR: Classless IP Addressing and Routing and more Schemes and Mind Maps Network security in PDF only on Docsity!

1

VLSM and CIDR RIPv

Routing Protocols and Concepts – Chapters 6 and 7

2

Objectives

ƒ Compare and contrast classful and classless IP addressing. ƒ Review VLSM and explain the benefits of classless IP addressing.

ƒ Describe the role of the Classless Inter- Domain Routing (CIDR) standard in making efficient use of scarce IPv4 addresses

3

Introduction

ƒ Prior to 1981, IP addresses used only the first 8 bits to specify the network portion of the address

ƒ In 1981, RFC 791 modified the IPv4 32-bit address to allow for three different classes ƒ IP address space was depleting rapidly

ƒ In 1993 Classless Inter-Domain Routing (CIDR) ƒ CIDR uses Variable Length Subnet Masking (VLSM) to help conserve address space. ƒ VLSM is simply subnetting a subnet 4

ƒ As of January 2007, there are over 433 million hosts on Internet ƒ Initiatives to conserve IPv4 address space include: -VLSM & CIDR notation (1993, RFC 1519) -Network Address Translation (1994, RFC 1631) -Private Addressing (1996, RFC 1918)

IPv4 Classful Addressing Structure (RFC 790)

ƒ An IP address has 2 parts: The network portion Found on the left side of an IP address The host portion Found on the right side of an IP address ƒ The High Order Bits are the leftmost bits in a 32 bit address (^6)

Classful IP Addressing

ƒ Class A addresses = 0.0.0.0 to 127.255.255. ƒ Class B addresses = 128.0.0.0 to 191.255.255.

ƒ Class C addresses = 192.0.0.0 to 223.255.255.

7

Classful IP Addressing

8

Classful IP Subnetting

ƒ Purpose of a subnet mask It is used to determine the network portion of an IP address

ƒ Classful routing updates do not include subnet masks ƒ Receiving router must ‘assume’ the mask:

  • If the advertised network is part of the same major network as the interface it arrives on, use the same subnet mask as the interface
  • Else use the default mask for the class

9

RIPv1 is a Classful Routing Protocol

10

Rules for Classful Subnetting

ƒ A major network is subnetted using a single subnet mask so that all of its subnets are the same size

ƒ The subnets of a major network must be contiguous

ƒ Example: 172.30.1.0 / 172.30.2.0 / 172.30.3.0 /

Classless IP Addressing

ƒ Classless Inter-domain Routing (CIDR – RFC 1517)

ƒ Advantages of CIDR

More efficient use of IPv4 address space Route summarization – smaller routing tables

ƒ Requires subnet mask to be included in the routing updates because address class is meaningless

ƒ Recall purpose of subnet mask

To determine the network and host portion of an IP address

CIDR & Route Summarization

ƒ CIDR allows for routes to be summarized as a single route

19

Routing Protocols

ƒ To use CIDR, VLSM, discontiguous subnets ƒ You cannot run a classful routing protocol, which means you cannot run RIPv1 or IGRP

ƒ All other routing protocols covered on this course are classless routing protocols, i.e.:

ƒ RIPv2, EIGRP, OSPF, IS-IS, BGP

ƒ We now look at RIPv

20

Difference between RIPv1 & RIPv

RIPv

ƒ A classful distance vector routing protocol ƒ Does not support discontiguous subnets

ƒ Does not support VLSM ƒ Does not send subnet mask in routing update

ƒ Routing updates are broadcast

ƒ Automatically summarizes routes at class boundary (this cannot be disabled) ƒ RIPv1 is the default

21

Difference between RIPv1 & RIPv

RIPv

ƒ A classless distance vector routing protocol that is an enhancement of RIPv1’s features. ƒ Subnet mask and next hop address is included in updates ƒ Routing updates are multicast (uses less bandwidth)

ƒ Automatic summarization of routes can be disabled

ƒ The use of authentication is an option 22

Similarities between RIPv1 & RIPv

ƒ Use of hold-down timers to prevent routing loops

ƒ Use of split horizon or split horizon with poison reverse

ƒ Use of triggered updates ƒ Hop count used as metric

ƒ Maximum hop count of 15 ƒ Both do automatic summarization of routes at the class boundary by default

Comparing RIPv1 & RIPv2 Message Formats

ƒ RIPv2 Message format is similar to RIPv1 but includes subnet mask and next hop address fields

ƒ A RIPv1 configured router will: Accept updates from RIPv2 routers but will not recognize the subnet mask information Will only send RIPv1 updates

25

Lab 7.5.1 – Basic RIPv2 Configuration

26

Lab 7.5.1 – Basic RIPv2 Configuration

ƒ Configure the 3 routers using RIPv ƒ Do this by pasting in the prepared configuration files ƒ Observe the problem on R due to discontiguous subnets of 172.30.0.

int fa0/ ip address 10.1.0.1 255.255.0. no shutdown ! int s0/ ip address 209.165.200.229 255.255.255. no shutdown ! int s0/ ip address 209.165.200.233 255.255.255. clock rate 64000 no shutdown ! router rip passive-interface fa0/ network 10.0.0. network 209.165.200.

27

Lab 7.5.1 – Basic RIPv2 Configuration

To solve the problem

ƒ Configure RIPv

ƒ Disable auto- summary

int fa0/ ip address 10.1.0.1 255.255.0. no shutdown ! int s0/ ip address 209.165.200.229 255.255.255. no shutdown ! int s0/ ip address 209.165.200.233 255.255.255. clock rate 64000 no shutdown ! router rip version 2 no auto-summary passive-interface fa0/ network 10.0.0. network 209.165.200. 28

Summary of RIPv1 and RIPv

RIPv2 Yes Yes Yes Yes Yes Yes Yes Yes Yes

RIPv1 Yes No Yes Yes Yes Yes No No No

Uses Authen- tication

Supports VLSM Support CIDR Auto Summary (by default)

Max Hop count = 15

Use of Split Horizon or Split Horizon w/ Poison Reverse

Uses Hold- Down Timers

Classless Routing Protocol

Distance Vector Routing Protocol

Summary

ƒ Classful IP addressing ƒIPv4 addresses have 2 parts: Network & Host ƒClass A, B, & C addresses were designed to provide IP addresses for different sized organizations ƒThe class of an IP address is determined by the decimal value found in the 1 st^ octet ƒIP addresses are running out so the use of Classless Inter Domain Routing (CIDR) and Variable Length Subnet Mask (VLSM) are used to try and conserve address space

Summary

ƒ Classful Routing Updates –Subnet masks are not sent in routing updates

ƒ Benefits of classless IP addressing –Can create additional network addresses using a subnet mask that fits your needs –Uses Classless Interdomain Routing (CIDR)