SlideShare uma empresa Scribd logo
1 de 27
Subnetting Rick Graziani Cabrillo College Note:  These example use classless addressing.  Instead of a default classful mask, a network mask is given.
Rick Graziani  graziani@cabrillo.edu 2 What is subnetting? Network Network Subnet Host Network Network Host Host 172 16 0 0 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 3 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 4 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 5 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 6                                                                                                                                                                                                 10 barrels x 8 apples = 80 apples 8 8 8 (less 2) (less 2) (less 2) 8 8 8 80 Apples 10 * (10 - 2) (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 7                                                                                                                                                                                                 10 barrels x 8 apples = 80 apples X 8 8 8 --- (less 2) (less 2) (less 2) 8 8 8 64 Apples    8 * (10 - 2) (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 8 Subnet Example Network address 172.16.0.0 with /16 network mask Network Network Host Host 172 16 0 0
Rick Graziani  graziani@cabrillo.edu 9 Network Network Subnet Host Subnet Example Network address 172.16.0.0 with /16 network mask Network Network Host Host 172 16 0 0 Using Subnets: subnet mask 255.255.255.0 or /24 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 10 Network Network Subnet Host 172 16 0 Host 172 16 1 Host 172 16 2 Host 172 16 3 Host 172 16 Etc. Host 172 16 254 Host 172 16 255 Host Subnet Example Network address 172.16.0.0 with /16 network mask Using Subnets: subnet mask 255.255.255.0 or /24 Subnets 255 Subnets 28 - 1 Cannot use last subnet as it contains broadcast address
Rick Graziani  graziani@cabrillo.edu 11 Network Network Subnet Host 172 16 0 0 172 16 1 0 172 16 2 0 172 16 3 0 172 16 Etc. 0 172 16 254 0 172 16 255 0 Subnet Example Network address 172.16.0.0 with /16 network mask Using Subnets: subnet mask 255.255.255.0 or /24 Subnets Addresses 255 Subnets 28 - 1 Cannot use last subnet as it contains broadcast address
Rick Graziani  graziani@cabrillo.edu 12 Network Network Subnet Hosts 172 16 0 1 172 16 1 1 172 16 2 1 172 16 3 1 172 16 Etc. 1 172 16 254 1 172 16 255 Host 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 254 254 254 254 254 254 Each subnet has 254 hosts, 28 – 2
Rick Graziani  graziani@cabrillo.edu 13 Network Network Subnet Host 172 16 0 255 172 16 1 255 172 16 2 255 172 16 3 255 172 16 Etc. 255 172 16 254 255 172 16 255 255 Subnet Example Network address 172.16.0.0 with /16 network mask Using Subnets: subnet mask 255.255.255.0 or /24 Broadcast Addresses 255 Subnets 28 - 1 Cannot use last subnet as it contains broadcast address
Rick Graziani  graziani@cabrillo.edu 14 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 15 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 lastlast 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 16 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 Subnetting – Example #1 (on the board)
Rick Graziani  graziani@cabrillo.edu 17 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 Subnetting – Example #2
Rick Graziani  graziani@cabrillo.edu 18 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 19 128  64  32  16  8  4  2  1 Step 1: Translate Host IP Address and Subnet Mask into binary notation Step 1: Convert to Binary
Rick Graziani  graziani@cabrillo.edu 20 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 or “Wire” which is 138.101.114.192 Step 2: Find the Subnet Address
Rick Graziani  graziani@cabrillo.edu 21 Step 2: 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 Step 2: Find the Subnet Address
Rick Graziani  graziani@cabrillo.edu 22 Step 3: 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. Step 3: Subnet Range / Host Range
Rick Graziani  graziani@cabrillo.edu 23 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 24 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 Step 5: Total Number of Subnets
Rick Graziani  graziani@cabrillo.edu 25 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 Step 6: Total Number of Hosts per Subnet
Rick Graziani  graziani@cabrillo.edu 26 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 Host IP Address: 10.10.10.193 Network Mask: 255.255.255.0 Subnet Mask: 255.255.255.240 Problem 3 Host IP Address: 10.10.10.193 Network Mask: 255.255.255.0 Subnet Mask: 255.255.255.252
Subnetting Rick Graziani Cabrillo College

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Subnet Mask
Subnet MaskSubnet Mask
Subnet Mask
 
Application Layer
Application LayerApplication Layer
Application Layer
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
Subnetting Presentation
Subnetting PresentationSubnetting Presentation
Subnetting Presentation
 
Sub Netting
Sub NettingSub Netting
Sub Netting
 
Network Layer Numericals
Network Layer NumericalsNetwork Layer Numericals
Network Layer Numericals
 
Subnetting
SubnettingSubnetting
Subnetting
 
VLSM & SUPERNETTING
VLSM & SUPERNETTINGVLSM & SUPERNETTING
VLSM & SUPERNETTING
 
Chapter 2 : Application Layer
Chapter 2 : Application LayerChapter 2 : Application Layer
Chapter 2 : Application Layer
 
Chapter 25
Chapter 25Chapter 25
Chapter 25
 
IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING
 
Subnet Design
Subnet DesignSubnet Design
Subnet Design
 
IP addressing and Subnetting PPT
IP addressing and Subnetting PPTIP addressing and Subnetting PPT
IP addressing and Subnetting PPT
 
Subnetting
SubnettingSubnetting
Subnetting
 
Stop And Wait ARQ
Stop And Wait ARQStop And Wait ARQ
Stop And Wait ARQ
 
Dynamic Host Configuration Protocol
Dynamic Host Configuration ProtocolDynamic Host Configuration Protocol
Dynamic Host Configuration Protocol
 
Domain Name System DNS
Domain Name System DNSDomain Name System DNS
Domain Name System DNS
 
go back n protocol
go back n protocolgo back n protocol
go back n protocol
 
Domain name server
Domain name serverDomain name server
Domain name server
 
C I D R
C I D RC I D R
C I D R
 

Semelhante a Classless subnetting

8-Additional_IPSubnetting_KED (2).ppt
8-Additional_IPSubnetting_KED (2).ppt8-Additional_IPSubnetting_KED (2).ppt
8-Additional_IPSubnetting_KED (2).pptjaycallaga
 
Fixed Length Subnetting about ip address.pptx
Fixed Length Subnetting about ip address.pptxFixed Length Subnetting about ip address.pptx
Fixed Length Subnetting about ip address.pptxShaqib3
 
Subnetting in network layer in computer networks
Subnetting in network layer in computer networksSubnetting in network layer in computer networks
Subnetting in network layer in computer networkskarthiktyagi2
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccnarobertoxe
 
Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basicstmavroidis
 
Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2kurtmctaggart
 
Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basicsMahmmoud Mahdi
 
IPv4 addressing and subnetting
IPv4 addressing and subnettingIPv4 addressing and subnetting
IPv4 addressing and subnettingShashank Asthana
 
CyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & SubnettingCyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & SubnettingVivek chan
 
Lab 18 Answer TemplateProblem 1IP address 192.168.10.0 27 (giv.docx
Lab 18 Answer TemplateProblem 1IP address  192.168.10.0 27 (giv.docxLab 18 Answer TemplateProblem 1IP address  192.168.10.0 27 (giv.docx
Lab 18 Answer TemplateProblem 1IP address 192.168.10.0 27 (giv.docxDIPESH30
 
7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork Layer7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork LayerZahouAmel1
 
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...ZahouAmel1
 
Subnetting - TKJ SMK Kelas XI - Cisco CCNA
Subnetting - TKJ SMK Kelas XI - Cisco CCNASubnetting - TKJ SMK Kelas XI - Cisco CCNA
Subnetting - TKJ SMK Kelas XI - Cisco CCNAElfana Harmadyansjah
 

Semelhante a Classless subnetting (20)

8-Additional_IPSubnetting_KED (2).ppt
8-Additional_IPSubnetting_KED (2).ppt8-Additional_IPSubnetting_KED (2).ppt
8-Additional_IPSubnetting_KED (2).ppt
 
Subnetting ked
Subnetting kedSubnetting ked
Subnetting ked
 
Vlsm
VlsmVlsm
Vlsm
 
Subneting.ppt
Subneting.pptSubneting.ppt
Subneting.ppt
 
Subnetting
SubnettingSubnetting
Subnetting
 
Fixed Length Subnetting about ip address.pptx
Fixed Length Subnetting about ip address.pptxFixed Length Subnetting about ip address.pptx
Fixed Length Subnetting about ip address.pptx
 
Subnetting in network layer in computer networks
Subnetting in network layer in computer networksSubnetting in network layer in computer networks
Subnetting in network layer in computer networks
 
Mod6
Mod6Mod6
Mod6
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccna
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccna
 
Easy subnetting
Easy subnettingEasy subnetting
Easy subnetting
 
Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basics
 
Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2
 
Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basics
 
IPv4 addressing and subnetting
IPv4 addressing and subnettingIPv4 addressing and subnetting
IPv4 addressing and subnetting
 
CyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & SubnettingCyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & Subnetting
 
Lab 18 Answer TemplateProblem 1IP address 192.168.10.0 27 (giv.docx
Lab 18 Answer TemplateProblem 1IP address  192.168.10.0 27 (giv.docxLab 18 Answer TemplateProblem 1IP address  192.168.10.0 27 (giv.docx
Lab 18 Answer TemplateProblem 1IP address 192.168.10.0 27 (giv.docx
 
7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork Layer7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork Layer
 
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...
 
Subnetting - TKJ SMK Kelas XI - Cisco CCNA
Subnetting - TKJ SMK Kelas XI - Cisco CCNASubnetting - TKJ SMK Kelas XI - Cisco CCNA
Subnetting - TKJ SMK Kelas XI - Cisco CCNA
 

Classless subnetting

  • 1. Subnetting Rick Graziani Cabrillo College Note: These example use classless addressing. Instead of a default classful mask, a network mask is given.
  • 2. Rick Graziani graziani@cabrillo.edu 2 What is subnetting? Network Network Subnet Host Network Network Host Host 172 16 0 0 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.)
  • 3. Rick Graziani graziani@cabrillo.edu 3 Analogy                                                                                                                                 Dividing the barrel of apples into small barrels or baskets does not give us any more apples… 100 Apples
  • 4. Rick Graziani graziani@cabrillo.edu 4 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
  • 5. Rick Graziani graziani@cabrillo.edu 5 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)
  • 6. Rick Graziani graziani@cabrillo.edu 6                                                                                                                                                                                                 10 barrels x 8 apples = 80 apples 8 8 8 (less 2) (less 2) (less 2) 8 8 8 80 Apples 10 * (10 - 2) (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
  • 7. Rick Graziani graziani@cabrillo.edu 7                                                                                                                                                                                                 10 barrels x 8 apples = 80 apples X 8 8 8 --- (less 2) (less 2) (less 2) 8 8 8 64 Apples 8 * (10 - 2) (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 ---
  • 8. Rick Graziani graziani@cabrillo.edu 8 Subnet Example Network address 172.16.0.0 with /16 network mask Network Network Host Host 172 16 0 0
  • 9. Rick Graziani graziani@cabrillo.edu 9 Network Network Subnet Host Subnet Example Network address 172.16.0.0 with /16 network mask Network Network Host Host 172 16 0 0 Using Subnets: subnet mask 255.255.255.0 or /24 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
  • 10. Rick Graziani graziani@cabrillo.edu 10 Network Network Subnet Host 172 16 0 Host 172 16 1 Host 172 16 2 Host 172 16 3 Host 172 16 Etc. Host 172 16 254 Host 172 16 255 Host Subnet Example Network address 172.16.0.0 with /16 network mask Using Subnets: subnet mask 255.255.255.0 or /24 Subnets 255 Subnets 28 - 1 Cannot use last subnet as it contains broadcast address
  • 11. Rick Graziani graziani@cabrillo.edu 11 Network Network Subnet Host 172 16 0 0 172 16 1 0 172 16 2 0 172 16 3 0 172 16 Etc. 0 172 16 254 0 172 16 255 0 Subnet Example Network address 172.16.0.0 with /16 network mask Using Subnets: subnet mask 255.255.255.0 or /24 Subnets Addresses 255 Subnets 28 - 1 Cannot use last subnet as it contains broadcast address
  • 12. Rick Graziani graziani@cabrillo.edu 12 Network Network Subnet Hosts 172 16 0 1 172 16 1 1 172 16 2 1 172 16 3 1 172 16 Etc. 1 172 16 254 1 172 16 255 Host 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 254 254 254 254 254 254 Each subnet has 254 hosts, 28 – 2
  • 13. Rick Graziani graziani@cabrillo.edu 13 Network Network Subnet Host 172 16 0 255 172 16 1 255 172 16 2 255 172 16 3 255 172 16 Etc. 255 172 16 254 255 172 16 255 255 Subnet Example Network address 172.16.0.0 with /16 network mask Using Subnets: subnet mask 255.255.255.0 or /24 Broadcast Addresses 255 Subnets 28 - 1 Cannot use last subnet as it contains broadcast address
  • 14. Rick Graziani graziani@cabrillo.edu 14 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
  • 15. Rick Graziani graziani@cabrillo.edu 15 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 lastlast 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.
  • 16. Rick Graziani graziani@cabrillo.edu 16 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 Subnetting – Example #1 (on the board)
  • 17. Rick Graziani graziani@cabrillo.edu 17 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 Subnetting – Example #2
  • 18. Rick Graziani graziani@cabrillo.edu 18 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
  • 19. Rick Graziani graziani@cabrillo.edu 19 128 64 32 16 8 4 2 1 Step 1: Translate Host IP Address and Subnet Mask into binary notation Step 1: Convert to Binary
  • 20. Rick Graziani graziani@cabrillo.edu 20 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 or “Wire” which is 138.101.114.192 Step 2: Find the Subnet Address
  • 21. Rick Graziani graziani@cabrillo.edu 21 Step 2: 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 Step 2: Find the Subnet Address
  • 22. Rick Graziani graziani@cabrillo.edu 22 Step 3: 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. Step 3: Subnet Range / Host Range
  • 23. Rick Graziani graziani@cabrillo.edu 23 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
  • 24. Rick Graziani graziani@cabrillo.edu 24 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 Step 5: Total Number of Subnets
  • 25. Rick Graziani graziani@cabrillo.edu 25 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 Step 6: Total Number of Hosts per Subnet
  • 26. Rick Graziani graziani@cabrillo.edu 26 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 Host IP Address: 10.10.10.193 Network Mask: 255.255.255.0 Subnet Mask: 255.255.255.240 Problem 3 Host IP Address: 10.10.10.193 Network Mask: 255.255.255.0 Subnet Mask: 255.255.255.252
  • 27. Subnetting Rick Graziani Cabrillo College