Classless Subnetting Explained Rick Graziani, Cabrillo College



Similar documents
Classless Subnetting Explained

2.3 IPv4 Address Subnetting Part 2

Classful Subnetting Explained

Activity 6.7.4: IPv4 Address Subnetting Part 2

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.

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.

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

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

IT:101 Cisco Networking Academy I Subnetting

Number of bits needed to address hosts 8

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

Question Question Question EdTech 552: Lab 3 Answer Sheet

Lab#2: IP Addressing and Subnetting

3201 Computer Networks 2014/2015 Handout: Subnetting Question

Module 4, Assignment 3-2

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


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

Lab IP Addressing Overview

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

Lab a Basic Subnetting

Seven Steps to Subnetting

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

Chapter 4. IP Addresses: Classful Addressing

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

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

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

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

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

The Subnet Training Guide

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

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

Packet Tracer - Subnetting Scenario 1 (Instructor Version)

Subnetting/Supernetting and Classless Addressing

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

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

TCP/IP Basis. OSI Model

Chapter 4 IP Addresses: Classful Addressing

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

IP Subnetting Colin Weaver, ITdojo

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

IP Subnetting: Practical Subnet Design and Address Determination Example

VLSM and CIDR Malin Bornhager Halmstad University

IP Addressing and Subnetting for New Users

Type of addressing in IPv4

CCNA Tutorial Series SUBNETTING

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

Table of Contents 1 IP Addressing Configuration 1-1

Internetworking and IP Address

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

SUBNETTING SCENARIO S

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

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

IP Subnetting and Addressing

Module 2: Assigning IP Addresses in a Multiple Subnet Network

SYMETRIX SOLUTIONS: TECH TIP April 2014

Concepts in IP Addressing...

Today. Binary addition Representing negative numbers. Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic

Computer Science 281 Binary and Hexadecimal Review

How To Make A Network Address Prefix Smaller

2. IP Networks, IP Hosts and IP Ports

Chapter 19 Network Layer: Logical Addressing 19.1

(Refer Slide Time: 02:17)

Scaling the Network: Subnetting and Other Protocols. Networking CS 3470, Section 1

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

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

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

Desirable Properties Of An Internet Addressing Scheme

IP Addressing A Simplified Tutorial

IP Sub Networking Mini Howto

Binary Numbers. Binary Octal Hexadecimal

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

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

Tutorial (03) IP addresses & Sub netting

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

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

Internet Addresses (You should read Chapter 4 in Forouzan)

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

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

- IPv4 Addressing and Subnetting -

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

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

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

PART IV. Network Layer

IPv4 Addressing Simplified. by Ken Foster B.S. IT Information; Security and Forensics Kaplan University January 23, 2011

MEP Y9 Practice Book A

CONFIGURING TCP/IP ADDRESSING AND SECURITY

Lab Calculating VLSM Subnets

SNMP/HTTP Access Control User Manual

Lab Calculating VLSM Subnets

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

Base Conversion written by Cathy Saxton

5. Classless and Subnet Address Extensions 최 양 희 서울대학교 컴퓨터공학부

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

IP Addressing. IP Addresses. Introductory material.

Variable length subnetting

Internet Protocol Address

VLSM CHAPTER 2. IP Subnet Zero

Transcription:

Classless Subnetting Explained Rick Graziani, Cabrillo College When given an IP Address, Base Network Mask, and a Subnet Mask, how can you determine other information such as: The subnet address of this subnet The broadcast address of this subnet The range of Host Addresses for this subnet The maximum number of subnets for this subnet mask The number of hosts for each subnet The number of subnet bits The number of this subnet Let s start with an example: Major (Base) Network Address Major Network Broadcast Address Subnet Address for this IP Address IP Address of First Host on this Subnet IP Address of Last Host on this Subnet Broadcast Address for this Subnet Part 1: Determine Major Network Information Before we begin subnetting, let s gather some information regarding the network in general,. Using the Major Network Mask, determine the major network Address, the broadcast address for the entire network, and the number of hosts for the entire network. IP Address 138.101.114.250 Major Network Mask 255.255.0.0 Step 1: Translate Host IP Address and Major Network Mask into binary notation Convert the Host IP Address and Major Network Mask to binary: Base Mask 11111111 11111111 00000000 00000000 255. 255. 0. 192 1

Step 2: Major Network Address 1. Draw a line under the base mask 2. Perform a bit-wise AND operation on the IP Address and the Subnet Mask Note: 1 AND 1 results in a 1, 0 AND anything results in a 0 3. Express the result in Dotted Decimal Notation 4. The result is the Major Network Address of this for this host IP Address is 138.101.0.0 Base Mask 11111111 11111111 00000000 00000000 Network Add. 10001010 01100101 00000000 00000000 138 101 0 0 Step 3: Broadcast Address for the Major Network Address Remember that the network mask separates the network portion of the address from the host portion. The network address has all 0 s in the host portion of the address while the broadcast address has all 1 s in the host portion of the address. Network portion Host portion 138 101 0 0 Network Add. 10001010 01100101 00000000 00000000 Base Mask 11111111 11111111 00000000 00000000 Broadcast. 10001010 01100101 11111111 11111111 138 101 255 255 By counting the number of host bits we can determine the total number of usable hosts for this network (before subnetting). Host bits: 16 Total number of hosts: 2 16 = 4,096 4,096 2 = 4,094 (Can t use the all 0 s address, network address, or the all 1 s address, broadcast address.) Add this information to our table: Major (Base) Network Address 138.101.0.0 Major Network Broadcast Address 138.101.255.255 16 bits or 2 16 or 4,096 total hosts 4,096 2 = 4,094 usable hosts Subnet Address for this IP Address IP Address of First Host on this Subnet IP Address of Last Host on this Subnet Broadcast Address for this Subnet 2

Part 2: Determine Subnet Information Step 1: Translate Host IP Address and Subnet Mask into binary notation Subnet Mask 11111111 11111111 11111111 11000000 255. 255. 255. 192 Step 2: Determine the Network (or Subnet) where this Host address lives: 1. Draw a line under the mask 2. Perform a bit-wise AND operation on the IP Address and the Subnet Mask Note: 1 AND 1 results in a 1, 0 AND anything results in a 0 3. Express the result in Dotted Decimal Notation 4. The result is the Subnet Address of this Subnet which is 138.101.114.192 Subnet Mask 11111111 11111111 11111111 11000000 Subnet Add. 10001010 01100101 01110010 11000000 138 101 114 192 Add this information to our table: Subnet Address for this IP Address 138.101.114.192 Step 3: Determine which bits in the address contain Network information and which contain Host information: 1. Draw the Great Divide (G.D) as a wavy line where the 1 s in the Base Network Mask ends (also the mask if there was no subnetting). In our example, the Base Network Mask is 255.255.0.0 or the first 16 left-most bits. 2. Draw the Small Divide (S.D.) as a straight line where the 1 s in the given Subnet Mask ends. The network information ends where the 1 s in the mask end. G.D. S.D. IP Address 10001010 01100101 01110010 11 111010 Subnet Mask 11111111 11111111 11111111 11 000000 Subnet Add. 10001010 01100101 01110010 11 000000 10 bits 3. The result is the may be determined by simply counting the number of bits between the G.D. and S.D., which in this case is 10 bits. 3

Step 4: Determine bit ranges that are for subnets and for hosts: 1. Label the subnet counting range between the G.D. and the S.D. (these are the bits that are being incremented to make the subnet numbers or addresses). 2. Label the host counting range between the S.D. and all of the way to the end on the right (these are the bits that are being incremented to make the host numbers or addresses). G.D. S.D. IP Address 10001010 01100101 01110010 11 111010 Subnet Mask 11111111 11111111 11111111 11 000000 Subnet Add. 10001010 01100101 01110010 11 000000 subnet host counting range counting range Step 5: Determine the range of host addresses available on this subnet, and the broadcast address on this subnet: 1. Copy down all of the network/subnet bits of the Network Address(i.e. all bits before the S.D.) 2. In the host portion (to the right of the S.D.) make the host bits all 0 s except for the right most bit (or least significant bit), which you make a 1. This gives you the first Host IP Address on this subnet, which is the first part of the result for Range of Host Addresses for This Subnet, or in our example 138.101.114.193. 3. Now, in the host portion (to the right of the S.D.) make the host bits all 1 s except for the right most bit (or least significant bit), which you make a 0. This gives you the last Host IP Address on this subnet, which is the last part of the result for Range of Host Addresses for This Subnet, or in our example 138.101.114.254. 4. In the host portion (to the right of the S.D.) make the host bits all 1 s. This gives you the Broadcast IP Address on this subnet. This is the result for Broadcast Address of This Subnet, or in our example 138.101.114.255. G.D. S.D. IP Address 10001010 01100101 01110010 11 111010 Subnet Mask 11111111 11111111 11111111 11 000000 Subnet Add. 10001010 01100101 01110010 11 000000 subnet host counting range counting range First Host 10001010 01100101 01110010 11 000001 138 101 114 193 Last Host 10001010 01100101 01110010 11 111110 138 101 114 254 Broadcast 10001010 01100101 01110010 11 111111 138 101 114 255 4

Let s add some of this information to our table: Major (Base) Network Address 138.101.0.0 Major Network Broadcast Address 138.101.255.255 16 bits or 2 16 or 4,096 total hosts 4,096 2 = 4,094 usable hosts Subnet Address for this IP Address 138.101.114.192 IP Address of First Host on this Subnet 138.101.114.193 IP Address of Last Host on this Subnet 138.101.114.254 Broadcast Address for this Subnet 138.101.114.255 Step 6: Determine the number of usable subnets The number of subnets is determined by how many bits are in the subnet counting range (in this example, 10 bits) minus 1 for the last subnet, the all ones subnet which is not usually used. The first subnet, known as the all zeroes subnet is normally a usable subnet. 1. Use the formula 2 n 1, where n is the number of bit in the subnet counting range. 2. 2 10 1 = 1024 1 = 1023 3. Subtract 1 from the number of usable subnets (the all zeroes subnet) 10 bits 2 10 1 = 1024 1 = 1023 usable subnets Step 7: Determine the number usable hosts per subnet The number of hosts per subnet is determined by the number of host bits (in this example, 6 bits) minus 2 (1 for the subnet address and 1 for the broadcast address of the subnet). 2 6 2 = 64-2 = 62 hosts per subnet 6 bits 2 6 2 = 64-2 = 62 hosts per subnet 5

Final Answers Major (Base) Network Address 138.101.0.0 Major Network Broadcast Address 138.101.255.255 16 bits or 2 16 or 4,096 total hosts 4,096 2 = 4,094 usable hosts 10 bits 2 10 1 = 1024 1 = 1023 usable subnets 6 bits 2 6 2 = 64-2 = 62 hosts per subnet Subnet Address for this IP Address 138.101.114.192 IP Address of First Host on this Subnet 138.101.114.193 IP Address of Last Host on this Subnet 138.101.114.254 Broadcast Address for this Subnet 138.101.114.255 Other Stuff Borrowing Bits How many bits to you need to borrow to create a certain number of subnets or a certain number of hosts per subnet? Using this chart, you can easily determine the number of bits you need to borrow. Remember to: o Subtract 1 for the usable number of subnets, the all 1 s subnet. This is assuming the all 0 s subnet is a usable subnet. o Subtract 2 for the usable number of hosts per subnet, one for the subnet address and one for the broadcast address of the subnet. 2 10 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0 1,024 512 256 128 64 32 16 8 4 2 1 Number of bits borrowed: 10 9 8 7 6 5 4 3 2 1 1,024 512 256 128 64 32 16 8 4 2 1 Hosts or Subnets Possible Subnet Mask Values Because subnet masks must be contiguous 1 s followed by contiguous 0 s, the converted dotted decimal notation can contain one of a certain number of values: Dec. Binary 255 11111111 254 11111110 252 11111100 248 11111000 240 11110000 224 11100000 192 11000000 128 10000000 0 00000000 6