SlideShare a Scribd company logo
1 of 46
Download to read offline
Objectives


•   Understand IPv4 addresses and classes
•   Identify the class of an IP address
•   Find the network address given an IP address
•   Understand masks and how to use them
•   Understand subnets




                               www.cbtvid.com




                  IP Addressing and Subnetting Page 1
Introduction

 The identifier used in the IP layer of the TCP/IP protocol
 suite to identify each device connected to the Internet is
 called the Internet address or IP address.
 An IP address is a 32-bit address that uniquely and
 universally defines the connection of a host or a router to
 the Internet.
 IP addresses are unique. They are unique in the sense that
 each address defines one, and only one, connection to the
 Internet.
 Two devices on the Internet can never have the same
 address.

                       200.100.125.100
   23456789
                                www.cbtvid.com




                   IP Addressing and Subnetting Page 2
Note



 An IP address is a 32-bit address.

 The IP addresses are unique.

 The address space of IPv4 is
 232 or 4,294,967,296.
 10



                       www.cbtvid.com




          IP Addressing and Subnetting Page 3
The Structure of IP Address




                                     Octet


   IP address format is dotted decimal. Dotted decimal makes it easy to work with IP addresses.



                                         www.cbtvid.com




                            IP Addressing and Subnetting Page 4
Example


 00000000 = 0
 11111111 = 255

 11100111 11011011 10001011 01101111



                  231.219.139.111



                               www.cbtvid.com




                  IP Addressing and Subnetting Page 5
IP Address Classes
RFC 791 defines the IP protocol.



      *




                                                                                                Multicast

                                                                                                Research



   *The valid addresses in class A start from 1 to 126. Network 0.0.0.0 is defined for use as
   a broadcast address and 127.0.0.0 is reserved for use as loopback address.


                                             www.cbtvid.com




                                IP Addressing and Subnetting Page 6
Example


Find the class of each address:
1. 227.12.14.87
2.193.14.56.22
3.14.23.120.8
4. 252.5.15.111
5.134.11.78.56




                               www.cbtvid.com




                  IP Addressing and Subnetting Page 7
Solution

1. 227.12.14.87
The first byte is 227 (between 224 and 239); the class is D.
2.193.14.56.22
The first byte is 193 (between 192 and 223); the class is C.
3.14.23.120.8
The first byte is 14 (between 0 and 127); the class is A.
4. 252.5.15.111
The first byte is 252 (between 240 and 255); the class is E.
5.134.11.78.56
The first byte is 134 (between 128 and 191); the class is B.

                               www.cbtvid.com




                  IP Addressing and Subnetting Page 8
IP Address Classes




                                                           Multicast

                                                           Research




                                  www.cbtvid.com




                     IP Addressing and Subnetting Page 9
Netid and Hostid




In classful addressing, an IP address in class A, B and C is divided into two parts
netid and hostid. These parts are varying length, depending on the class of the
address.




                                         www.cbtvid.com




                            IP Addressing and Subnetting Page 10
200


     50
           A




                        c


25             10




      B




                        www.cbtvid.com




           IP Addressing and Subnetting Page 11
Number of Network Bits and Host Bits in each class




  Class        Number of Network bits                      Number of Host bits
    A                        8                                        24
    B                       16                                        16
    C                       24                                         8




                                 www.cbtvid.com




                    IP Addressing and Subnetting Page 12
Number of Networks and Hosts Per each Network



Class        Number of Networks                            Number of Hosts
  A                       28                                    224
  B                       216                                   216
  C                       224                                   28




  NNNNNNNN.HHHHHHHH.HHHHHHHH.HHHHHHHH

  28 = 256               224 = 16777216



                                 www.cbtvid.com




                    IP Addressing and Subnetting Page 13
Number of Networks and Hosts Per each Network




    2Number of Network bits = Number of Networks


    2Number of Host bits = Number Hosts




                                 www.cbtvid.com




                    IP Addressing and Subnetting Page 14
Netid and Hostid

In classful addressing, the network address (the first address in the
block) is the one that is assigned to the organization. Then the range of
addresses can automatically be inferred from the network address.




  80.0.0.0




                                      www.cbtvid.com




                         IP Addressing and Subnetting Page 15
Subnet Mask



 Class Default Subnet Mask
 A        255.0.0.0
 B        255.255.0.0
 C        255.255.255.0


 11111111.00000000.00000000.00000000
 11111111.11111111.00000000.00000000
 11111111.11111111.11111111.00000000




                                 www.cbtvid.com




                    IP Addressing and Subnetting Page 16
Subnet Mask


Class Default Subnet Mask
A        255.0.0.0              11111111.00000000.00000000.00000000
B        255.255.0.0            11111111.11111111.00000000.00000000
C        255.255.255.0          11111111.11111111.11111111.00000000


Class          Number of Network bits                         Number of Host bits
  A                          8                                           24
  B                         16                                           16
  C                         24                                            8



The subnet mask determine which part of the address belongs to the
Network address and which part belongs to the Host address.



                                    www.cbtvid.com




                       IP Addressing and Subnetting Page 17
Subnet Mask


Number of Zeros in subnet mask represent the number of Host bits

                                    $60



                                          $12




80.0.0.0

255.0.0.0


255.255.254.0




                                    www.cbtvid.com




                       IP Addressing and Subnetting Page 18
Subnet Mask


80.0.0.0
255.0.0.0     the number of subnet bits

11111111.11111111.11111110.00000000

255.255.254.0

   300
                2Number of subnet bits = Number of subnets

 2Number of Host bits ≥ 300 => 29 = 512 > 300
 Number of host bits = 9 => Number of zeros in subnet
 mask is 9




                                 www.cbtvid.com




                    IP Addressing and Subnetting Page 19
Example


What is the appropriate subnet mask for a network with 400 hosts?


2Number of host bits = Number of hosts
2Number of host bits ≥ 400 => 2 9 = 512 > 400 =>
Number of host bits = 9
Number of zeros in subnet mask = 9

11111111.11111111.11111110.00000000


                            150.100.10.2
  255.255.254.0


                                    www.cbtvid.com




                       IP Addressing and Subnetting Page 20
Example


What is the appropriate subnet mask for a network with 400 hosts?




     2Number of Host bits ≥ Number Hosts




                                    www.cbtvid.com




                       IP Addressing and Subnetting Page 21
Solution


What is the appropriate subnet mask for a network with 400 hosts?




     2Number of Host bits ≥ Number Hosts

     2Number of Host bits ≥ 400

     29 = 512 > 400 => Number of Host bits = 9 => Number
     of zeros in subnet mask = 9

     11111111.11111111.11111110.00000000                      =   255.255.254.0


                                    www.cbtvid.com




                       IP Addressing and Subnetting Page 22
Network Address


  Cisco Systems, Inc.
  170 West Tasman Dr.                                95134
  San Jose, CA 95134 USA




  150.100.10.2
  255.255.0.0




                                    www.cbtvid.com




                       IP Addressing and Subnetting Page 23
Network Address


       192.168.1.1




   192.168.1.2




192.168.1.3




       192.168.1.4




                                  www.cbtvid.com




                     IP Addressing and Subnetting Page 24
Network Address or Subnet Address


150.100.10.2
255.255.0.0

      150      100                  10                   2
    10010110.01100100.00001010.00000010
&
    11111111.11111111.00000000.00000000




                               www.cbtvid.com




                  IP Addressing and Subnetting Page 25
Network Address or Subnet Address
                                                        A    B       A&B
    150.100.10.2                                        1        1   1
    255.255.0.0                                         1
                                                        0
                                                                 0
                                                                 1
                                                                     0
                                                                     0
                                                        0        0   0

        150        100                  10                   2
    10010110.01100100.00001010.00000010
&
    11111111.11111111.00000000.00000000

    10010110.01100100.00000000.00000000
    150.100.0.0



                                   www.cbtvid.com




                      IP Addressing and Subnetting Page 26
Broadcast Address


    150.100.10.2             No of host bits = 16
    255.255.0.0

        150        100                    10                   2
    10010110.01100100.00001010.00000010
&
    11111111.11111111.00000000.00000000

    10010110.01100100.00000000.00000000


    10010110.01100100.11111111.11111111
    150.100.255.255
                                     www.cbtvid.com




                        IP Addressing and Subnetting Page 27
First and Last valid addresses


 150.100.10.2
 255.255.0.0
   150       100         10                2

10010110.01100100.00001010.00000010
11111111.11111111.00000000.00000000

10010110.01100100.00000000.00000000 Network id 150.100.0.0
10010110.01100100.00000000.00000001 First valid IP add. 150.100.0.1
10010110.01100100.11111111.11111110 Last valid IP add.
150.100.255.254
10010110.01100100.11111111.11111111 Broadcast add. 150.100.255.255


                                  www.cbtvid.com




                     IP Addressing and Subnetting Page 28
Number of Hosts




        2Number of Host bits = Number Hosts


        2Number of Host bits ≥ Number Hosts




                                www.cbtvid.com




                   IP Addressing and Subnetting Page 29
Number of Hosts




        2Number of Host bits -2 = Number Hosts


        2Number of Host bits - 2 ≥ Number Hosts




                                www.cbtvid.com




                   IP Addressing and Subnetting Page 30
Example


What is the appropriate subnet mask for a network with 400 hosts?




     2Number of Host bits - 2 ≥ Number Hosts

     2Number of Host bits - 2 ≥ 400

  29 - 2 = 512 - 2 = 510 > 400 => Number of Host bits = 9
  => Number of zeros in subnet mask = 9

     11111111.11111111.11111110.00000000                      =   255.255.254.0


                                    www.cbtvid.com




                       IP Addressing and Subnetting Page 31
Example


What is the appropriate subnet mask for a network with 512 hosts?




     2Number of Host bits - 2 ≥ Number Hosts

     2Number of Host bits - 2 ≥ 512

210 - 2 = 1024 - 2 = 1022 > 512 => Number of Host bits = 10
=> Number of zeros in subnet mask = 10

     11111111.11111111.11111100.00000000                      =   255.255.252.0


                                    www.cbtvid.com




                       IP Addressing and Subnetting Page 32
Exercise


Given each IP address and mask, supply the following
information for it:
 1. The class of IP address
 2. Number of network bits
 3. Number of host bits
 4. Number of subnet bits
 5. Number of networks
 6. Number of hosts in this network
 7. Number of subnets in this network
 8. Subnet address
 9. Broadcast address
10. First valid address
11. Last valid address

   172.31.200.10 mask 255.255.248.0


                                 www.cbtvid.com




                    IP Addressing and Subnetting Page 33
Exercise
Given each IP address and mask, supply the following information for it:
  1. The class of IP address
  2. Number of network bits
  3. Number of host bits
  4. Number of subnet bits
  5. Number of networks
  6. Number of hosts in this network
  7. Number of subnets in this network
  8. Subnet address
  9. Broadcast address
 10. First valid address
 11. Last valid address

      172.31.200.10, mask 255.255.248.0



   1. 172 is between 128 and 191 therefore it is a class B address




                                                www.cbtvid.com




                                   IP Addressing and Subnetting Page 34
Exercise
Given each IP address and mask, supply the following information for it:
  1. The class of IP address
  2. Number of network bits
  3. Number of host bits
  4. Number of subnet bits
  5. Number of networks
  6. Number of hosts in this network
  7. Number of subnets in this network
  8. Subnet address
  9. Broadcast address
 10. First valid address
 11. Last valid address

      172.31.200.10, mask 255.255.248.0



   2. Number of Network bits is 16 since the address is a class B address




                                                www.cbtvid.com




                                   IP Addressing and Subnetting Page 35
Exercise
Given each IP address and mask, supply the following information for it:
  1. The class of IP address
  2. Number of network bits
  3. Number of host bits
  4. Number of subnet bits
  5. Number of networks
  6. Number of hosts in this network
  7. Number of subnets in this network
  8. Subnet address
  9. Broadcast address
 10. First valid address
 11. Last valid address

      172.31.200.10, mask 255.255.248.0




 3. 11111111.11111111.11111000.00000000


    No. of host bits is 11




                                                www.cbtvid.com




                                   IP Addressing and Subnetting Page 36
Exercise
Given each IP address and mask, supply the following information for it:
  1. The class of IP address
  2. Number of network bits
  3. Number of host bits
  4. Number of subnet bits
  5. Number of networks
  6. Number of hosts in this network
  7. Number of subnets in this network
  8. Subnet address
  9. Broadcast address
 10. First valid address
 11. Last valid address

      172.31.200.10, mask 255.255.248.0



 4. To find out the number of subnet bit … look at the subnet mask in binary

      11111111.11111111.11111000.00000000
      Number of subnet bits = 5




                                                www.cbtvid.com




                                   IP Addressing and Subnetting Page 37
Exercise
Given each IP address and mask, supply the following information for it:
  1. The class of IP address
  2. Number of network bits
  3. Number of host bits
  4. Number of subnet bits
  5. Number of networks
  6. Number of hosts in this network
  7. Number of subnets in this network
  8. Subnet address
  9. Broadcast address
 10. First valid address
 11. Last valid address

      172.31.200.10, mask 255.255.248.0



5. 2Number of Network bits = Number of Networks

      216 = 65536



                                                www.cbtvid.com




                                   IP Addressing and Subnetting Page 38
Exercise
Given each IP address and mask, supply the following information for it:
  1. The class of IP address
  2. Number of network bits
  3. Number of host bits
  4. Number of subnet bits
  5. Number of networks
  6. Number of hosts in this network
  7. Number of subnets in this network
  8. Subnet address
  9. Broadcast address
 10. First valid address
 11. Last valid address

      172.31.200.10, mask 255.255.248.0



6. 2Number of Host bits - 2 = Number of Hosts

      211 - 2 = 2048 - 2 = 2046 Hosts in this network



                                                www.cbtvid.com




                                   IP Addressing and Subnetting Page 39
Exercise
Given each IP address and mask, supply the following information for it:
  1. The class of IP address
  2. Number of network bits
  3. Number of host bits
  4. Number of subnet bits
  5. Number of networks
  6. Number of hosts in this network
  7. Number of subnets in this network
  8. Subnet address
  9. Broadcast address
 10. First valid address
 11. Last valid address

      172.31.200.10, mask 255.255.248.0



7. 2Number of subnet bits = Number of Subnets

      25 = 32 subnets



                                                www.cbtvid.com




                                   IP Addressing and Subnetting Page 40
Exercise
Given each IP address and mask, supply the following information for it:
  1. The class of IP address
  2. Number of network bits
  3. Number of host bits
  4. Number of subnet bits
  5. Number of networks
  6. Number of hosts in this network
  7. Number of subnets in this network
  8. Subnet address (Network address)
  9. Broadcast address
 10. First valid address
 11. Last valid address

      172.31.200.10, mask 255.255.248.0



8. 10101100.00011111.11001000.00001010
& 11111111.11111111.11111000.00000000
   ---------------------------------------------------
   10101100.00011111.11001000.00000000
   172.31.200.0


                                                www.cbtvid.com




                                   IP Addressing and Subnetting Page 41
Exercise
Given each IP address and mask, supply the following information for it:
  1. The class of IP address
  2. Number of network bits
  3. Number of host bits
  4. Number of subnet bits
  5. Number of networks
  6. Number of hosts in this network
  7. Number of subnets in this network                     Number of host bits = 11
  8. Subnet address (Network address)
  9. Broadcast address
 10. First valid address
 11. Last valid address

     172.31.200.10, mask 255.255.248.0



 9. 10101100.00011111.11001000.00001010
     11111111.11111111.11111000.00000000
   & ---------------------------------------------------
     10101100.00011111.11001000.00000000

       10101100.00011111.11001111.11111111
       172.31.207.255
                                               www.cbtvid.com




                                  IP Addressing and Subnetting Page 42
Exercise
Given each IP address and mask, supply the following information for it:
  1. The class of IP address
  2. Number of network bits
  3. Number of host bits
  4. Number of subnet bits
  5. Number of networks
  6. Number of hosts in this network
  7. Number of subnets in this network
  8. Subnet address (Network address)
  9. Broadcast address
 10. First valid address
 11. Last valid address

      172.31.200.10, mask 255.255.248.0

10101100.00011111.11001000.00001010
11111111.11111111.11111000.00000000
---------------------------------------------------
   &
10101100.00011111.11001000.00000000 network add.                           172.31.200.0

10101100.00011111.11001000.00000001 first valid add.                        172.31.200.1



                                                www.cbtvid.com




                                   IP Addressing and Subnetting Page 43
Exercise
Given each IP address and mask, supply the following information for it:
  1. The class of IP address
  2. Number of network bits
  3. Number of host bits
  4. Number of subnet bits
  5. Number of networks
  6. Number of hosts in this network
  7. Number of subnets in this network
  8. Subnet address (Network address)
  9. Broadcast address
 10. First valid address
 11. Last valid address

      172.31.200.10, mask 255.255.248.0

10101100.00011111.11001000.00001010
11111111.11111111.11111000.00000000
---------------------------------------------------
   &
10101100.00011111.11001000.00000000 network add.                           172.31.200.0


10101100.00011111.11001111.11111110 last valid add.                        172.31.207.254


                                                www.cbtvid.com




                                   IP Addressing and Subnetting Page 44
Summary



• An IP address is a 32-bit unique address.

• Find the network address given an IP
  address and subnet mask.

• What is a subnet.




                           www.cbtvid.com




              IP Addressing and Subnetting Page 45
References

TCP/IP Protocol Suite 4e Behrouz Forouzan
McGraw-Hill 2009 ISBN: 978-0070166783


Interconnecting Cisco Network Devices, Part 1 (ICND1): CCNA Exam
640-802 and ICND1 Exam 640-822, 2nd Edition Stephen
McQuerry Cisco Press Copyright 2008 ISBN: 978-1-58705-462-4




                                   www.cbtvid.com




                      IP Addressing and Subnetting Page 46

More Related Content

What's hot

What's hot (20)

IP Subnetting
IP SubnettingIP Subnetting
IP Subnetting
 
Subnet Mask
Subnet MaskSubnet Mask
Subnet Mask
 
Basics of IP Addressing
Basics of IP AddressingBasics of IP Addressing
Basics of IP Addressing
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Subnetting
SubnettingSubnetting
Subnetting
 
Subnetting
SubnettingSubnetting
Subnetting
 
Address resolution protocol (ARP)
Address resolution protocol (ARP)Address resolution protocol (ARP)
Address resolution protocol (ARP)
 
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
Forouzan-ch19-Network-Layer-Logical-Addressing.pptForouzan-ch19-Network-Layer-Logical-Addressing.ppt
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
 
Vlsm
VlsmVlsm
Vlsm
 
Ip Addressing
Ip AddressingIp Addressing
Ip Addressing
 
IP Addressing and subnetting
IP Addressing and subnettingIP Addressing and subnetting
IP Addressing and subnetting
 
Data link layer
Data link layer Data link layer
Data link layer
 
IP classes and subnetting.
IP classes and subnetting.IP classes and subnetting.
IP classes and subnetting.
 
Subnetting
SubnettingSubnetting
Subnetting
 
IP__ Address__Subnetting.pdf
IP__ Address__Subnetting.pdfIP__ Address__Subnetting.pdf
IP__ Address__Subnetting.pdf
 
IP addressing and Subnetting PPT
IP addressing and Subnetting PPTIP addressing and Subnetting PPT
IP addressing and Subnetting PPT
 
IP Addressing & subnetting strategy
IP Addressing & subnetting strategyIP Addressing & subnetting strategy
IP Addressing & subnetting strategy
 
Ethernet Computer network
Ethernet Computer networkEthernet Computer network
Ethernet Computer network
 
Ip address and subnetting
Ip address and subnettingIp address and subnetting
Ip address and subnetting
 
Ipv4 presentation
Ipv4 presentationIpv4 presentation
Ipv4 presentation
 

Viewers also liked

Subnetting Basics Tutorial
Subnetting Basics TutorialSubnetting Basics Tutorial
Subnetting Basics Tutorialmikem801
 
Internet protocol (ip) ppt
Internet protocol (ip) pptInternet protocol (ip) ppt
Internet protocol (ip) pptDulith Kasun
 
Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basicsMahmmoud Mahdi
 
Subnetting
SubnettingSubnetting
Subnettingswascher
 
Types of ip address classes
Types of ip address classesTypes of ip address classes
Types of ip address classesgreatbury
 
Easy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for StartersEasy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for StartersS Khawaja
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network pptextraganesh
 
Ip address concepts
Ip address conceptsIp address concepts
Ip address conceptsmyrajendra
 
Subnetting Made Easy
Subnetting Made EasySubnetting Made Easy
Subnetting Made Easyheidionthego
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networksguesta81d4b
 
Classful and classless addressing
Classful and classless addressingClassful and classless addressing
Classful and classless addressingSourav Jyoti Das
 
Vlsm exercises solutions
Vlsm exercises solutionsVlsm exercises solutions
Vlsm exercises solutionsGerry Ismanto
 
IPv4 addressing and subnetting
IPv4 addressing and subnettingIPv4 addressing and subnetting
IPv4 addressing and subnettingShashank Asthana
 

Viewers also liked (20)

Ip address
Ip addressIp address
Ip address
 
Subnetting Basics Tutorial
Subnetting Basics TutorialSubnetting Basics Tutorial
Subnetting Basics Tutorial
 
Internet protocol (ip) ppt
Internet protocol (ip) pptInternet protocol (ip) ppt
Internet protocol (ip) ppt
 
Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basics
 
IP addressing
IP addressingIP addressing
IP addressing
 
Subnetting
SubnettingSubnetting
Subnetting
 
Types of ip address classes
Types of ip address classesTypes of ip address classes
Types of ip address classes
 
Easy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for StartersEasy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for Starters
 
iP Address ,
 iP Address , iP Address ,
iP Address ,
 
Subnetting
SubnettingSubnetting
Subnetting
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network ppt
 
Ip address concepts
Ip address conceptsIp address concepts
Ip address concepts
 
Subnetting Made Easy
Subnetting Made EasySubnetting Made Easy
Subnetting Made Easy
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
Ipv4 ppt
Ipv4 pptIpv4 ppt
Ipv4 ppt
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
Classful and classless addressing
Classful and classless addressingClassful and classless addressing
Classful and classless addressing
 
Vlsm exercises solutions
Vlsm exercises solutionsVlsm exercises solutions
Vlsm exercises solutions
 
IPv4 addressing and subnetting
IPv4 addressing and subnettingIPv4 addressing and subnetting
IPv4 addressing and subnetting
 

Similar to IP Addressing and Subnetting

IPv4 Addressing Architecture
IPv4 Addressing ArchitectureIPv4 Addressing Architecture
IPv4 Addressing ArchitectureShreehari Dhat
 
IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING AYESHA JAVED
 
Subnetting and routing
Subnetting and routingSubnetting and routing
Subnetting and routingGaurav Juneja
 
Wipro telecom training i pv4 concepts
Wipro telecom training   i pv4 conceptsWipro telecom training   i pv4 concepts
Wipro telecom training i pv4 conceptsJAIGANESH SEKAR
 
NAT and Subnetting
NAT and Subnetting NAT and Subnetting
NAT and Subnetting Saad Tanvir
 
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
 
IP Addressing Principles
IP Addressing PrinciplesIP Addressing Principles
IP Addressing Principlesswascher
 
2204
22042204
2204C.U
 
Computer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP AddressingComputer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP AddressingBisrat Girma
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccnarobertoxe
 
Network Layer Numericals
Network Layer NumericalsNetwork Layer Numericals
Network Layer NumericalsManisha Keim
 
Soal Subnetting - Jaringan Komputer
Soal Subnetting - Jaringan KomputerSoal Subnetting - Jaringan Komputer
Soal Subnetting - Jaringan Komputerirawan afrianto
 

Similar to IP Addressing and Subnetting (20)

How IP address works
How IP address worksHow IP address works
How IP address works
 
Assignment 1 iap
Assignment 1 iapAssignment 1 iap
Assignment 1 iap
 
IPv4 Addressing Architecture
IPv4 Addressing ArchitectureIPv4 Addressing Architecture
IPv4 Addressing Architecture
 
IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING
 
Lecture 06
Lecture 06Lecture 06
Lecture 06
 
Explaining ip address
Explaining ip addressExplaining ip address
Explaining ip address
 
Subnetting and routing
Subnetting and routingSubnetting and routing
Subnetting and routing
 
Wipro telecom training i pv4 concepts
Wipro telecom training   i pv4 conceptsWipro telecom training   i pv4 concepts
Wipro telecom training i pv4 concepts
 
NAT and Subnetting
NAT and Subnetting NAT and Subnetting
NAT 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
 
IP Addressing Principles
IP Addressing PrinciplesIP Addressing Principles
IP Addressing Principles
 
2204
22042204
2204
 
Computer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP AddressingComputer Networking: Subnetting and IP Addressing
Computer Networking: Subnetting and IP Addressing
 
Ip addressing upload
Ip addressing uploadIp addressing upload
Ip addressing upload
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccna
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccna
 
CCNA 1 Chapter 9 v5.0 2014
CCNA 1 Chapter 9 v5.0 2014CCNA 1 Chapter 9 v5.0 2014
CCNA 1 Chapter 9 v5.0 2014
 
Book technic cal_ip
Book technic cal_ipBook technic cal_ip
Book technic cal_ip
 
Network Layer Numericals
Network Layer NumericalsNetwork Layer Numericals
Network Layer Numericals
 
Soal Subnetting - Jaringan Komputer
Soal Subnetting - Jaringan KomputerSoal Subnetting - Jaringan Komputer
Soal Subnetting - Jaringan Komputer
 

Recently uploaded

WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 

Recently uploaded (20)

WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 

IP Addressing and Subnetting

  • 1. Objectives • Understand IPv4 addresses and classes • Identify the class of an IP address • Find the network address given an IP address • Understand masks and how to use them • Understand subnets www.cbtvid.com IP Addressing and Subnetting Page 1
  • 2. Introduction The identifier used in the IP layer of the TCP/IP protocol suite to identify each device connected to the Internet is called the Internet address or IP address. An IP address is a 32-bit address that uniquely and universally defines the connection of a host or a router to the Internet. IP addresses are unique. They are unique in the sense that each address defines one, and only one, connection to the Internet. Two devices on the Internet can never have the same address. 200.100.125.100 23456789 www.cbtvid.com IP Addressing and Subnetting Page 2
  • 3. Note An IP address is a 32-bit address. The IP addresses are unique. The address space of IPv4 is 232 or 4,294,967,296. 10 www.cbtvid.com IP Addressing and Subnetting Page 3
  • 4. The Structure of IP Address Octet IP address format is dotted decimal. Dotted decimal makes it easy to work with IP addresses. www.cbtvid.com IP Addressing and Subnetting Page 4
  • 5. Example 00000000 = 0 11111111 = 255 11100111 11011011 10001011 01101111 231.219.139.111 www.cbtvid.com IP Addressing and Subnetting Page 5
  • 6. IP Address Classes RFC 791 defines the IP protocol. * Multicast Research *The valid addresses in class A start from 1 to 126. Network 0.0.0.0 is defined for use as a broadcast address and 127.0.0.0 is reserved for use as loopback address. www.cbtvid.com IP Addressing and Subnetting Page 6
  • 7. Example Find the class of each address: 1. 227.12.14.87 2.193.14.56.22 3.14.23.120.8 4. 252.5.15.111 5.134.11.78.56 www.cbtvid.com IP Addressing and Subnetting Page 7
  • 8. Solution 1. 227.12.14.87 The first byte is 227 (between 224 and 239); the class is D. 2.193.14.56.22 The first byte is 193 (between 192 and 223); the class is C. 3.14.23.120.8 The first byte is 14 (between 0 and 127); the class is A. 4. 252.5.15.111 The first byte is 252 (between 240 and 255); the class is E. 5.134.11.78.56 The first byte is 134 (between 128 and 191); the class is B. www.cbtvid.com IP Addressing and Subnetting Page 8
  • 9. IP Address Classes Multicast Research www.cbtvid.com IP Addressing and Subnetting Page 9
  • 10. Netid and Hostid In classful addressing, an IP address in class A, B and C is divided into two parts netid and hostid. These parts are varying length, depending on the class of the address. www.cbtvid.com IP Addressing and Subnetting Page 10
  • 11. 200 50 A c 25 10 B www.cbtvid.com IP Addressing and Subnetting Page 11
  • 12. Number of Network Bits and Host Bits in each class Class Number of Network bits Number of Host bits A 8 24 B 16 16 C 24 8 www.cbtvid.com IP Addressing and Subnetting Page 12
  • 13. Number of Networks and Hosts Per each Network Class Number of Networks Number of Hosts A 28 224 B 216 216 C 224 28 NNNNNNNN.HHHHHHHH.HHHHHHHH.HHHHHHHH 28 = 256 224 = 16777216 www.cbtvid.com IP Addressing and Subnetting Page 13
  • 14. Number of Networks and Hosts Per each Network 2Number of Network bits = Number of Networks 2Number of Host bits = Number Hosts www.cbtvid.com IP Addressing and Subnetting Page 14
  • 15. Netid and Hostid In classful addressing, the network address (the first address in the block) is the one that is assigned to the organization. Then the range of addresses can automatically be inferred from the network address. 80.0.0.0 www.cbtvid.com IP Addressing and Subnetting Page 15
  • 16. Subnet Mask Class Default Subnet Mask A 255.0.0.0 B 255.255.0.0 C 255.255.255.0 11111111.00000000.00000000.00000000 11111111.11111111.00000000.00000000 11111111.11111111.11111111.00000000 www.cbtvid.com IP Addressing and Subnetting Page 16
  • 17. Subnet Mask Class Default Subnet Mask A 255.0.0.0 11111111.00000000.00000000.00000000 B 255.255.0.0 11111111.11111111.00000000.00000000 C 255.255.255.0 11111111.11111111.11111111.00000000 Class Number of Network bits Number of Host bits A 8 24 B 16 16 C 24 8 The subnet mask determine which part of the address belongs to the Network address and which part belongs to the Host address. www.cbtvid.com IP Addressing and Subnetting Page 17
  • 18. Subnet Mask Number of Zeros in subnet mask represent the number of Host bits $60 $12 80.0.0.0 255.0.0.0 255.255.254.0 www.cbtvid.com IP Addressing and Subnetting Page 18
  • 19. Subnet Mask 80.0.0.0 255.0.0.0 the number of subnet bits 11111111.11111111.11111110.00000000 255.255.254.0 300 2Number of subnet bits = Number of subnets 2Number of Host bits ≥ 300 => 29 = 512 > 300 Number of host bits = 9 => Number of zeros in subnet mask is 9 www.cbtvid.com IP Addressing and Subnetting Page 19
  • 20. Example What is the appropriate subnet mask for a network with 400 hosts? 2Number of host bits = Number of hosts 2Number of host bits ≥ 400 => 2 9 = 512 > 400 => Number of host bits = 9 Number of zeros in subnet mask = 9 11111111.11111111.11111110.00000000 150.100.10.2 255.255.254.0 www.cbtvid.com IP Addressing and Subnetting Page 20
  • 21. Example What is the appropriate subnet mask for a network with 400 hosts? 2Number of Host bits ≥ Number Hosts www.cbtvid.com IP Addressing and Subnetting Page 21
  • 22. Solution What is the appropriate subnet mask for a network with 400 hosts? 2Number of Host bits ≥ Number Hosts 2Number of Host bits ≥ 400 29 = 512 > 400 => Number of Host bits = 9 => Number of zeros in subnet mask = 9 11111111.11111111.11111110.00000000 = 255.255.254.0 www.cbtvid.com IP Addressing and Subnetting Page 22
  • 23. Network Address Cisco Systems, Inc. 170 West Tasman Dr. 95134 San Jose, CA 95134 USA 150.100.10.2 255.255.0.0 www.cbtvid.com IP Addressing and Subnetting Page 23
  • 24. Network Address 192.168.1.1 192.168.1.2 192.168.1.3 192.168.1.4 www.cbtvid.com IP Addressing and Subnetting Page 24
  • 25. Network Address or Subnet Address 150.100.10.2 255.255.0.0 150 100 10 2 10010110.01100100.00001010.00000010 & 11111111.11111111.00000000.00000000 www.cbtvid.com IP Addressing and Subnetting Page 25
  • 26. Network Address or Subnet Address A B A&B 150.100.10.2 1 1 1 255.255.0.0 1 0 0 1 0 0 0 0 0 150 100 10 2 10010110.01100100.00001010.00000010 & 11111111.11111111.00000000.00000000 10010110.01100100.00000000.00000000 150.100.0.0 www.cbtvid.com IP Addressing and Subnetting Page 26
  • 27. Broadcast Address 150.100.10.2 No of host bits = 16 255.255.0.0 150 100 10 2 10010110.01100100.00001010.00000010 & 11111111.11111111.00000000.00000000 10010110.01100100.00000000.00000000 10010110.01100100.11111111.11111111 150.100.255.255 www.cbtvid.com IP Addressing and Subnetting Page 27
  • 28. First and Last valid addresses 150.100.10.2 255.255.0.0 150 100 10 2 10010110.01100100.00001010.00000010 11111111.11111111.00000000.00000000 10010110.01100100.00000000.00000000 Network id 150.100.0.0 10010110.01100100.00000000.00000001 First valid IP add. 150.100.0.1 10010110.01100100.11111111.11111110 Last valid IP add. 150.100.255.254 10010110.01100100.11111111.11111111 Broadcast add. 150.100.255.255 www.cbtvid.com IP Addressing and Subnetting Page 28
  • 29. Number of Hosts 2Number of Host bits = Number Hosts 2Number of Host bits ≥ Number Hosts www.cbtvid.com IP Addressing and Subnetting Page 29
  • 30. Number of Hosts 2Number of Host bits -2 = Number Hosts 2Number of Host bits - 2 ≥ Number Hosts www.cbtvid.com IP Addressing and Subnetting Page 30
  • 31. Example What is the appropriate subnet mask for a network with 400 hosts? 2Number of Host bits - 2 ≥ Number Hosts 2Number of Host bits - 2 ≥ 400 29 - 2 = 512 - 2 = 510 > 400 => Number of Host bits = 9 => Number of zeros in subnet mask = 9 11111111.11111111.11111110.00000000 = 255.255.254.0 www.cbtvid.com IP Addressing and Subnetting Page 31
  • 32. Example What is the appropriate subnet mask for a network with 512 hosts? 2Number of Host bits - 2 ≥ Number Hosts 2Number of Host bits - 2 ≥ 512 210 - 2 = 1024 - 2 = 1022 > 512 => Number of Host bits = 10 => Number of zeros in subnet mask = 10 11111111.11111111.11111100.00000000 = 255.255.252.0 www.cbtvid.com IP Addressing and Subnetting Page 32
  • 33. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network 8. Subnet address 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10 mask 255.255.248.0 www.cbtvid.com IP Addressing and Subnetting Page 33
  • 34. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network 8. Subnet address 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10, mask 255.255.248.0 1. 172 is between 128 and 191 therefore it is a class B address www.cbtvid.com IP Addressing and Subnetting Page 34
  • 35. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network 8. Subnet address 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10, mask 255.255.248.0 2. Number of Network bits is 16 since the address is a class B address www.cbtvid.com IP Addressing and Subnetting Page 35
  • 36. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network 8. Subnet address 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10, mask 255.255.248.0 3. 11111111.11111111.11111000.00000000 No. of host bits is 11 www.cbtvid.com IP Addressing and Subnetting Page 36
  • 37. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network 8. Subnet address 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10, mask 255.255.248.0 4. To find out the number of subnet bit … look at the subnet mask in binary 11111111.11111111.11111000.00000000 Number of subnet bits = 5 www.cbtvid.com IP Addressing and Subnetting Page 37
  • 38. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network 8. Subnet address 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10, mask 255.255.248.0 5. 2Number of Network bits = Number of Networks 216 = 65536 www.cbtvid.com IP Addressing and Subnetting Page 38
  • 39. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network 8. Subnet address 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10, mask 255.255.248.0 6. 2Number of Host bits - 2 = Number of Hosts 211 - 2 = 2048 - 2 = 2046 Hosts in this network www.cbtvid.com IP Addressing and Subnetting Page 39
  • 40. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network 8. Subnet address 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10, mask 255.255.248.0 7. 2Number of subnet bits = Number of Subnets 25 = 32 subnets www.cbtvid.com IP Addressing and Subnetting Page 40
  • 41. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network 8. Subnet address (Network address) 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10, mask 255.255.248.0 8. 10101100.00011111.11001000.00001010 & 11111111.11111111.11111000.00000000 --------------------------------------------------- 10101100.00011111.11001000.00000000 172.31.200.0 www.cbtvid.com IP Addressing and Subnetting Page 41
  • 42. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network Number of host bits = 11 8. Subnet address (Network address) 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10, mask 255.255.248.0 9. 10101100.00011111.11001000.00001010 11111111.11111111.11111000.00000000 & --------------------------------------------------- 10101100.00011111.11001000.00000000 10101100.00011111.11001111.11111111 172.31.207.255 www.cbtvid.com IP Addressing and Subnetting Page 42
  • 43. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network 8. Subnet address (Network address) 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10, mask 255.255.248.0 10101100.00011111.11001000.00001010 11111111.11111111.11111000.00000000 --------------------------------------------------- & 10101100.00011111.11001000.00000000 network add. 172.31.200.0 10101100.00011111.11001000.00000001 first valid add. 172.31.200.1 www.cbtvid.com IP Addressing and Subnetting Page 43
  • 44. Exercise Given each IP address and mask, supply the following information for it: 1. The class of IP address 2. Number of network bits 3. Number of host bits 4. Number of subnet bits 5. Number of networks 6. Number of hosts in this network 7. Number of subnets in this network 8. Subnet address (Network address) 9. Broadcast address 10. First valid address 11. Last valid address 172.31.200.10, mask 255.255.248.0 10101100.00011111.11001000.00001010 11111111.11111111.11111000.00000000 --------------------------------------------------- & 10101100.00011111.11001000.00000000 network add. 172.31.200.0 10101100.00011111.11001111.11111110 last valid add. 172.31.207.254 www.cbtvid.com IP Addressing and Subnetting Page 44
  • 45. Summary • An IP address is a 32-bit unique address. • Find the network address given an IP address and subnet mask. • What is a subnet. www.cbtvid.com IP Addressing and Subnetting Page 45
  • 46. References TCP/IP Protocol Suite 4e Behrouz Forouzan McGraw-Hill 2009 ISBN: 978-0070166783 Interconnecting Cisco Network Devices, Part 1 (ICND1): CCNA Exam 640-802 and ICND1 Exam 640-822, 2nd Edition Stephen McQuerry Cisco Press Copyright 2008 ISBN: 978-1-58705-462-4 www.cbtvid.com IP Addressing and Subnetting Page 46