IT:101 Cisco Networking Academy I Subnetting



Similar documents
Activity 6.7.4: IPv4 Address Subnetting Part 2

Question Question Question EdTech 552: Lab 3 Answer Sheet

2.3 IPv4 Address Subnetting Part 2

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.

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

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

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

Classful Subnetting Explained

IP Subnetting and Related Topics A Tutorial by Chris Uriarte <chrisjur@cju.com> Updated April 2001

Classless Subnetting Explained

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

3201 Computer Networks 2014/2015 Handout: Subnetting Question

Lab a Basic Subnetting

Module 4, Assignment 3-2

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

Number of bits needed to address hosts 8

ADULT LEARNING ACADEMY

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.

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

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

Type of addressing in IPv4

Lab#2: IP Addressing and Subnetting

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

Chapter 4. IP Addresses: Classful Addressing

Subnetting Study Guide

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

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

Seven Steps to Subnetting

Lab IP Addressing Overview

IP Subnetting Colin Weaver, ITdojo


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.

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

examines the ideas related to Class A, Class B, and Class C networks (in other words, classful IP networks).

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

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

IP Addressing and Subnetting for New Users

SUBNETTING SCENARIO S

Chapter 4 IP Addresses: Classful Addressing

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

Packet Tracer - Subnetting Scenario 1 (Instructor Version)

Computer Network Foundation. Chun-Jen (James) Chung. Arizona State University

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

Subnetting/Supernetting and Classless Addressing

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

Lab Calculating VLSM Subnets

VLSM and CIDR Malin Bornhager Halmstad University

IP Addressing A Simplified Tutorial

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

1. How many unique network IDs are there in class A addresses? # of unique hosts?

The Subnet Training Guide

Subnetting IPv4 and IPv6

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

Fast and Easy Subnetting. Marc Khayat, Technical Advocacy Team May 2011

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

IP Subnetting. Subnetting

Table of Contents 1 IP Addressing Configuration 1-1

Goals. Unary Numbers. Decimal Numbers. 3,148 is s 100 s 10 s 1 s. Number Bases 1/12/2009. COMP370 Intro to Computer Architecture 1

Base Conversion written by Cathy Saxton

Positional Numbering System

Tutorial (03) IP addresses & Sub netting

IP Addressing. -Internetworking (with TCP/IP) -Classful addressing -Subnetting and Supernetting -Classless addressing

IP Addressing. IP Addresses. Introductory material.

Internet Addresses (You should read Chapter 4 in Forouzan)

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

CCNA Tutorial Series SUBNETTING

IP Sub Networking Mini Howto

Lab Calculating VLSM Subnets

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

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

VLSM CHAPTER 2. IP Subnet Zero

IP Subnetting: Practical Subnet Design and Address Determination Example

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

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

SNMP/HTTP Access Control User Manual

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

Desirable Properties Of An Internet Addressing Scheme

Counting in base 10, 2 and 16

Concepts in IP Addressing...

Sequences. A sequence is a list of numbers, or a pattern, which obeys a rule.

VLSM Static routing. Computer networks. Seminar 5

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

IP Addressing Introductory material.

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

TCP/IP Basis. OSI Model

Future Internet Technologies

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

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

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

Internet Protocol version 4 Part I

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

PART IV. Network Layer

ICS 351: Today's plan

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

Packet Tracer 3 Lab VLSM 2 Solution

FINAL ASSESSMENT/EXAMINATION JULY 2015 PLEASE READ ALL INSTRUCTIONS CAREFULLY BEFORE YOU BEGIN THIS EXAMINATION

Section #6: Addressing

- IPv4 Addressing and Subnetting -

Internet Protocols. Addressing & Services. Updated:

Transcription:

IT:101 Cisco Networking Academy I Subnetting The IPv4 address is 32 bits long and it is written in the form of dotted decimal notation. IP address in binary format: 11000000.00000001.00000001.00000020 In dotted decimal notation 192. 1. 1. 2 In the following table, The first line represents the Prefix. The second line represents the place value of the bit in binary format. The third line is the MASK The fourth line is the value of the bit in dotted decimal notation. The first 8 bits of the IP address is not shown. 2 nd number 3 rd number 4 th number /9 /10 /11 /12 /13 /14 /15 /16 /17 /18 /19 /20 /21 /22 /23 /24 /25 /26 /27 /28 /29 /30 /31 /32 8388608 4194304 2097152 1048576 524288 262144 131072 65536 32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1 128 192 224 240 248 252 254 255 128 192 224 240 248 252 254 255 128 192 224 240 248 252 254 255 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1 The subnet mask determines the number of bits used to identify the network address and the remainder bits gives us the size of the subnet (the number of addresses in the subnet) The subnet mask can be written as a prefix or in the traditional format. Example: /23 = 255.255.254.0 Every IP address class has a default mask: class A - /8 = 255.0.0.0, class B - /16 = 255.255.0.0, class C - /24 = 255.255.255.0

In subnetting, we are making the mask longer than the default for the IP class. This way we can create sub-networks that allows for the efficient use of the address space. We create subnets that closely match the required number of addresses needed for each sub-network. To do this we need to identify the correct mask that gives us just enough addresses to satisfy the requirements. To do this we can use the table above to identify the correct mask. Example: The requirement is 500 users for the subnet. To do this, start counting the bits on the second line (place value of the bit in binary format) from right to left. Because we count from right to left, we write down the numbers in the same sequence. You are building the mask from right to left. If you counted to 8 and you did not find the correct value, write down a zero and place a period in front of it. Continue the bit count until you reach the correct bit position. If you counted to 8 again and you still did not find the correct value, write down a zero again and place a period in front of it. Continue the count until you find the first bit location that is equal or larger than the requirement. You just found the end of the mask. The bit that satisfies the requirement will be the last bit in the mask. The number on the third line (mask) will be the end of the mask. Write this number down in front of the zero(s) if you have any and pad the remaining numbers with 255 until you have 4 numbers. You must end up with four numbers. 2 nd number 3 rd number 4 th number /9 /10 /11 /12 /13 /14 /15 /16 /17 /18 /19 /20 /21 /22 /23 /24 /25 /26 /27 /28 /29 /30 /31 /32 8388608 4194304 2097152 1048576 524288 262144 131072 65536 32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1 128 192 224 240 248 252 254 255 128 192 224 240 248 252 254 255 128 192 224 240 248 252 254 255 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 ^ 1 128 64 32 16 8 4 2 1 254.0 now pad it with 255 until you have 4 numbers --- 255.255.254.0 The correct mask is 255.255.254.0. This mask cannot be shorter than the default mask for the IP address class. If it is, you are not subnetting. The mask gives us the subnet size, but we need to write the size in decimal notation. To identify how we write the subnet size in decimal notation we will use the last non-zero number in the mask. Mask: 255.255.254.0 -- the last none-zero number in the mask is 254, subtract it from 256. 256 254 = 2 now write the zeros contained in the mask after your number (if there is any). In this case, there is one so we end up with 2.0 256 255.255.254.0 2.0 -- this is the number that we need to quickly generate the sub-network addresses

If we have a class B IP address the first two numbers are given (X.X.0.0 represent any class B address), so we work with the last two numbers (host portion of the address space). X.X.0.0 /16 is the starting IP address. To create subnets which are able to support 500 users each, we do following. We start from subnet zero and add 2.0 to the sub-network address to create the next sub-network address. We can continue this until we reach the mask in the host portion of the address in our count. Create a table: Network address Mask Host range Broadcast address X.X.0.0 (subnet zero) 255.255.254.0 X.X.0.1 X.X.1.254 X.X.1.255 X.X.2.0 255.255.254.0 X.X.2.1 X.X.3.254 X.X.3.255 X.X.4.0 255.255.254.0 X.X.4.1 X.X.5.254 X.X.5.255 X.X.6.0 255.255.254.0 X.X.6.1 X.X.7.254 X.X.6 255 Continue until you reach the host portion of the mask X.X.254.0 255.255.254.0 X.X.254.1 -- X.X.255.254 X.X.255.255 This method will work for all classes of IP addresses! On the CCNA exam, you might be asked to answer the following questions about a given IP address. Example: 172.10.17.5 255.255.240.0 How many bits are allocated to hosts? Convert the mask to prefix format: 255.255.240.0 = /20 Because there are 32 bits in an IP address, 32 minus the prefix equals the number of host bits. 32 20 = 12 12 bits are allocated to hosts

How many bits are used for subnetting? Convert the mask to prefix format: 255.255.240.0 = /20 The difference between the default mask for the IP address class and the current mask gives the number of bits used for subnetting. In this case 172 is a class B address and /16 is the default prefix so 20 16 = 4 4 bits are used for subnetting What is the number of hosts on the network? The question is; are they looking for the total number of available addresses or just the usable addresses. (Be careful as you read the question) 32 current prefix = host bits. 2^host bits = total number of addresses (2^12 = 4096 Total number of addresses -2 = usable hosts (we cannot use the network and broadcast address) 4096 2 = 4094 How many subnets are created? The difference between the default mask for the IP address class and the current mask gives the number of bits used for subnetting. In this case 172 is a class B address and /16 is the default prefix so 20 16 = 4 2^4 = 16 16 subnets were created What is the network address of the host? To get the network address of the host we need to perform the AND operation between the IP address and the mask. We know that if we AND something with 255 then the value remains the same. We also know, if we AND something with 0 then the value turns into 0. So, the only number that we need to work with that is not zero or 255. 172. 10. 17.5 AND 255.255.240.0 Result 172. 10.?.0

In this case, it is the third number in the mask and we need to AND 240 with 17. We must convert the two values to binary. 17 = 00010001 AND 240 = 11110000 00010000 convert it back to decimal = 16 The third number in the IP address is 16. So, the host belongs to the 172.10.16.0 network. What is the broadcast address of the host or network? We need to know the network address of the host. (See the previous question.) We also need to know the size of the subnet; and how it is written in dotted decimal notation. (See above) 256 255.255.240.0 16.0 - size of the subnet in decimal notation Add this number to the network address of the host. 172.10.16.0 n e t w o r k address of the host 16.0 size of the subnet 172.10.32.0 this is the next subnet the broadcast address is one less than this value (minus 1) The answer is 172.16.31.255 MoHealthWINs This workforce solution was funded by a grant awarded by the U.S. Department of Labor s Employment and Training Administration. The solution was created by the grantee and does not necessarily reflect the official position of the U.S. Department of Labor. The Department of Labor makes no guarantees, warranties, or assurances of any kind, express or implied, with respect to such information, including any information on linked sites and including, but not limited to, accuracy of the information or its completeness, timeliness, usefulness, adequacy, continued availability, or ownership. This work is licensed under a Creative Commons Attribution 3.0 Unported License. Professor Gus Adamecz, St. Louis Community College, Member College MoHealthWINs