IP Addressing and Subnetting

Slides:



Advertisements
Similar presentations
Classifying Network Addressing
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
IP Addressing and Subnetting
Chapter 18. IP: Internet Protocol Addresses
Based Computer Networks and Internets (Comer)
Prepared By: Eng.Ola M. Abd El-Latif
IP Addressing Pertemuan 18 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Subnetting.
2440: 141 Web Site Administration IP Addressing Instructor: Enoch E. Damson.
1 Version 3.0 Module 10 Routing Fundamentals and Subnetting.
IP Addressing & Subnetting
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—4-1 LAN Connections Constructing a Network Addressing Scheme.
IP Addressing Internet Protocol (IP) A unique identifier for host, on an IP network 32-bit binary number, usually expressed as 4 “dotted decimal” values.
IP Addressing & Subnetting Made Easy. Part 1: Working with IP Addresses.
IP Addressing. Each TCP/IP host is identified by a logical IP address. –The IP address is a network layer address –No dependence on the Data-Link layer.
IP Addressing Basics LAB 8.
NETWORK LAYER IP Addressing 1. ANNOUNCEMENT: Rescheduled  NO PRACTICAL SESSIONS ON TUESDAY 22, November 2010  Rescheduled sessions: MONDAY: November.
Layering and the TCP/IP protocol Suite  The TCP/IP Protocol only contains 5 Layers in its networking Model  The Layers Are 1.Physical -> 1 in OSI 2.Network.
Week 3 - IP addressing 4 Introduction to IP addressing 4 Classes of IP addressing 4 Why Subnet Masks are necessary? 4 How to create subnet masks.
Spring Ch 18 IP Addresses. 2 Internet Protocol  Only protocol at Layer 3  Defines Internet addressing Internet packet format Internet routing.
Types of Addresses in IPv4 Network Range
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
4: Addressing Working At A Small-to-Medium Business or ISP.
Chap 10 Routing and Addressing Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
1 Real Networkers don’t use Decimal! Part 1. Binary & Interpreting IP Addresses October 19, 2004.
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
IP Addressing Basics LAB 8.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Addressing Networking for Home and Small Businesses – Chapter 5.
IP Addresses & Classes Presented By: M.Usman Khan Ghauri Nauman Aslam.
TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting.
ES 101. Module 2 IP Addressing & Routing. Last Lecture Wide area networking Definition of “packets”
CSE5803 Advanced Internet Protocols and Applications (2) Universal Identifier In general, addressing in a network is closely linked with the issue.
The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung.
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
IP ADDRESSING, SUBNETTING & VLSM 1. Decimal vs. Binary Numbers – Decimal numbers are represented by the numbers 0 through 9. – Binary numbers are represented.
Addressing the Network - IPV4 Part II
Addressing IP v4 W.Lilakiatsakun. Anatomy of IPv4 (1) Dotted Decimal Address Network Address Host Address.
Cisco – Chapter 8&9 - Ethernet Technologies and Ethernet Switching TCP/IP IP Addressing ARP and RARP.
LECTURE ON IP Addressing. What is Networking? –by ‘computer network’ we mean the interconnection between different computers. Why Networking? –to share.
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
The Saigon CTT Semester 1 CHAPTER 10 Wael Yousif.
Routing and Addressing
Network layer (Part III)
CS470 Computer Networking Protocols
Introduction to Computer Networking
1 Layer 3: Routing & Addressing Honolulu Community College Cisco Academy Training Center Semester 1 Version
Layer 3 Routing and Addressing. Layer 3 Responsibilities Move data through a set of networks. Use a hierarchical addressing scheme. Segment network and.
Cisco – Chapter 10 - Routers IP Addressing Subnetmasking.
Chapter 15 PPT for IPV4 and IPV6 Working with IP Addresses.
IP Addressing, Sub-netting & VLSM
Internet Architecture
LESSON Networking Fundamentals Understand IPv4.
IP Addressing Pertemuan 06
OSI Model IP address.
Chapter-5 TCP/IP Suite.
4 Network Layer Part I Computer Networks Tutun Juhana
CS4470 Computer Networking Protocols
IP Addresses: Classful Addressing
Chapter 5 Working with IP Addresses
Week 6: Network Protocols Part 2
Subnetting Surasak Sanguanpong
Dr. John P. Abraham Professor UTPA
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 4: Planning and Configuring Routing and Switching.
Planning the Addressing Structure
The Internet Protocol Eliot Grove Danny Friel Stuart Anderson.
Layering and the TCP/IP protocol Suite
Lec2: Experiment Designing the network, IP addressing and Subnets, designing using Variable Length Subnet Mask Dr. Mohamed Abd-Eldayem References: CCNA.
Presentation transcript:

IP Addressing and Subnetting Computer Maintenance IP Addressing and Subnetting Computer Maintenance: Subnetting Lesson Copyright © Texas Education Agency, 2011. All rights reserved.

Addressing Schemes Hierarchical Flat Used by intranetworks Used by layer 2 Used in MAC address Is assigned statically based on the next available number or randomly Social Security Number Your Name Hierarchical Used by internetworks Used by Layer 3 Used by IP address Is assigned dynamically based on you location Phone System ZIP Code Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Network & Host numbers N = the Network Number that is assigned by the American Registry for Internet Numbers (ARIN) H = the Host Number that is assigned by the network administrator Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Class A Addresses When written in a binary format, the first (leftmost) bit of a Class A address is always 0. An example of a Class A IP address is 124.95.44.15. The first octet, 124, identifies the network number assigned by ARIN. The internal administrators of the network assign the remaining 24 bits. An easy way to recognize whether a device is part of a Class A network is to look at the first octet of its IP address, which will range from 0-126. (127 does start with a 0 bit, but has been reserved for special purposes.) All Class A IP addresses use only the first 8 bits to identify the network part of the address. The remaining three octets can be used for the host portion of the address. Every network that uses a Class A IP address can have assigned up to 2 to-the-power-of 24 (224) minus 2 (or 16,777,214) possible IP addresses to devices that are attached to its network. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Class B Addresses The first 2 bits of a Class B address are always 10 (one and zero). An example of a Class B IP address is 151.10.13.28. The first two octets identify the network number assigned by ARIN. The internal administrators of the network assign the remaining 16 bits. An easy way to recognize whether a device is part of a Class B network is to look at the first octet of its IP address. Class B IP addresses always have values ranging from 128 to 191 in their first octet. All Class B IP addresses use the first 16 bits to identify the network part of the address. The two remaining octets of the IP address can be used for the host portion of the address. Every network that uses a Class B IP address can have assigned up to 2 to-the-power of 16 (216) minus 2 (or 65,534) possible IP addresses to devices that are attached to its network. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Class C Addresses The first 3 bits of a Class C address are always 110 (one, one, and zero). An example of a Class C IP address is 201.110.213.28. The first three octets identify the network number assigned by ARIN. The internal administrators of the network assign the remaining 8 bits . An easy way to recognize whether a device is part of a Class C network is to look at the first octet of its IP address. Class C IP addresses always have values ranging from 192 to 223 in their first octet. All Class C IP addresses use the first 24 bits to identify the network part of the address. Only the last octet of a Class C IP address can be used for the host portion of the address. Every network that uses a Class C IP address can have assigned up to 28 minus 2 (or 254) possible IP addresses to devices that are attached to its network. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Class A 0 - 126 Class B 128 - 191 Class C 192 - 223 Address Ranges IMPORTANT!!! MEMORIZE Class A 0 - 126 Class B 128 - 191 Class C 192 - 223 127 is reserved for testing (loopback) Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

This is known as the Dotted Decimal Converting to Binary An IP Address is made up of 32 bits broken down into 4 Octets (8 bits each) 11000000.00001100.00000101.10101010 or 192.12.2.170 This is known as the Dotted Decimal Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Converting to Binary Convert these to decimal: 1. 11001100 = 204 1. 11001100 = 204 4. 00110011 = 51 2. 10101010 = 170 5. 01010101 = 85 3. 11111111 = 255 6. 00111100 = 60 Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Network Number An IP address that ends with binary 0s in all host bits is reserved for the network address (sometimes called the wire address). Therefore, a Class A network number, 113.0.0.0 is the IP address of the network containing the host 113.1.2.3. A router uses a network's IP address when it forwards data on the Internet. As a Class B network example, the IP address 176.10.0.0 is a network address. The decimal numbers that fill the first two octets in a Class B network address are assigned and are network numbers. The last two octets contain 0s because those 16 bits are for host numbers, and are used for devices that are attached to the network. The IP address in the example (176.10.0.0) is reserved for the network address. It will never be used as an address for any device that is attached to it. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Examples of Network Numbers What is the network number for this IP address? 194.78.112.6 117.23.8.3 156.132.64.12 208.150.112.16 91.118.125.2 194.78.112.0 117.0.0.0 156.132.0.0 208.150.112.0 91.0.0.0 Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Broadcast Addresses 255 If you wanted to send data to all of the devices on a network, you would need to use a broadcast address. A broadcast occurs when a source sends out data to all devices on a network. To ensure that all of the devices on the network pay attention to the broadcast, the sender must use a destination IP address that all of them can recognize and will pick up. Broadcast IP addresses end with binary 1s in the entire host part of the address (the host field). A Class C address would have a broadcast of 196.112.17.255. A Class B address would have a broadcast of 152.16.255.255. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Examples of Broadcast Addresses What is the Broadcast address for this IP address? 194.78.112.6 117.23.8.3 156.132.64.12 208.150.112.16 91.118.125.2 194.78.112.255 117.255.255.255 156.132.255.255 208.150.112.255 91.255.255.255 Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Network Numbers and Broadcast Addresses All 0’s in the host address is the Network Number All 1’s in the host address is the Broadcast Address These two addresses can never be used when assigning IPs. When finding the number of useable host addresses, you will always subtract 2 (network & Broadcast). Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Why Subnet? The primary reason for using subnets is to reduce the size of a broadcast domain. Broadcasts are sent to all hosts on a network or subnetwork. When broadcast traffic begins to consume too much of the available bandwidth, network administrators may choose to reduce the size of the broadcast domain. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Subneting Subnet addresses include the Class A, Class B, or Class C network portion, plus a subnet field and a host field. The subnet field and the host field are created from the original host portion for the entire network. The ability to decide how to divide the original host portion into the new subnet and host fields provides addressing flexibility for the network administrator. To create a subnet address, a network administrator borrows bits from the original host portion and designates them as the subnet field. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

IMPORTANT!!! You must always borrow at least 2 bits and you must always leave at least 2 bits: One for the network number and one for the broadcast. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

What is a Subnet Mask? Class B Default Subnet Mask 255.255.0.0 Class B Subnet Mask with 4 bits borrowed 255.255.240.0 The subnet mask (formal term: extended network prefix), tells the network devices which part of an address is the network field and which part is the host field. A subnet mask is 32 bits long and has 4 octets, just like an IP address. Bits are always borrowed from the leftmost available bit. To determine the subnet mask for a particular subnetwork IP address, follow these steps: Express the subnetwork IP address in binary form. Replace the network and subnet portion of the address with 1s. Replace the host portion of the address with 0s. Convert the binary expression back into dotted-decimal notation. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Subnet Masks If you have a class C address: How many bits are used without subneting? What is the subnet mask? If you borrowed 4 bits, how many are used? 24 11111111.11111111.11111111.00000000 or 255.255.255.0 28 11111111.11111111.11111111.11110000 or 255.255.255.240 Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Examples of Subnet Masks What is the Subnet Mask for this IP address? 194.78.112.6/28 117.23.8.3/10 156.132.64.12/20 208.150.112.16/30 91.118.125.2/16 255.255.255.240 255.192.0.0 255.255.240.0 255.255.255.252 255.255.0.0 Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Subnetting Borrowing 2 bits creates four possible subnets (2x2), but you must always remember that there are two reserved/unusable subnets. Each time you borrow another bit from the host field, the number of subnets created increases by a power of 2. The eight possible subnets that are created by borrowing 3 bits is equal to 23 (2 x 2 x 2). The sixteen possible subnets created by borrowing 4 bits is equal to 24 (2 x 2 x 2 x 2). From these examples, it is easy to see that each time you borrow another bit from the host field, the number of possible subnets doubles. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Useable Subnets and Hosts MEMORIZE The formula for calculating USEABLE Subnets: 2b - 2 = useable subnets The formula for calculating USEABLE Hosts: 2u - 2 = useable hosts Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Calculating Subnets and Hosts In a Class C network, if you borrow 3 bits What is the subnet mask? How many usable subnets? How many useable hosts per subnet? 255.255.255.224 2b-2= ? 23 (8) - 2 = 6 usable subnets 2u-2= ? 25 (32) - 2 = 30 usable hosts Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

The more subnets you create, the fewer hosts each subnet will have. Class C Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Boolean Operations The term "operation," in mathematics, refers to the rules that define how one number combines with other numbers. Decimal number operations include addition, subtraction, multiplication, and division. There are related, but different, operations for working with binary numbers. The basic Boolean operations are AND, OR, and NOT. AND is like multiplication. OR is like addition. NOT changes 1 to 0, and 0 to 1. In order to route a data packet, the router must first determine the destination network/subnet address by performing a logical AND, using the destination host's IP address and subnet mask. The result will be the network/subnet address. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

ANDing Find the network address for this class B IP: 180.160.120.8/18 What’s the subnet mask? Change IP to binary Change SM to binary AND function Convert back to decimal Network address 255.255.192.0 10110100 . 10100000 . 01111000 . 00001000 11111111 . 11111111 . 11000000 . 00000000 10110100 . 10100000 . 01000000 . 00000000 180.160.64.0 Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Private Addresses There are certain addresses in each class of IP address that are not assigned. These addresses are called private addresses. Private addresses might be used by hosts that use network address translation (NAT), or a proxy server, to connect to a public network, or by hosts that do not connect to the Internet at all. Many applications require connectivity within only one network, and do not need external connectivity. In large networks, TCP/IP is often used, even when network layer connectivity outside the network isn’t needed. Banks are good examples. They may use TCP/IP to connect to automatic teller machines (ATMs). These machines do no connect to the public network, so private addresses are ideal for them. Private addresses can also be used on a network where there are not enough public addresses available. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

Private Addresses 10.0.0.0 – 10.255.255.255 172.16.0.0 – 172.31.255.255 192.168.0.0 – 192.168.255.255 The private addresses can be used together with a network address translation (NAT) server. Either a NAT or proxy server provides connectivity to all hosts in a network that has relatively few public addresses available. By agreement, any traffic with a destination address within one of the private address ranges will NOT be routed onto the Internet. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

9 essential questions you must always ask before finding your IPs. What class is it? Determine how many bits you must borrow to create the desired number of subnets (if applicable). Determine the possible and usable subnets. Determine how many possible and usable hosts you have in each subnet. Determine the Default Mask. Determine the Subnet Mask. Determine the IP address range (increment) of each subnetwork. It is always the possible number of hosts. Determine the network and broadcast address for each useable subnetwork. Determine the usable range for each subnetwork. Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

A class C address with 4 bits What class is it? Determine how many bits you must borrow to create the desired number of subnets (if applicable). Determine the possible and usable subnets. Determine how many possible and usable hosts you have in each subnet. Determine the Default Mask. Determine the Subnet Mask. Determine the IP address range (increment) of each subnetwork. Determine the network and broadcast address for each useable subnetwork. Determine the usable range for each subnetwork. Class C 4 24 (16) - 2 = 14 usable 24 (16) - 2 = 14 usable 255.255.255.0 255.255.255.240 16 Completed IP chart Completed IP chart Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson

An IP address of 196.112.48.12/29 What class is it? Determine how many bits you must borrow to create the desired number of subnets (if applicable). Determine the possible and usable subnets. Determine how many possible and usable hosts you have in each subnet. Determine the Default Mask. Determine the Subnet Mask. Determine the IP address range (increment) of each subnetwork. Determine the network and broadcast address for each useable subnetwork. Determine the usable range for each subnetwork. Class C 5 25 (32) - 2 = 30 usable 23 (8) - 2 = 6 usable 255.255.255.0 255.255.255.248 Completed IP chart 8 Completed IP chart Copyright © Texas Education Agency, 2011. All rights reserved. Computer Maintenance: Subnetting Lesson