VLSM CHAPTER 2. IP Subnet Zero



Similar documents
APPENDIX B. Routers route based on the network number. The router that delivers the data packet to the correct destination host uses the host ID.

Number of bits needed to address hosts 8

Part2. Chapter 8. Advanced TCP/IP Network Design - CLASSLESS ADDRESSING AND VARIABLE- LENGTH SUBNET MASKS

IST 220 Honors Project. Subnets with Variable Length Subnet Masks

CCNA R&S: Introduction to Networks. Chapter 9: Subnetting IP Networks

Chapter 3: IP Addressing and VLSM

Source net: Destination net: Subnet mask: Subnet mask: Router Hub

Pre-lab Preparation: 1. Read thoroughly and prepare the experiment sheet. 2. You must bring a printed copy of this experiment with you to the lab.

VLSM and CIDR Malin Bornhager Halmstad University

Lab Calculating VLSM Subnets

Seven Steps to Subnetting


Table of Contents. Cisco IP Addressing and Subnetting for New Users

Lab Calculating VLSM Subnets

Expert Reference Series of White Papers. Solving the Mysteries of Subnetting

3201 Computer Networks 2014/2015 Handout: Subnetting Question

Lab a Basic Subnetting

Expert Reference Series of White Papers. Simple Tricks To Ace the Subnetting Portion of Any Certification Exam COURSES.

IP Addressing. and Subnetting. Workbook Version 1.5. Student Name:

Expert Reference Series of White Papers. Solving the Mysteries of Subnetting COURSES.

IP Addressing and Subnetting for New Users

TCP/IP Drill Pack. By Donna Warren. Created by Donna P. Warren Revised: 1/2/2012 Page 1 of 19

Topics. Subnetting. The Basics of Subnetting Subnet Mask Computing subnets and hosts Subnet Routing Creating a Subnet Example of Subnetting 1/37

Module 4, Assignment 3-2

How to Create Subnets To create subnetworks, you take bits from the host portion of the IP address and reserve them to define the subnet address.

Subnetting Study Guide

Subnetting Examples. There are three types of subnetting examples I will show in this document:

Type of addressing in IPv4

Table of Contents 1 IP Addressing Configuration 1-1

IT:101 Cisco Networking Academy I Subnetting

Module 10 Subnetting Class A, B and C addresses. Solutions to the Lab Exercises a, b, c and d

SUBNETTING SCENARIO S

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

Guide to TCP/IP, Third Edition. Chapter 2: IP Addressing and Related Topics

Classless Subnetting Explained

Question Question Question EdTech 552: Lab 3 Answer Sheet

TCP/IP Cheat Sheet. A Free Study Guide by Boson Software, LLC

VLSM Static routing. Computer networks. Seminar 5

Network Simulator Lab Study Plan

VLSM & IP ADDRESSING EXAMPLE QUESTIONS with answers;

The Subnet Training Guide

WHITE PAPER. Understanding IP Addressing: Everything You Ever Wanted To Know

Advanced IP Addressing

You can probably work with decimal. binary numbers needed by the. Working with binary numbers is time- consuming & error-prone.

Packet Tracer - Subnetting Scenario 1 (Instructor Version)

Packet Tracer 3 Lab VLSM 2 Solution

IP Subnetting Colin Weaver, ITdojo

Activity 6.4.2: Challenge VLSM Calculation and Addressing Design (Instructor Version) Topology Diagram

IP Subnetting: Practical Subnet Design and Address Determination Example

Expert Reference Series of White Papers. Binary and IP Address Basics of Subnetting

Activity 6.7.4: IPv4 Address Subnetting Part 2

Section #6: Addressing

2.3 IPv4 Address Subnetting Part 2

TCP/IP works on 3 types of services (cont.): TCP/IP protocols are divided into three categories:

Classful Subnetting Explained

IP Subnetting for the Masses Or How a 12 year old kid can subnet the most complex network.

Objectives. Upon completing this chapter, you will be able to

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

IP Networking Part 3- IP Address Management A webinar to help you prepare for the CBNE Certification

- IPv4 Addressing and Subnetting -

Lab IP Addressing Overview

CCNA : Cisco Certified Network Associate Study Guide, 5th Edition ( ) Todd Lammle

2. What is the maximum value of each octet in an IP address? A. 28 B. 255 C. 256 D. None of the above

CE363 Data Communications & Networking. Chapter 6 Network Layer: Logical Addressing

Interconnecting Cisco Network Devices 1 Course, Class Outline

One of the most important topics in any discussion of TCP/IP is IP. IP Addressing

Sybex CCENT Chapter 4: Easy Subnetting. Instructor & Todd Lammle

Advanced Topics: IP Subnetting A WHITE PAPER PREPARED FOR ASPE TECHNOLOGY. toll-free:

Concepts in IP Addressing...

Lab#2: IP Addressing and Subnetting

IP Addressing A Simplified Tutorial

This chapter discusses the following advanced IP addressing topics: IP Address Planning Hierarchical Addressing Using Variable-Length Subnet Masks

Expert Reference Series of White Papers. Basics of IP Address Subnetting

CONFIGURING TCP/IP ADDRESSING AND SECURITY

TCP/IP Addressing and Subnetting. an excerpt from: A Technical Introduction to TCP/IP Internals. Presentation Copyright 1995 TGV Software, Inc.

Subnetting IPv4 and IPv6

INTERCONNECTING CISCO NETWORK DEVICES PART 1 V2.0 (ICND 1)

Subnetting. TELE301 Laboratory Manual. 1 In-Class Exercises Subnetting in IPv6... 4

ICS 351: Today's plan

IP Addressing and Subnetting, Including IPv6

Networking Basics for Automation Engineers

IP Subnetting and Addressing

Chapter 5. IPv4 Addresses. TCP/IP Protocol Suite 1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

(Refer Slide Time: 02:17)

"Charting the Course...

Configuring a Gateway of Last Resort Using IP Commands

Configuring a Leased Line

Lab Introductory Lab 1 - Getting Started and Building Start.txt

Subnet + CIDR. Internet Networking recitation #1. 11: , Internet Networking,

How To Make A Network Address Prefix Smaller

Computer Networks By Bahaa Q. Al-Mussawi Subnetting Basics Reduced network traffic Optimized network performance Simplified management

Part A:Background/Preparation

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

O /27 [110/129] via , 00:00:05, Serial0/0/1

LAN TCP/IP and DHCP Setup

Chapter 4. IP Addresses: Classful Addressing

PT Activity 8.1.2: Network Discovery and Documentation Topology Diagram

IP Sub Networking Mini Howto

Transcription:

CHAPTER 2 VLSM Variable-length subnet masking (VLSM) is the me realistic way of subnetting a netwk to make f the most efficient use of all of the bits Remember that when you perfm classful ( what I sometimes call classical) subnetting, all subnets have the same number of hosts because they all use the same subnet mask This leads to inefficiencies F example, if you brow 4 bits on a Class C netwk, you end up with 14 valid subnets of 14 valid hosts A serial link to another router only needs 2 hosts, but with classical subnetting you end up wasting 12 of those hosts Even with the ability to use NAT and private addresses, where you should never run out of addresses in a netwk design, you still want to ensure that the IP plan that you create is as efficient as possible This is where VLSM comes in to play VLSM is the process of subnetting a subnet and using different subnet masks f different netwks in your IP plan What you have to remember is that you need to make sure that there is no overlap in any of the addresses IP Subnet Zero When you wk with classical subnetting, you always have to eliminate the subnets that contain either all zeros all ones in the subnet ption Hence, you always used the fmula 2 N 2 to define the number of valid subnets created However, Cisco devices can use those subnets, as long as the command ip subnet-zero is in the configuration This command is on by default in Cisco IOS Software Release 120 and later; if it was turned off f some reason, however, you can re-enable it by using the following command: Router(config)#ip subnet-zero Now you can use the fmula 2 N rather than 2 N 2 2 N Number of total subnets created 2 N 2 Number of valid subnets created No longer needed because you have the ip subnet-zero command enabled 2 H Number of total hosts per subnet 2 H 2 Number of valid hosts per subnet

22 VLSM VLSM Example You follow the same steps in perfming VLSM as you did when perfming classical subnetting Consider Figure 2-1 as you wk through an example Figure 2-1 Sample Netwk Needing a VLSM Address Plan 50 Hosts A E F G H 27 Hosts B 12 Hosts C 12 Hosts D A Class C netwk 1921681000/24 is assigned You need to create an IP plan f this netwk using VLSM Once again, you cannot use the N bits 192168100 You can use only the H bits Therefe, igne the N bits, because they cannot change! The steps to create an IP plan using VLSM f the netwk illustrated in Figure 2-1 are as follows: Step 1 Step 2 Step 3 Step 4 Determine how many H bits will be needed to satisfy the largest netwk Pick a subnet f the largest netwk to use Pick the next largest netwk to wk with Pick the third largest netwk to wk with Step 5 Determine netwk numbers f serial links The remainder of the chapter details what is involved with each step of the process

VLSM Example 23 Step 1 Determine How Many H Bits Will Be Needed to Satisfy the Largest Netwk A is the largest netwk with 50 hosts Therefe, you need to know how many H bits will be needed: If 2 H 2 = Number of valid hosts per subnet Then 2 H 2 50 Therefe H = 6 (6 is the smallest valid value f H) You need 6 H bits to satisfy the requirements of Netwk A If you need 6 H bits and you started with 8 N bits, you are left with 8 6 = 2 N bits to create subnets: Started with: NNNNNNNN (these are the 8 bits in the fourth octet) Now have: NNHHHHHH All subnetting will now have to start at this reference point, to satisfy the requirements of Netwk A Step 2 Pick a Subnet f the Largest Netwk to Use You have 2 N bits to wk with, leaving you with 2 N 2 2 4 subnets to wk with: NN = 00HHHHHH (The Hs = The 6 H bits you need f Netwk A) 01HHHHHH 10HHHHHH 11HHHHHH If you add all zeros to the H bits, you are left with the netwk numbers f the four subnets: 00000000 = 0 01000000 = 64 10000000 = 128 11000000 = 192 All of these subnets will have the same subnet mask, just like in classful subnetting Two browed H bits means a subnet mask of: 11111111111111111111111111000000 255255255192 /26 The /x notation represents how to show different subnet masks when using VLSM /8 means that the first 8 bits of the address are netwk, the remaining 24 bits are H bits

24 VLSM /24 means that the first 24 bits are netwk, the last 8 are host this is either a traditional default Class C address, a traditional Class A netwk that has browed 16 bits, even a traditional Class B netwk that has browed 8 bits! Pick one of these subnets to use f Netwk A The rest of the netwks will have to use the other three subnets F purposes of this example, pick the 64 netwk 00000000 = 0 01000000 = 64 Netwk A 10000000 = 128 11000000 = 192 Step 3 Pick the Next Largest Netwk to Wk With Netwk B = 27 hosts Determine the number of H bits needed f this netwk: 2 H 2 27 H = 5 You need 5 H bits to satisfy the requirements of Netwk B You started with a pattern of 2 N bits and 6 H bits f Netwk A You have to maintain that pattern Pick one of the remaining /26 netwks to wk with Netwk B F purposes of this example, select the 128/26 netwk: 10000000 But you need only 5 H bits, not 6 Therefe, you are left with: where: 10N00000 10 represents the iginal pattern of subnetting N represents the extra bit 00000 represents the 5 H bits you need f Netwk B Because you have this extra bit, you can create two smaller subnets from the iginal subnet: 10000000 10100000 Converted to decimal, these subnets are as follows: 10000000 =128 10100000 =160

VLSM Example 25 You have now subnetted a subnet! This is the basis of VLSM Each of these sub-subnets will have a new subnet mask The iginal subnet mask of /24 was changed into /26 f Netwk A You then take one of these /26 netwks and break it into two /27 netwks: The mask now equals: 10000000 and 10100000 both have 3 N bits and 5 H bits 11111111111111111111111111100000 255255255224 /27 Pick one of these new sub-subnets f Netwk B: 10000000 /27 = Netwk B Use the remaining sub-subnet f future growth, you can break it down further if needed You want to make sure the addresses are not overlapping with each other So go back to the iginal table 00000000 = 0/26 01000000 = 64/26 Netwk A 10000000 = 128/26 11000000 = 192/26 You can now break the 128/26 netwk into two smaller /27 netwks and assign Netwk B 00000000 = 0/26 01000000 = 64/26 Netwk A 10000000 = 128/26 Cannot use because it has been subnetted 10000000 = 128/27 Netwk B 10100000 = 160/27 11000000 = 192/26 The remaining netwks are still available to be assigned to netwks, subnetted further f better efficiency Step 4 Pick the Third Largest Netwk to Wk With Netwks C and Netwk D = 12 hosts each

26 VLSM Determine the number of H bits needed f these netwks: 2 H 2 12 H = 4 You need 4 H bits to satisfy the requirements of Netwk C and Netwk D You started with a pattern of 2 N bits and 6 H bits f Netwk A You have to maintain that pattern You now have a choice as to where to put these netwks You could go to a different /26 netwk, you could go to a /27 netwk and try to fit them into there F the purposes of this example, select the other /27 netwk 160/27: 10100000 (The 1 in the third bit place is no longer bold, because it is part of the N bits) But you only need 4 H bits, not 5 Therefe you are left with: where: 101N0000 10 represents the iginal pattern of subnetting N represents the extra bit you have 00000 represents the 5 H bits you need f Netwk B Because you have this extra bit, you can create two smaller subnets from the iginal subnet: 10100000 10110000 Converted to decimal, these subnets are as follows: 10100000 = 160 10110000 = 176 These new sub-subnets will now have new subnet masks Each sub-subnet now has 4 N bits and 4 H bits, so their new masks will be: 11111111111111111111111111110000 255255255240 /28 Pick one of these new sub-subnets f Netwk C and one f Netwk D 00000000 = 0/26 01000000 = 64/26 Netwk A 10000000 = 128/26 Cannot use because it has been subnetted

VLSM Example 27 10000000 = 128/27 Netwk B 10100000 = 160/27 Cannot use because it has been subnetted 10100000 160/28 Netwk C 10110000 176/28 Netwk D 11000000 = 192/26 You have now used two of the iginal four subnets to satisfy the requirements of four netwks Now all you need to do is determine the netwk numbers f the serial links between the routers Step 5 Determine Netwk Numbers f Serial Links Serial links between routers all have the same property in that they only need two addresses in a netwk one f each router interface Determine the number of H bits needed f these netwks: 2 H 2 2 H = 2 You need 2 H bits to satisfy the requirements of Netwks E, F, G, and H You have two of the iginal subnets left to wk with F purposes of this example, select the 0/26 netwk: 00000000 But you need only 2 H bits, not 6 Therefe, you are left with: where: 00NNNN00 00 represents the iginal pattern of subnetting NNNN represents the extra bits you have 00 represents the 2 H bits you need f the serial links Because you have 4 N bits, you can create 16 sub-subnets from the iginal subnet: 00000000 = 0/30 00000100 = 4/30 00001000 = 8/30 00001100 = 12/30 00010000 = 16/30 00111000 = 56/30

28 VLSM 00111100 = 60/30 You need only four of them You can hold the rest f future expansion, recombine them f a new, larger subnet: 00010000 = 16/30 00111000 = 56/30 00111100 = 60/30 These can all be recombined into the following: 00010000 = 16/28 Going back to the iginal table, you now have the following: 00000000 = 0/26 Cannot use because it has been subnetted 00000000 = 0/30 Netwk E 00000100 = 4/30 Netwk F 00001000 = 8/30 Netwk G 00001100 = 12/30 Netwk H 00010000 = 16/28 Future growth 01000000 = 64/26 Netwk A 10000000 = 128/26 Cannot use because it has been subnetted 10000000 = 128/27 Netwk B 10100000 = 160/27 Cannot use because it has been subnetted 10100000 160/28 Netwk C 10110000 176/28 Netwk D 11000000 = 192/26 Future growth Looking at the plan, you can see that no number is used twice You have now created an IP plan f the netwk, and have made the plan as efficient as possible, wasting no addresses in the serial links and leaving room f future growth This is the power of VLSM!