L Lab - Co Onvertin NG Ipv4 A Address Sestob Binary: O Objectives
L Lab - Co Onvertin NG Ipv4 A Address Sestob Binary: O Objectives
L Lab - Co Onvertin NG Ipv4 A Address Sestob Binary: O Objectives
Lab – Co
onvertin
ng IPv4 Address
A ses to B
Binary
O
Objectives
Part 1: Co
onvert IPv4 Addresses
A frrom Dotted Decimal
D to B
Binary
Part 2: Us
se Bitwise ANDing
A Opera
ation to Dete
ermine Netwo
ork Address
ses
Part 3: Ap
pply Network
k Address Calculations
B
Backgroun
nd / Scenarrio
Every IPvv4 address is comprised off two parts: a network porti on and a hosst portion. The e network porrtion of an
address iss the same fo
or all devices that
t reside in the same ne twork. The ho entifies a specific host
ost portion ide
within a given network.. The subnet mask is used d to determinee the networkk portion of ann IP address. Devices
on the samme network can
c communic cate directly; devices on diifferent netwo
orks require a
an intermediarry Layer 3
device, su
uch as a route
er, to commun nicate.
To undersstand the ope eration of deviices on a netw
work, we nee d to look at aaddresses thee way devicess do—in
binary nottation. To do this, we mustt convert the dotted
d decima al form of an IP address and its subnet mask to
binary nottation. After th
his has been done, we can n use the bitw
wise ANDing o determine the network
operation to d
address.
This lab provides
p instru
uctions on howw to determin ne the networrk and host poortion of IP ad
ddresses by cconverting
addresses s and subnet masks from dotted
d decima al to binary, a
and then using
g the bitwise ANDing operration.
You will th
hen apply this
s information to identify add
dresses in the e network.
P
Part 1: Convert
C IP
Pv4 Addrresses fro
om Dotte
ed Decima
al to Bina
ary
In Part 1, you will conv
vert decimal numbers to the
eir binary equ
uivalent. Afterr you have maastered this a
activity,
you will co
onvert IPv4 addresses and d subnet masks from dotte ed decimal to their binary fo
orm.
S
Step 1: Co
onvert decim
mal numberrs to their binary equiv
valent.
Fill in the following tablle by converting the decimal number to an 8-bit binary number. The first number has
been com mpleted for your reference. Recall that thhe eight binarry bit values in
n an octet are
e based on th
he powers
of 2, and from
f left to rig
ght are 128, 64,
6 32, 16, 8, 4, 2, and 1.
Dec
cimal B
Binary
192 110
000000
168 10101000
10
1 00001010
255 11111111
2 00000010
Decimal Binary
192.168.10.10 11000000.10101000.00001010.00001010
209.165.200.229 11010001.10100101.11001000.11100101
172.16.18.183 10101100.00010000.10010000.10110111
10.86.252.17 00001010.10101100.11111100.10001000
255.255.255.128 11111111.11111111.111111.10000000
255.255.192.0 11111111.11111111.11000000.0000000
Step 1: Determine the number of bits to use to calculate the network address.
How do you determine what bits to use to calculate the network address?
In the example above, how many bits are used to calculate the network address?
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 4
Lab – Converting IPv4 Addresses to Binary
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 4
Lab – Converting IPv4 Addresses to Binary
b. You are configuring two PCs for your network. PC-A is given an IP address of 10.0.0.16, and PC-B is
given an IP address of 10.1.14.68. Both PCs receive a subnet mask of 255.254.0.0.
What is the network address for PC-A? 10.0.0.16
What is the network address for PC-B? 10.1.14.68
Will these PCs be able to communicate directly with each other? Yes
What is the lowest address that can be given to PC-B that allows it to be on the same network as PC-A?
10.0.0.1
Reflection
Why is the subnet mask important in determining the network address?
We need Subnet mask for IPv4 addresses because the address doesn't give any information on the network
size. Also to be clear the purpose of the subnet mask is to determine which hosts are on the local network
and which are outside of the network. It is used to identify network address of an IP addressby performing a
bitwise AND operation on the netmask.
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 4