Академический Документы
Профессиональный Документы
Культура Документы
& SUBNETTING
ENGR. CARLO FERDINAND C. CALMA, CCNA
Overview
IP Address
Types of IP Addresses
Classes of IP Addresses
Subnet
Advantages & Disadvantages
Utilization
Application in network
Internet Protocol
What is IP?
IP is a connectionless,
unreliable, best-effort delivery
protocol.
IP accepts whatever data is
passed down to it from the
upper layers and forwards the
data in the form of IP Packets.
All the nodes are identified
using an IP address.
Packets are delivered from
the source to the destination
using IP address
Internet Protocol
IP Address
IP address is for the INTERFACE of a host.
is an address used to uniquely identify a device on
an IP network.
used by routers, to select best path from source to
destination, across networks and internetworks
The address is made up of 32 binary bits which can
be divisible into a network portion and host portion
with the help of a subnet mask.
32 binary bits are broken into four octets (1 octet =
8 bits)
Address 0.0.0.0, 127.0.0.1 and 255.255.255.255
carries special meaning.
Network Masks
Distinguishes which portion of the address identifies the
network and which portion of the address identifies the
node.
Default masks:
Class A: 255.0.0.0
Class B: 255.255.0.0
Class C: 255.255.255.0
Internet Protocol
IP Address Classes
Class D : Begins with 1110, multicast addresses
(224.0.0.0-to-239.255.255.255)
Class E : Begins with 11110, unused
Types of IP address
Static IP address
manually input by network administrator
manageable for small networks
requires careful checks to avoid duplication
Dynamic IP address
examples - BOOTP, DHCP
assigned by server when host boots
derived automatically from a range of addresses
duration of ‘lease’ negotiated, then address released
back to server
Internet Protocol
IP Configuration of an Interface
Static DHCP
Internet Protocol
IPv6
Internet Protocol Version 4 is the most popular protocol
in use today, although there are some questions about
its capability to serve the Internet community much
longer.
IPv4 was finished in the 1970s and has started to show its
age.
The main issue surrounding IPv4 is addressing—or, the
lack of addressing—because many experts believe
that we are nearly out of the four billion addresses
available in IPv4.
Although this seems like a very large number of
addresses, multiple large blocks are given to
government agencies and large organizations.
IPv6 could be the solution to many problems posed by
IPv4
Internet Protocol
IPv6
IPv6 uses 128 bit address instead of 32 bit address.
The IPv6 addresses are being distributed and are
supposed to be used based on geographical
location.
SUBNETTING
Definition
Creates multiple logical networks that exist within a single Class A, B, or C
network by dividing computer network into groups of computers that
have a common, designated IP address routing prefix.
If you do not subnet, you will only be able to use one network from your
Class A, B, or C network, which is unrealistic
You can only subnet the host portion
Subnetting does not give you more hosts, it only allows you to divide your
larger network into smaller networks.
reserved addresses
all 0’s= network address, all 1’s broadcast address
minimum of 2 bits borrowed from host portion
minimum of 2 bits left for host portion
1. Network Address - One address is reserved to
that of the network.
2. Broadcast Address – One address is reserved to
address all hosts in that network or subnet.
Class C Subnetting
# of Subnets # of NetMask 4th Octet CIDR Notation
Hosts/Subnet
2 126 255.255.255.128 10000000 /25
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
Subnet Example
Network address 172.19.0.0 with /16 network mask
Using Subnets: subnet mask 255.255.255.0 or /24
172 19 0 0 Subnets
Addresses
172 19 1 0
172 19 2 0
255
172 19 3 0 Subnets
172 19 etc. 0 28 - 1
172 19 254 0
Cannot use last
172 19 255 0 subnet as it
contains broadcast
address
Subnet Example
Network address 172.19.0.0 with /16 network mask
Using Subnets: subnet mask 255.255.255.0 or /24
172.19.0.0/24 172.19.10.0/24
172.19.5.0/24 172.19.25.0/24
Subnetting – Example
Host IP Address: 138.101.114.250
Network Mask: 255.255.0.0 (or /16)
Subnet Mask: 255.255.255.192 (or /26)
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
Major Network Information
Step 1:
Translate Host IP Address and Subnet Mask into binary notation
Step 2: Find the Subnet
Address
IP Address
138.
10001010
101.
01100101
114.
01110010
250
11111010
Mask 11111111 11111111 11111111 11000000
Network 10001010 01100101 01110010 11000000
138 101 114 192
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
IP Address
138.
10001010
101.
01100101
114.
01110010
250
11111010
Mask 11111111 11111111 11111111 11000000
Network 10001010 01100101 01110010 11000000
138 101 114 192
Step 2:
Determine the Network (or Subnet) where this Host address lives:
Quick method:
1. Find the last (right-most) 1 bit in the subnet mask.
2. Copy all of the bits in the IP address to the Network Address
3. Add 0’s for the rest of the bits in the Network Address
Step 3: Subnet Range /
Host Range
G.D. S.D.
Host Portion
Subnet Address: all 0’s
First Host: all 0’s and a 1 in rightmost bit
Last Host: all 1’s and a 0 in rightmost bit
Broadcast: all 1’s
Step 5: Total Number of
Subnets
G.D. S.D.
Total First
numberHost of subnets
10001010 01100101 01110010 11 000001
138 101 114 193
Number of subnet bits 10
210Last Host
= 1,024 10001010 01100101 01110010 11 111110
138 101 114 254
1,024 total subnets
Broadcast 10001010 01100101 01110010 11 111111
Subtract one “if”138
all-zeros subnet101
cannot be used
114 255
Subtract one “if” all-ones subnet cannot be used
Step 6: Total Number of
Hosts per Subnet
G.D. S.D.
Total First
numberHost of hosts per subnet
10001010 01100101 01110010 11 000001
138 101 114 193
Number of host bits 6
26Last
= 64Host 10001010 01100101 01110010 11 111110
138 101 114 254
64 host per subnets
Broadcast 10001010 01100101 01110010 11 111111
Subtract one for 138
the subnet address
101 114 255
Subtract one for the broadcast address
62 hosts per subnet