VLSM and RIPv2 Warren Toomey GCIT. Introduction Switches deliver frames to stations. Routers deliver packets to networks. Only the final router has to.

Slides:



Advertisements
Similar presentations
Introduction to Classless Routing
Advertisements

RIP V1 W.lilakiatsakun.
RIP2 CCNA Exploration Semester 2 Chapter 7
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 VLSM and CIDR Routing Protocols and Concepts – Chapter 6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 VLSM and CIDR Routing Protocols and Concepts – Chapter 6.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
Chapter 7 RIP Version 2 (RIPv2).
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 RIPv2 Routing Protocols and Concepts – Chapter 7.
Prepared By: Eng.Ola M. Abd El-Latif
1 CCNA 3 v3.1 Module 1. 2 CCNA 3 Module 1 Introduction to Classless Routing.
VLSM and CIDR CSE 421 CCNA Exploration 2 Chapter 6
Subnetting the subnet RD-CSY /09.  Company with 200 hosts  Assigned class C network /24  Want 6 different LANs  Subnet class C network.
Subnetting Warren Toomey GCIT. Introduction Each device on the Internet needs an IP address to identify its connection to the Internet –PCs have one connection,
IP Addressing. Dotted Decimal Notation IP addresses are written in a so-called dotted decimal notation Each byte is identified by a decimal number in.
1 26-Aug-15 S Ward Abingdon and Witney College CCNA Exploration Semester 1 VLSM and CIDR CCNA Exploration Semester 2 Chapter 6.
Types of Addresses in IPv4 Network Range
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
Chapter 12 Subnetting CIS 1140.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 VLSM and CIDR Routing Protocols and Concepts – Chapter 6 Modified by.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Implementing Variable-Length Subnet Masks.
© 2007 Cisco Systems, Inc. All rights reserved.ICND2 v1.0—3-1 Medium-Sized Routed Network Construction Implementing VLSM.
IP Addressing Introductory material. An entire module devoted to IP addresses.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing in an Enterprise Network Introducing Routing and Switching in the.
Lecture Week 7 RIPv2 Routing Protocols and Concepts.
Introduction to Classless Routing
111 What Is VLSM and Why Is It Used?. 222 Classful and Classless Routing Classful (basic subnetting) Classful routing protocols require that a single.
Variable-Length Subnet Masking (VLSM)
Chapter 6 VLSM and CIDR.
1 18-Oct-15 VLSM and CIDR CCNA Exploration Semester 2 Chapter 6.
CCNA2-1 Chapter 6 Variable Length Subnet Masking (VLSM) Classless Inter-Domain Routing (CIDR)
Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College Last Updated: 3/30/2008.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 VLSM and CIDR Routing Protocols and Concepts – Chapter 6 05/07/2009.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 RIPv2 Routing Protocols and Concepts – Chapter 7.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing in an Enterprise Network Introducing Routing and Switching in the.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNP 1 v3.0 Module 2 Advanced IP Addressing Management Cisco Networking Academy.
© 2010 Cisco Systems, Inc. All rights reserved. 1 Academy Conference 2010 Frisco, Texas Teaching VLSM Barry Charter ~ North Arkansas College ~ Newly Retired.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Advanced TCP/IP Planning and Design Variable Length Subnet Mask (VLSM) Supernetting Classless Enter Domain Routing (CIDR)
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 VLSM and CIDR Routing Protocols and Concepts – Chapter 6.
© 2002, Cisco Systems, Inc. All rights reserved..
IP Internet Protocol Fundamental packet format that computers use to exchange information. Is a set of technical rules that defines how computers communicate.
Routing Protocols and Concepts – Chapter 7
CS470 Computer Networking Protocols
IP Addressing.
1 © 2003 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID Classless Routing.
Introduction to Computer Networking
CCNA Discovery Semester 3 Addressing in an Enterprise Network Chapter 4 K. Martin.
1 Variable Length Subnet Masks ( VLSM ) “ Classful Route” Means if a route to a network starting with is received, it is a class A => mask length.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 1 Introduction to Classless Routing.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 1 Introduction to Classless Routing.
1 © 2004, Cisco Systems, Inc. All rights reserved. Introduction to Classless Routing.
IP Addressing, Sub-netting & VLSM
IP – Subnetting and CIDR
Chapter-5 TCP/IP Suite.
Chapter 2 Easy Subnetting
Unit 7 Advanced IP Routing Chapter 19 to 21
Routing Protocols and Concepts – Chapter 6 Modified by Tony Chen
IPv4 Addresses A Quick Guide.
CCNA 3 v3 JEOPARDY Module 1 CCNA3 v3 Module 1 K. Martin.
Routing Protocols and Concepts – Chapter 7
Routing Protocols and Concepts – Chapter 6
Chapter 2 Easy Subnetting
Routing Protocols and Concepts – Chapter 7
Routing Protocols and Concepts – Chapter 6
Routing Protocols and Concepts – Chapter 6
Presentation transcript:

VLSM and RIPv2 Warren Toomey GCIT

Introduction Switches deliver frames to stations. Routers deliver packets to networks. Only the final router has to deliver a packet to a station, as they are both on the same network. Routers operate at OSI Layer 3. In particular, IP routers use link-independent addresses. An IP address identifies an interface which is connected to a network. This means that routers have at least 2 IP addresses. This also means that every point-to-point WAN connection between routers is also a separate IP network.

Introduction Why do routers only route to networks? To keep their routing tables small, and to keep the process of routing fast. At present, hundreds of millions of Internet stations connected to the Internet. But only hundreds of thousands of networks connected to the Internet. Router tables look like the following: NetworkMaskCostNext Router / /

Networks and Subnets Originally, 3 network sizes: Class A, B and C Problems: not given out in a geographical basis –No ability to aggregate networks Sizes are generally too big or too small Each network is a broadcast domain: broadcast storms Clas s Network Field Host Field # Networks # HostsFirst Octet A8 bits24 bits12616 million0 to 126 B16 bits 16,38465, to 191 C24 bits8 bits2 million to 223

Subnets Earliest solution: subnet a network into many equal-sized networks –Subnets kept hidden behind router, which aggregates all subnets into one network

Subnets Done by borrowing bits from the host field to create the subnet field. Smaller subnets = smaller broadcast domains Problem: R1 to R2 link is a subnet: we only need 2 IP addresses but there are 254, so we waste 252 IP addresses

Routing with Subnets Early routing protocols (e.g. RIPv1) were classful but could deal with subnets as long as they were contiguous (not separated). In previous diagram, R1 could advertise /16 Discontiguous subnets not possible. R3 gets same advertisement from R1 and R2. Which way is right? Both of them!

Drawbacks of Subnets All subnets are the same size. Many IP addresses are wasted Cannot deal with discontiguous subnets, as any routing advertisement has to be classful (only /8, /16 or /24)

CIDR: Classless Internet Domain Routing Create new routing protocols, or update existing routing protocols, to send the subnet mask with every advertisement Allows the receiving router to determine the size of the network, i.e. the range of host addresses on that network Allows routers to aggregate routes and advertised summarized routes to their neighbours –e.g. two adjacent /24 subnets can be advertised as one /23 subnet

CIDR: Classless Internet Domain Routing RIP was updated to RIPv2 to support CIDR New protocols such as EIGRP and OSPF support CIDR IP address allocations no longer need to be contiguous or the same size, as they were with subnets

Netmasks, Network Sizes, Step Factors Netmask used to indicate the network part of the IP address (used to route packets) and the host part (used by last router for final delivery to station) Traditionally, a 32-bit pattern with 1's for the network part and 0's for the host part, e.g. – Dotted decimal notation: Prefix notation: /24 (number of 1 bits) We will use all three netmask formats

Netmasks, Network Sizes, Step Factors Netmask tells you the size of the network –e.g. /24 has 8 bits for hosts. 2 8 = 256 hosts –On each subnet, 2 IP addresses are reserved Netmask also tells you the “step factor”: how far apart the subnets are apart Once you have the base IP address of a network plus the mask, you can determine: –The network identity (same as base address) –The broadcast address (last IP address in range) –The set of usable IP addresses (all but 1st and last)

Step Factors PrefixNetmaskStep FactorPrefixMaskStep Factor /8 (A) in 1st octet/24 (C) in 3rd octet / in 2nd octet/ in 4th octet / in 2nd octet/ in 4th octet / in 2nd octet/ in 4th octet / in 2nd octet/ in 4th octet / in 2nd octet/ in 4th octet / in 2nd octet/ in 4th octet / in 2nd octet /16 (B) in 2nd octet / in 3rd octet / in 3rd octet / in 3rd octet / in 3rd octet / in 3rd octet / in 3rd octet / in 3rd octet

Netmasks, Network Sizes, Step Factors The number of addresses on any network is always 2 host bits, and the number of usable host addresses on any network is always 2 host bits -2. The network identity address (i.e the first address on the network) must be a multiple of the step factor. What type of address is /20? /20: step factor is 16 in the 3rd octet, but 21 is not a multiple of 16. Therefore it must be a usable IP address in this subnet Identity address: host bits all 0's, multiple of step factor Broadcast address: host bits all 1's, also the address below the next network. Step factor is 16 in 3rd octet, so next network is So broadcast address on the network is

VLSM: Allocating Addresses Variable Length Subnet Masks: process of dividing an IP allocation into subnets of different sizes, with different masks Requires CIDR routing to advertise the different sizes. Several ways of doing VLSM. Here are my rules: 1.Work out the required size for each network. Leave room for the identity & broadcast address. 2.Allocate networks from the biggest down to the smallest. 3.After each allocation, leftover addresses. Use from the biggest remaining down to smallest for future allocations. 4.Keep networks of the same size adjacent in the numbering. Keep networks connected to the same router adjacent in the numbering, too.

VLSM: Other Rules of Thumb If you split a /N range into two, you end up with two /N+1 ranges. Split into 4, get /N+2 ranges. Split into 8, get /N+3 ranges etc. Remember to watch the step factor as you are subdividing and allocating addresses! Remember that links between 2 routers are also networks. Allocate a size /30 subnet to each one. Place point-to-point router address allocations at the bottom of the original address range.

VLSM: An Example We are given /24 to VLSM subdivide Four LAN subnets. Two router-to-router (/30) subnets LAN 1: 20 hosts. Closet power of 2 is 32. Use /27 LAN 2: 12 hosts. Closest power of 2 is 16. Use /28 LAN 3: 25 hosts. Same as LAN 1: /27 LAN 4: 87 hosts. Closest power of 2 is 128. Use /25

VLSM: An Example Start with , allocate the /25 (step of 128) Next is , allocate one /27 (step of 32) Next is , allocate next /27 (step of 32) Next is , allocate the /28 (step of 16) We have allocated IP ranges for the LANs We are up to From here to 255 not yet used

VLSM: An Example We are up to , with only the two /30 router to router links left to allocate We have = 48 IPs left, but only need to allocate two /30 subnets (4 each), so we still have lots of IPs left Start at the bottom and allocate two /30s (step of 4) – /30 – /30

VLSM: An Example SubnetMaskRange / to (126 usable IPs) / to (30 usable IPs) / to (30 usable IPs) / to (14 usable IPs) / to (2 usable IPs) / to (2 usable IPs)

Route Aggregation A set of routes can be aggregated or summarised when there is a single route with a smaller mask prefix which covers the set of routes exactly This lessens the RAM requirements for every router, and also allows them to find the correct route for each packet more quickly Special conditions to make this occur. It's not easy to develop a design to do this

Example Route Summarisation Say we want to advertise a summarised route of /25 This is the range to (step factor of 128) We can break this into two /26 subnets (size 64 each) 0 to 63 for one of them, 64 to 127 for the other Let's subdivide the second one into two /27 subnets (size 32 each) 64 to 95 for the first, 96 to 127 for the second We now have one /26 and two /27s which exactly cover the original route of /25. So, if we had these routes: /26, /27 and /27 We could summarise them as a single route: /25

RIP Version 2: CIDR Support The first version of RIP does not support VLSM or CIDR On Cisco routers, run show ip protocols to see what version of RIP your router uses to send advertisements To switch to RIP version 2:

RIP Version 2: Summarisation RIPv2 still summarises network on classful boundaries by default To stop this from happening: no auto-summary

RIP Version 2: Static Routes RIPv2 can advertise existing static routes too Use the redistrubute static command

RIP Version 2: Debugging RIP v2 debugging enabled: you can see the advertisements with the masks for each route

RIP Version 2: Common Issues Not running RIP v2. Not enough network commands in config