IP Subnetting CIT 307 Kevin Siminski.

Slides:



Advertisements
Similar presentations
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
Advertisements

Chapter 9a Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain why routing is necessary for hosts on different.
IP Subnetting.
1 IP Subnetting (Modified version of slides from Rick Graziani) Karim El Defrawy Donald Bren School of Information and Computer Science University of California.
Mr. Mark Welton.  IPv4 address are 32-bit numbers represented in dotted decimal notation of 8 bit segments  
Prepared By: Eng.Ola M. Abd El-Latif
IP Addressing Pertemuan 18 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Hands-On Microsoft Windows Server 2003 Networking Chapter Four Subnetting.
Classless Subnetting Using the Worksheet
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,
Subnetting Rick Graziani Cabrillo College
CCENT Study Guide Chapter 4 Easy Subnetting. Chapter 4 Objectives The CCENT Topics Covered in this chapter include: IP addressing (IPv4 / IPv6) – Describe.
Subnetting Workshop SARA AKERS SEPTEMBER Disclaimer If you notice any mistakes with any of the slides, please let me know so I can correct. Thank.
IP Addressing Basics LAB 8.
Information & Communication Technology
Introduction to Networking
IP Addressing Allan Johnson. IPv4 Addressing Review IPv4 Addressing Review Table of Contents Table of Contents End Slide Show End Slide Show.
Types of Addresses in IPv4 Network Range
Chapter 12 Subnetting CIS 1140.
IP Addressing Chapter 5 powered by DJ. Chapter Objectives At the end of this Chapter you will be able to:  Explain IP addressing  Discuss IP subnetting.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
IP Addressing Basics LAB 8.
2 © 2003, Cisco Systems, Inc. All rights reserved. RST-2002 IP Addressing.
Classless and Subnet Address Extensions (CIDR)
CSIS  We need to create some logic to the environment  We want to keep like devices together  We want to make money leasing the use of the space.
TCP/IPTCP/IP Dr. ClincyLecture1 Chapter 5: Addressing (Part 2 of 3) Agenda Special Addresses Classful - Subnetting Classful - Supernetting.
IP Addressing & Subnetting
Module 10 - Subnetting For Fun and Profit
Subnetting Tips - CCNA Power Camp, Ver Copyright 2005, Epsico 1 of 92.
VLSM and RIPv2 Warren Toomey GCIT. Introduction Switches deliver frames to stations. Routers deliver packets to networks. Only the final router has to.
1 Type I: Subnets and hosts/subnet. How many subnets are supported? How many hosts are provided per subnet? Type II: All other problems. In which subnet.
Binary Lesson 6.1 Classful Subnetting 2
Chapter 5 IPv4 Address.
CTI Technician Training Internet Protocol Part 2.
IP Addresses Mark Woodhouse and Arthur Manning IP Addressing Used packets created in Layer 3 of the Open Systems Interconnection (OSI) Model Hierarchical.
IP Addressing.
Class Agenda 10/24/15 Learning Objectives Unit 6: Presentation, Discussions and Video Chapter17 and 18. IP Subnet Design Midterm Exams will be held Today.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 IPv4 Addresses.
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.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
Objective 1.Understand Network 2.Understand IP Addressing (IPv4 and IPv6) 3.Understand Subnetting 4.Examples 5.IP addressing and Vlan’s in TIFR 6.TIFR.
Subnetting Made Easy? The “moving stick” and the “magic number” Jim Blanco Aparicio-Levy Technical Center.
TCP/IP Addressing and Subnetting. IP Addressing Roadmap Format of IP Addresses Traditional Class Networks Network Masks Subnetting Supernetting Special.
Network Layer/IP Protocols 1. Outline IP Datagram (IPv4) NAT Connection less and connection oriented service 2.
IP Addressing, Sub-netting & VLSM
Internet Architecture
Instructor & Todd Lammle
Binary Concepts By: Nathan Miller.
IP Addressing Pertemuan 06
IP Addresses: Classful Addressing IP Addresses. CONTENTS INTRODUCTION CLASSFUL ADDRESSING Different Network Classes Subnetting Classless Addressing Supernetting.
IP Addressing.
Internet technologies
Chapter-5 TCP/IP Suite.
Variable Length Subnet Mask (VLSM)
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
Lec 9 Subnet 3.1 Computer Networks Al-Mustansiryah University
Subnetting IP4 ICND/CCNA Prep.
Lec2 Variable Length Subnet Mask (VLSM)
Class Agenda 4/18/16 Learning Objectives
Subnetting Surasak Sanguanpong
Binary Lesson 6 Classful Subnetting
Introduction to Networking (Yarnfield)
Dr. John P. Abraham Professor UTRGV
Binary Lesson 6 Classful Subnetting /24, /25, and /26
Binary Lesson 6 Classful Subnetting
Prepared by : Adeel Ahmad Updated by : Syed Ameen Quadri
IP Addressing & Subnetting
IP Addressing & Subnetting
Lec2 Variable Length Subnet Mask (VLSM)
Presentation transcript:

IP Subnetting CIT 307 Kevin Siminski

The Basics 192.168.10.48 255.255.255.224 So… what does this mean? If you want to work in the networking industry you ABSOLUTELY need to understand how to subnet IP addresses IP address is a 32 bit address, bits are either 1 or 0 IP address contain 4 octets of 8 bits 11110000.11110000.11111111.11111110 IP address and Mask define the host address and the network address Network is a layer 3 function in OSI model

-Zero’s indicate how many hosts are available in block- IP address and Network subnet mask also define how many hosts are in a IP network Example- 255.255.255.0 = 256 hosts 255.255.255.128= 128 hosts 255.255.0.0 = 216 hosts = 65536 Classful subnetting Class A = 255.0.0.0 (16,777,216 Hosts) Class B = 255.255.0.0 (65,536 Hosts) Class C = 255.255.255.0 (255 Hosts) -Zero’s indicate how many hosts are available in block-

Now forget about traditional Classful subnetting Variable Length Subnet Masking (VLSM) is what is utilized today An IP address ALWAYS has to important element Network address and a Broadcast address Network address is always EVEN, Broadcast address is always ODD. An IP address is like a phone number- It’s unique; if publically routable over Internet 192.168.2.0 255.255.255.0 3 first three octets are the Network; Last octet is host For your network you can only use 192.168.2.1-254 You can’t change the first three octets

Subnetting is like taking a piece of pie and dividing it up it smaller pieces. You can only sub-divide by multiples of 2- The subnet mask determines how the pie is divided Network address is similar to your phone number Area-code & Exchange (317)-823 = NETWORK Last four digits 317-823-1234 = Host The broadcast address is similar to dialing the operator and asking for assistance. In networking, the broadcast address is used to ask all of the available hosts to broadcast their address so that switch/router can find the appropriate path to send IP packets Yes Yes Yes NO

Now how do we figure out all this stuff? Step 1- Convert IP address to binary form 142.10.24.32 Convert each octet into it’s 8 binary bits 128 64 32 16 8 4 2 1 1 0 0 0 1 1 1 0 = 142 0 0 0 0 1 0 1 0 = 10 0 0 0 1 1 0 0 0 = 24 0 0 1 0 0 0 0 0 = 32 We will start with first octet (142), start at left and determine if you can subtract 128 from 142 and end up with positive integer, yes = 1 & no = 0 142-128 = 14 (true), then ask if you can take 14 – 64… NO (false), 14 – 32 (False), 14 – 16 (false), 14-8 = 6 (true), 6-4=2 (true), 2-2=0 (true), 0-1 (false) 142 = 10001110 (8 bits)… now 255 = 11111111 & 0 = 00000000 Now we know why an 8 bit address can be no larger than 255!

Subnet mask 255.255.255.0 or 255.255.255.128 is same process 11111111.11111111.11111111.00000000 = 255.255.255.0 11111111.11111111.11111111.10000000 = 255.255.255.128 Shorthand notation for subnet mask is notated by counting number of ones 255.255.255.0 = /24 255.255.255.128 = /25 255.255.255.192 = /26 and so on… Subnet mask is always contiguous 1’s from left to right 11111111.11111111.11111111.10110000 is NOT a valid subnet The ones in the subnet equal the network prefix and the 0’s equal the HOST 8 Zero’s in the first example = 28 = 256 HOST; 27 = 128

A IP address and subnet determine two important pieces of information: What the NETWORK address is What the BROADCAST address is 192.168.10.130 /24 (255.255.255.0) Network = 192.168.10.0 Broadcast = 192.168.10.255 USABLE HOSTS = 192.168.10.1-254 (these are address you can use for your network) Now how did I figure this out?

192.168.10.130 /24 Step one do a bitwise & operation against octets 0 + 0 = 0; 1+0 = 0; 0+1=0; 1+1= 1 (TRUE) If you want more details, look up binary number system on wikipedia Now compare the octet by converting to binary- 192.168.10.130 255.255.255.0 128 64 32 16 8 4 2 1 192 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 Now use bitwise & to compare the values 192 1 1 0 0 0 0 0 0 Simple rules- Anytime you compare a NUMBER against 255, will result in same number, Anytime you compare a number against 0, will result in 0 during bitwise & operation

Now do the rest… 128 64 32 16 8 4 2 1 168 1 0 1 0 1 0 0 0 1 1 1 1 1 1 0 0 168 1 0 1 0 1 0 0 0 10 0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 0 10 0 0 0 0 1 0 1 0 30 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 NETWORK ADDRESS = 192.168.10.0

Usable Hosts Now lets figure out Broadcast address- NETWORK ADDRESS = 192.168.10.0 Subnet mast = 255.255.255.0 (1111111.11111111.11111111.00000000) This is the part that I like to compare to book-ends: The subnet mask determines the number of usable hosts, you CANNOT use Network or broadcast for host address or you will break your network! To determine number of total hosts take total bits in IP address (32) – number of 1 bits in the subnetmask (24) 32-24 = 8 Now take 2 raised to the 8 = 28 = 256, now add this number to the ip address in the last octet 0 + 256 = 256, now subtract 1 since you start on 0 value = 255 Broadcast Address = 192.168.10.255 Usable hosts = 192.168.10.1 - 254 Network add Broadcast Usable Hosts

32 bits – 25 bits = 7 27=128 total hosts 200.100.10.120 /25 (255.255.255.128) NETWORK 200.100.10.x B/Cast 200.100.10.x We can quickly determine first 3 octets based on simple rule mentioned in slide 9 Now we just need to determine last octet 128 64 32 16 8 4 2 1 120 0 1 1 1 1 0 0 0 128 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Network Address 200.100.10.0 32 bits – 25 bits = 7 27=128 total hosts Now take last octet in network 0 + 128 (total hosts) = 128 -1= 127 Broadcast Address 200.100.10.127 Usable hosts = 200.100.10.1-126

Now take last octet in network 0 + 128 (total hosts) = 128 -1= 127 200.100.10.120 /17 (255.255.128.0) NETWORK 200.100.x.0 B/Cast 200.100.x.255 We can quickly determine first 3 octets based on simple rule mentioned in slide 9 Now we just need to determine last octet 128 64 32 16 8 4 2 1 10 0 1 1 1 1 0 0 0 128 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Network Address 200.100.0.0 32 bits – 17 bits = 15 215=32,768 total hosts, Instead take bits in Octet (8) - # of subnet bits in third octet (1); 8-1 = 7; 27 = 128 Now take last octet in network 0 + 128 (total hosts) = 128 -1= 127 Broadcast Address 200.100.127.255 Usable hosts = 200.100.1-127.0-254

Relationship between # of hosts and subnet mask. 255.255.255.0 = 256 TOTAL hosts 255.255.255.128 = 128 TOTAL hosts 255.255.255.192 = 64 TOTAL Hosts (see the pattern emerging…) 255.255.255.224 = 32 255.255.255.240 = 16 255.255.255.248 = 8 255.255.255.252 = 4 255.255.255.254 = 2 (you really can’t use this since you would only have NETWORK address and BroadCast, with no usable hosts)

Visual breakdown of subnets Remember these simple rules Network address is always even, broadcast is always odd Network address is always the low value, broadcast is high value and the usable hosts are between the two values You can NEVER use a broadcast or network address for a host address /24 /25 /26 /27 /28 /29 /30