IP addressing.

Slides:



Advertisements
Similar presentations
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.
Advertisements

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.
Instructor: Sam Nanavaty DNS and IP addressing. Instructor: Sam Nanavaty How does a router know where to route the information when you simply type in.
Prepared By: Eng.Ola M. Abd El-Latif
Module 10: Routing Fundamentals and Subnets Small Router Purchase Subnetting Example a Basic Subnetting b Subnetting a Class A Network.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
IP Addressing – Dotted-Decimal Notation –An IP address is 32 bits in size –Every IP address is grouped into four 8-bit octets –Octets are separated by.
Introduction to Networking (Yarnfield) Classful subnetting.
IP Addressing and Subnetting
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—4-1 LAN Connections Constructing a Network Addressing Scheme.
Static Route. Identify Default gateway What is the default gateway for PC1 PC2 r1 r2 PC1PC2.
Subnetting Rick Graziani Cabrillo College
IP Addresses: Classful Addressing An IP address is a 32-bit address.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 subnetting.
Information & Communication Technology
IST 228\Ch3\IP Addressing1 What Is TCP/IP? A large collection of networking protocols and services The Transmission Control Protocol (TCP) handles reliable.
DCN286 INTRODUCTION TO DATA COMMUNICATION TECHNOLOGY Network Basics Introduction Instructor: Ataur Rahman
IPv4 Addresssing An IP address is four bytes (octets). Each contains eight bits (total of 32 bits in length). IP addresses are given as dotted decimal.
IP Addressing bits Dotted Decimal Network Host
Subnetting of IP Address. Network Number for Each Network
Types of Addresses in IPv4 Network Range
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.
1 Real Networkers don’t use Decimal! Part 1. Binary & Interpreting IP Addresses October 19, 2004.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
INTRODUCTION TO IP ADDRESS Ravi Chandra Gurung. IP ADDRESSES.
Classes of IP. host must have an IP address that identifies not only the host address (like a house number) but also identifies the network address (like.
1  You are given an IP address for a host /20  What is/are the  Subnet address?  Broadcast address?  The number of useable hosts available.
Unit 24 Network Design IP Addressing (Part 3). Objectives to date… Classes of IP addresses (A, B and C) Using Subnetting and Subnet Masks The Limitations.
CISCO NETWORKING ACADEMY Chabot College ELEC Subnet Review.
IP Addressing & Subnetting
Networking The TCP-IP Protocol Suite (Part 2) Carl Smith National Certificate Parts adapted from HNC lectures by Steve Leggett – 2002/03.
1 Exercise: IPv4 subnetting. 2 Task 1 Given is an IP network with address : Divide this network into 8 subnets.
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.
CS 447 Networks and Data Communication IP Subnet Mask: Purpose: To indicate which portion of an IP address indicates host address Example SIUE IP Network.
SUBNET Communication Technologies CIS 505 Prepare by Thanantinee Tantivejakul.
Saeed Darvish Pazoki – MCSE, CCNA IP Subnetting 1.
IP Addressing Lecture # 1 Hassan Shuja 01/31/2006.
CTI Technician Training Internet Protocol Part 2.
Chapter 5.  Upon completion of this chapter, you should be able to:  Configure IP addresses  Identify & select valid IP addresses for networks  Configure.
Subnetting. Class A Address O is the subnet Identifier is the loop back address. 4 Each class A address supports 16,387,064 hosts. 4 Assigned.
1 Network Principles FdSc Computing Technologies TCP-IP – Addressing & Sub-Netting Carl Smith – 2004 (Revised 2013)
Hour 5 Subnetting 1. you will be able to Explain how subnets and supernets are used Explain the benefits of subnetting Develop a subnet mask that meets.
Easy Subnetting. Chapter 4 Objectives Topics Covered in this chapter include: Interpret network diagrams Describe the operation and benefits of using.
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.
Ethernet Basics – 7 IP Addressing. Introducing IP Addressing  IP address (TCP/IP address)  Not unique (but should be), user assigned  Layer 3  4 byte.
Subnetting, The Struggle for Understanding John Skyers HBC Regional Academy London SE17 1JE United Kingdom.
If we don’t subnet and use as our subnet mask then we use all of our IP addresses on one network. This is not an efficient use of our Class.
Instructor & Todd Lammle
Subnetting Divide a network to smaller networks (subnets) Reasons
Internet Architecture
Chapter 5 Exploring IPv4.
IP Addresses: Classful Addressing
Binary Concepts By: Nathan Miller.
Networking for Home and Small Businesses – Chapter 5
Subnetting Problems.
Lec 9 Subnet 3.1 Computer Networks Al-Mustansiryah University
Chapter 2 Easy Subnetting
IP Addresses: Classful Addressing
IP Address.
Creating Subnets – Network Requirements
Introduction to Networking (Yarnfield)
Dr. John P. Abraham Professor UTRGV
Binary Lesson 6 Classful Subnetting /24, /25, and /26
Chapter 2 Easy Subnetting
IP Addressing & Subnetting
Networking for Home and Small Businesses – Chapter 5
IP Addressing & Subnetting
Subnetting Subnetting is a method for getting the most out of the limited 32-bit IP addressing space. With any address class, subnetting provides a means.
Presentation transcript:

IP addressing

Table of classes A B C D E No of Hosts Per network No of Networks Host ID Net ID Value of w Class 16,777,214 126 X.Y.Z W 1-126 A 65534 16,384 Y.Z W.X 128-191 B 254 2,097,152 Z W.X.Y 192-223 C N/A Reserved for Multicast 224-239 D Reserved for Experiment 240-254 E

Example IP Address = 192.168.1.12/24(default class C) IP Address 192 Network ID 192 168 1 Host ID 12

Broadcast Address All Bite in Host Portion is 1 Example 1 : 192.168.1.0 Network ID 192 168 1 00000000 Broadcast ad 192 168 1 11111111 Broadcast ad 255

What is Broadcast Address of 172.16.1.0 ? 10.0.0.0 ?

First Address & Last Address Network Address = 192.168.1.0 Network ID 192 168 1 00000000 First IP Add 192 168 1 00000001 Last IP add 11111110

What is first and last IP address? 172.16.1.0 ? 10.0.0.0?

Network Address , First IP Address , Last IP Address , Broadcast Address of : - 192.168.2.100? - 126.10.10.10? - 1.1.1.1?

Subnet Addressing All bits that correspond to the network ID are set to 1. All bits that correspond to the host ID are set to 0

Default Subnet mask Subnet mask 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 Subnet mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 Subnet mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 255 255 255

Prefix Subnet Mask Class /8 A /16 B /24 C 255.0.0.0 255.255.0.0 255.255.255.0 C

Private Addresses Address Range Class 10.0.0.0 – 10.255.255.255 A 172.16.0.0 – 172.31.255.255 B 192.168.0.0 – 192.168.255.255 C These addresses can be used on a private network. they’re not routable through the Internet.

Count of hosts in class A Subnet mask 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Count of hosts = ( 2 ^m ) - 2 m: count of 0 ( zero) Count of hosts = ( 2 ^24 ) - 2

Count of hosts in class B Subnet mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Count of hosts = ( 2 ^m ) - 2 m: count of 0 ( zero) Count of hosts = ( 2 ^16 ) - 2

Count of hosts in class C Subnet mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 Count of hosts = ( 2 ^m ) - 2 m: count of 0 ( zero) Count of hosts = ( 2 ^8 ) – 2 = 254

Subneting

Addressing without Subnets 172.16.0.1 172.16.0.2 172.16.0.3 172.16.255.253 172.16.255.254 …... 172.16.0.0 Network 172.16.0.0

Addressing with Subnets 172.16.3.0 172.16.4.0 172.16.1.0 172.16.2.0 Network 172.16.0.0

Question You should divide network 192.128.129.0 to 2 different networks. What is solution ?

Two way for calculate subnetting Binary Method Fast Way Method

Binary Method

divide network 192.128.129.0 to 2 networks 172 128 129 Network ID 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Default mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 Subnet Host Network ID 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Default mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 Subnet mask = 255.255.255.192 ( /25 )

divide network 192.128.129.0 to 2 networks Subnet mask is : 255.255.255.192 ( / 25) Network ID 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 If subnet is 00000000 then Network ID : 192.168.129.0 First valid host : 192.168.129.1 Last valid host : 192.168.129.126 Broadcast address : 192.168.129.127 If subnet is 10000000 then Network ID : 192.168.129.128 First valid host : 192.168.129.129 Last valid host : 192.168.129.254 Broadcast address : 192.168.129.255

In this example what is Network ID, First IP Address, Last IP Address, Broadcast Address ?

Subnetting in Class C One bit can not be use for host

Subnetting in Class B

Subnetting in Class A

Fast Method

Computing Usable Subnetworks & hosts Number of host address = 2^m -2 (where m is the number of host bits) Number of subnets = 2^n - 2 (where n is the number of subnet bits) Increment of subnets = 2^p m Example : n p Class B: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 Network Host Subnet Count of hosts = (2^ 10) - 2=1022 Count of subnetwork = (2^ 6) - 2=62 Increment = 2 ^ 2 = 4

Computing Usable Subnetworks & hosts Number of host address = 2^m -2 (where m is the number of host bits) Number of subnets = 2^n - 2 (where n is the number of subnet bits) Increment of subnets = 2^p Example : n M , P Class C: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 Network Subnet Host Count of hosts = (2^ 6) - 2=62 Count of subnet = (2^ 2) - 2=2 Increment = 2 ^ 6 = 64

Example 1

Example 1 Network =200.10.57.0 subnetmask =255.255.255.224 What is subnetworks? What is range of possible address? What is broad cast address per subnetwork?

Example 1 (continue) Network =200.10.57.0 subnetmask =255.255.255.224 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 Subnet Host Network Count of hosts = (2^ 5) - 2=30 Count of subnetwork = (2^ 3) - 2=6 Increment = 2^ 5 = 32

range of possible address Example 1 (continue) broadcast address range of possible address subnetwork address subnet no 200.10.57.31 200.10.57.1 – 200.10.57.30 200.10.57.0 subnet 0 200.10.57.63 200.10.57.33 - 200.10.57.62 200.10.57.32 subnet 1 200.10.57.95 200.10.57.65 - 200.10.57.94 200.10.57.64 subnet 2 200.10.57.127 200.10.57.97 - 200.10.57.126 200.10.57.96 subnet 3 200.10.57.159 200.10.57.129 - 200.10.57.158 200.10.57.128 subnet 4 200.10.57.195 200.10.57.161 - 200.10.57.194 200.10.57.160 subnet 5 200.10.57.223 200.10.57.197 - 200.10.57.222 200.10.57.196 subnet 6 200.10.57.255 200.10.57.225 - 200.10.57.254 200.10.57.224 subnet 7

What is Subnet addresses First valid IP Address Last valid IP Address Broadcast Address For Network address:192.168.10.0 Subnet mask :255.255.255.224

What is Subnet addresses First valid IP Address Last valid IP Address Broadcast Address For Network address:192.168.10.0 Subnet mask :255.255.255.240

What is Subnet addresses First valid IP Address Last valid IP Address Broadcast Address For Network address:192.168.10.0 Subnet mask :255.255.255.248

What is Subnet addresses First valid IP Address Last valid IP Address Broadcast Address For Network address:172.16.0.0 Subnet mask :255.255.192.0

What is Subnet addresses First valid IP Address Last valid IP Address Broadcast Address For Network address:172.16.0.0 Subnet mask :255.255.240.0

How calculate Network ID, First IP Address, Last IP Address, Broadcast Address of IP Classless?

Example 1 172 16 2 160 Host 172.16.2.160 10101100 00010000 00000010 10100000 1 Mask 255.255.255.192 Subnet 4 Broadcast First Last

Example 1 172 16 2 160 Host 172.16.2.160 10101100 00010000 00000010 10100000 1 Mask 255.255.255.192 11111111 11111111 11111111 11000000 2 Subnet Broadcast First Last

Example 1 172 16 2 160 3 Host 172.16.2.160 10101100 00010000 00000010 10100000 1 Mask 255.255.255.192 11111111 11111111 11111111 11000000 2 Subnet Broadcast First Last 7

Example 1 172 16 2 160 3 Host 172.16.2.160 10101100 00010000 00000010 10100000 1 Mask 255.255.255.192 11111111 11111111 11111111 11000000 2 Subnet 10000000 4 Broadcast First Last

Example 1 172 16 2 160 3 Host 172.16.2.160 10101100 00010000 00000010 10100000 1 Mask 255.255.255.192 11111111 11111111 11111111 11000000 2 Subnet 10000000 4 Broadcast 10111111 5 First 6 Last

Example 1 172 16 2 160 3 Host 172.16.2.160 10101100 00010000 00000010 10100000 1 Mask 255.255.255.192 11111111 11111111 11111111 11000000 2 Subnet 10000000 4 Broadcast 10111111 5 First 10000001 6 Last

Example 1 172 16 2 160 3 Host 172.16.2.160 10101100 00010000 00000010 10100000 1 Mask 255.255.255.192 11111111 11111111 11111111 11000000 2 Subnet 10000000 4 Broadcast 10111111 5 First 10000001 6 Last 10111110 7

Example 1 172 16 2 160 3 Host 172.16.2.160 10101100 00010000 00000010 10100000 1 Mask 255.255.255.192 11111111 11111111 11111111 11000000 2 8 Subnet 10101100 00010000 00000010 10000000 4 Broadcast 10101100 00010000 00000010 10111111 5 First 10101100 00010000 00000010 10000001 6 Last 10101100 00010000 00000010 10111110 7

Example 1 IP Address: 172 16 2 160 3 Host 172.16.2.160 10101100 00010000 00000010 10100000 1 Mask 255.255.255.192 11111111 11111111 11111111 11000000 2 9 8 Subnet 172.16.2.128 10101100 00010000 00000010 10000000 4 Broadcast 172.16.2.191 10101100 00010000 00000010 10111111 5 First 172.16.2.129 10101100 00010000 00000010 10000001 6 Last 172.16.2.190 10101100 00010000 00000010 10111110 7

Example 2 IP Address = 92.85.10.86 /10 What is subnet mask? What is Network number? What is broadcast address? 92.85.10.86 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 = 64 Network number = 92.64.0.0 0 1 1 1 1 1 1 1 = 172 Broad cast address = 92.64.172.255 First Valid IP address = 92.64.64.1 Last Valid IP address = 92.64.172.254

Question in class IP Address = 192.168.15.19 /28 What is subnet mask? What is Network number? What is broadcast address? What is First Valid IP address ? What is Last Valid IP address ?