Subnetting Rick Graziani Cabrillo College

Slides:



Advertisements
Similar presentations
IP Addressing and Subnetting
Advertisements

1 IP Subnetting (Modified version of slides from Rick Graziani) Karim El Defrawy Donald Bren School of Information and Computer Science University of California.
OUR SUBNET PLANNING MISSION: We have been assigned an address of Assume 20 subnets are needed, with 5 hosts per subnet. Our mission is to.
Module 10: Routing Fundamentals and Subnets Small Router Purchase Subnetting Example a Basic Subnetting b Subnetting a Class A Network.
IP Addressing Pertemuan 18 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Mod 9 – IP Addressing Part 1 CIS151 Paul Morris MHCC.
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.
Classless Subnetting Using the Worksheet
Data Communication and Networking
Introduction to Networking (Yarnfield) Classful subnetting.
IP Addressing and Subnetting
IP Subnetting CIT 307 Kevin Siminski.
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—4-1 LAN Connections Constructing a Network Addressing Scheme.
Introduction to Networking (Yarnfield) Variable Length Subnet Masking (VLSM)
1 Chapter Overview Subnet. What is a subnet When you break a network into a few smaller networks, you have created several subnets Like IP address where.
IP Addresses: Classful Addressing An IP address is a 32-bit address.
Ch.9 – IP Addressing Part 1 CCNA 1 version 3.1.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 subnetting.
Information & Communication Technology
DCN286 INTRODUCTION TO DATA COMMUNICATION TECHNOLOGY Network Basics Introduction Instructor: Ataur Rahman
Subnetting Made Simple By Keith W. Noe – CCNA, CCAI Ivy Tech Community College Sellersburg, Indiana.
Chapter 12 Subnetting CIS 1140.
1 Real Networkers don’t use Decimal! Part 1. Binary & Interpreting IP Addresses October 19, 2004.
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.
Chapter 6 IPv4 Addresses – Part 1 CIS 81 Networking Fundamentals Rick Graziani Cabrillo College Spring 2010.
Number Systems.
CISCO NETWORKING ACADEMY Chabot College ELEC Subnet Masking.
CISCO NETWORKING ACADEMY Chabot College ELEC Subnet Review.
Binary Lesson 5 Usable Addresses Class A, B, and C.
 An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection.
Chapter 6 IPv4 Addresses – Part 2 Instructor: Amir Adelipour.
Module 10 - Subnetting For Fun and Profit
Chapter 6 IPv4 Addresses – Part 2 CIS 81 Networking Fundamentals Rick Graziani Cabrillo College Last Updated: 3/30/2008.
Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College Last Updated: 3/30/2008.
Chapter 6 IPv4 Addresses – Part 1 CIS 81 Networking Fundamentals Rick Graziani Cabrillo College Last Updated: 3/9/2008.
Saeed Darvish Pazoki – MCSE, CCNA IP Subnetting 1.
Binary Lesson 6.1 Classful Subnetting 2
Routing and Addressing
IP Addresses Mark Woodhouse and Arthur Manning IP Addressing Used packets created in Layer 3 of the Open Systems Interconnection (OSI) Model Hierarchical.
تقسيم الشبكات Subnetting
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.
IP addressing.
Introduction to Computer Networking
Computer Network Architecture Lecture 9: IP Addressing 13/1/
IP ADDRESSES Lecture 6: Network Architectures. IP address  address (IP address) is a numerical label assigned to each device (e.g., computer, printer)
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.
Layer 3 Routing and Addressing. Layer 3 Responsibilities Move data through a set of networks. Use a hierarchical addressing scheme. Segment network and.
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.
Subnetting Divide a network to smaller networks (subnets) Reasons
Internet Architecture
Chapter 5 Exploring IPv4.
IP Addressing and Subnetting
Dotted Decimal Notation
Binary Concepts By: Nathan Miller.
Master Subnetting – Section 3
Classful Subnetting IPv4
Binary Lesson 5.5 Usable Addresses Class A, B, and C
Addressing the Network - IPV4 Part III
Lec 9 Subnet 3.1 Computer Networks Al-Mustansiryah University
Chapter 2 Easy Subnetting
Addressing the Network - IPV4 Part III
Creating Subnets – Network Requirements
Binary Lesson 5.5 Usable Addresses Class A, B, and C
Binary Lesson 6 Classful Subnetting
Introduction to Networking (Yarnfield)
Binary Lesson 6 Classful Subnetting /24, /25, and /26
Binary Lesson 6 Classful Subnetting
Chapter 2 Easy Subnetting
Presentation transcript:

Subnetting Rick Graziani Cabrillo College Note: These example use classless addressing. Instead of a default classful mask, a network mask is given.

What is subnetting? Network Network Host Host 172 16 Network Subnet Network Subnet Host Subnetting is the process of borrowing bits from the HOST bits, in order to divide the larger network into small subnets. Subnetting does NOT give you more hosts, but actually costs you hosts. You lose two host IP Addresses for each subnet, and perhaps one for the subnet IP address and one for the subnet broadcast IP address. You lose the last subnet and all of it’s hosts’ IP addresses as the broadcast for that subnet is the same as the broadcast for the network. In older networks, you would have lost the first subnet, as the subnet IP address is the same as the network IP address. (This subnet can be used in most networks.) Rick Graziani graziani@cabrillo.edu

Analogy Dividing the barrel of apples into small barrels or baskets does not give us any more apples…                                                                                                                                 100 Apples Rick Graziani graziani@cabrillo.edu

Analogy 10 barrels x 10 apples = 100 apples 10 10 10                                                                                                                                                                                                 100 Apples (10 * 10) 10 10 10 10 10 10 It is the same as taking a barrel of 100 apples and dividing it into 10 barrels of 10 apples each. 10 Rick Graziani graziani@cabrillo.edu

Analogy 100 – 2 apples = 98 Usable Apples Before subnetting: In any network (or subnet) we can not use all the IP addresses for host addresses. We lose two addresses for every network or subnet. Network Address - One address is reserved to that of the network. Broadcast Address – One address is reserved to address all hosts in that network or subnet.                                                                                                                                 98 Apples (100 – 2) Rick Graziani graziani@cabrillo.edu

10 barrels x 8 apples = 80 apples                                                                                                                                                                                                 (less 2) (less 2) (less 2) 80 Apples 10 * (10 - 2) 8 8 8 (less 2) (less 2) (less 2) 8 8 8 (less 2) (less 2) (less 2) In subnetting we will see that we continue to lose two apples per subnet, one for the address and one for the broadcast. 8 Rick Graziani graziani@cabrillo.edu

X X 10 barrels x 8 apples = 80 apples --- 8 8 8 64 Apples 8 * (10 - 2)                                                                                                                                                                                                 (less 2) (less 2) (less 2) 64 Apples 8 * (10 - 2) 8 8 8 (less 2) (less 2) (less 2) 8 8 8 (less 2) (less 2) (less 2) We “might” also lose the last basket of apples, subnet, as it contains the broadcast address for the entire network. In older networks, we “might” also lost the first basket, subnet, as it contained the address of the entire network, but this is usually no longer the case. X --- 8 Rick Graziani graziani@cabrillo.edu

Subnet Example Network address 172.16.0.0 with /16 network mask Host Host 172 16 Rick Graziani graziani@cabrillo.edu

Subnet Example Network address 172.16.0.0 with /16 network mask Host Host 172 16 Using Subnets: subnet mask 255.255.255.0 or /24 Network Subnet Host Network Mask: 255.255.0.0 or /16 11111111 11111111 00000000 00000000 Subnet Mask: 255.255.255.0 or /24 11111111 11111111 11111111 00000000 Applying a mask which is larger than the default subnet mask, will divide your network into subnets. Subnet mask used here is 255.255.255.0 or /24 Rick Graziani graziani@cabrillo.edu

Subnet Example Network address 172.16.0.0 with /16 network mask Using Subnets: subnet mask 255.255.255.0 or /24 Network Subnet Host Subnets 172 16 Host 172 16 1 Host 172 16 2 Host 255 Subnets 28 - 1 172 16 3 Host 172 16 Etc. Host 172 16 254 Host Cannot use last subnet as it contains broadcast address 172 16 255 Host Rick Graziani graziani@cabrillo.edu

Subnet Example Network address 172.16.0.0 with /16 network mask Using Subnets: subnet mask 255.255.255.0 or /24 Network Subnet Host Subnets Addresses 172 16 172 16 1 172 16 2 255 Subnets 28 - 1 172 16 3 172 16 Etc. 172 16 254 Cannot use last subnet as it contains broadcast address 172 16 255 Rick Graziani graziani@cabrillo.edu

Subnet Example Class B address 172.16.0.0 with /16 network mask Using Subnets: subnet mask 255.255.255.0 or /24 Hosts Addresses Network Subnet Hosts 172 16 1 254 172 16 1 254 172 16 2 1 254 172 16 3 1 254 172 16 Etc. 1 254 172 16 254 1 254 Each subnet has 254 hosts, 28 – 2 172 16 255 Host Rick Graziani graziani@cabrillo.edu

Subnet Example Network address 172.16.0.0 with /16 network mask Using Subnets: subnet mask 255.255.255.0 or /24 Network Subnet Host Broadcast Addresses 172 16 255 172 16 1 255 172 16 2 255 255 Subnets 28 - 1 172 16 3 255 172 16 Etc. 255 172 16 254 255 Cannot use last subnet as it contains broadcast address 172 16 255 Rick Graziani graziani@cabrillo.edu

Subnet Example Network address 172.16.0.0 with /16 network mask Using Subnets: subnet mask 255.255.255.0 or /24 172.16.0.0/24 172.16.10.0/24 172.16.25.0/24 172.16.5.0/24 Rick Graziani graziani@cabrillo.edu

Important things to remember about Subnetting You can only subnet the host portion, you do not have control of the network portion. Subnetting does not give you more hosts, it only allows you to divide your larger network into smaller networks. When subnetting, you will actually lose hosts: For each subnet you lose the address of that subnet For each subnet you lose the broadcast address of that subnet You “may” lose the first and last last subnets (coming) Analogy: Large barrel of 100 apples. Why subnet? Divide larger network into smaller network. Limit layer 2 and layer 3 broadcasts to their subnet. Better management of traffic. Rick Graziani graziani@cabrillo.edu

Subnetting – Example #1 (on the board) Host IP Address: 172.16.18.33 Network Mask: 255.255.0.0 Subnet Mask: 255.255.255.0 Given the following Host IP Address, Network Mask and Subnet mask find the following information: Major Network Information Major Network Address Major Network Broadcast Address Range of Hosts if not subnetted Subnet Information Subnet Address Range of Host Addresses (first host and last host) Broadcast Address Other Subnet Information Total number of subnets Number of hosts per subnet Rick Graziani graziani@cabrillo.edu

Subnetting – Example #2 Host IP Address: 138.101.114.250 Network Mask: 255.255.0.0 Subnet Mask: 255.255.255.192 Given the following Host IP Address, Network Mask and Subnet mask find the following information: Major Network Information Major Network Address Major Network Broadcast Address Range of Hosts if not subnetted Subnet Information Subnet Address Range of Host Addresses (first host and last host) Broadcast Address Other Subnet Information Total number of subnets Number of hosts per subnet Rick Graziani graziani@cabrillo.edu

Major Network Information Host IP Address: 138.101.114.250 Network Mask: 255.255.0.0 Subnet Mask: 255.255.255.192 Major Network Address: 138.101.0.0 Major Network Broadcast Address: 138.101.255.255 Range of Hosts if not Subnetted: 138.101.0.1 to 138.101.255.254 Rick Graziani graziani@cabrillo.edu

Step 1: Convert to Binary 128 64 32 16 8 4 2 1 Step 1: Translate Host IP Address and Subnet Mask into binary notation Rick Graziani graziani@cabrillo.edu

Step 2: Find the Subnet Address 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 or “Wire” which is 138.101.114.192 Rick Graziani graziani@cabrillo.edu

Step 2: Find the Subnet Address Determine the Network (or Subnet) where this Host address lives: Quick method: Find the last (right-most) 1 bit in the subnet mask. Copy all of the bits in the IP address to the Network Address Add 0’s for the rest of the bits in the Network Address Rick Graziani graziani@cabrillo.edu

Step 3: Subnet Range / Host Range Determine which bits in the address contain Network (subnet) information and which contain Host information: Use the Network Mask: 255.255.0.0 and divide (Great Divide) the from the rest of the address. Use Subnet Mask: 255.255.255.192 and divide (Small Divide) the subnet from the hosts between the last “1” and the first “0” in the subnet mask. Rick Graziani graziani@cabrillo.edu

Step 4: First Host / Last Host Host Portion Subnet Address: all 0’s First Host: all 0’s and a 1 Last Host: all 1’s and a 0 Broadcast: all 1’s Rick Graziani graziani@cabrillo.edu

Step 5: Total Number of Subnets Number of subnet bits 10 210 = 1,024 1,024 total subnets Subtract one “if” all-zeros subnet cannot be used Subtract one “if” all-ones subnet cannot be used Rick Graziani graziani@cabrillo.edu

Step 6: Total Number of Hosts per Subnet Number of host bits 6 26 = 64 64 host per subnets Subtract one for the subnet address Subtract one for the broadcast address 62 hosts per subnet Rick Graziani graziani@cabrillo.edu

Your Turn! Problem 1 Host IP Address: 10.10.10.193 Network Mask: 255.255.0.0 Subnet Mask: 255.255.255.0 Problem 2 Network Mask: 255.255.255.0 Subnet Mask: 255.255.255.240 Problem 3 Subnet Mask: 255.255.255.252 Rick Graziani graziani@cabrillo.edu

Rick Graziani Cabrillo College Subnetting Rick Graziani Cabrillo College