8.1.2.8 Lab - Converting IPv4 Addresses To Binary
8.1.2.8 Lab - Converting IPv4 Addresses To Binary
Objectives
Part 1: Convert IPv4 Addresses from Dotted Decimal to Binary
Part 2: Use Bitwise ANDing Operation to Determine Network Addresses
Part 3: Apply Network Address Calculations
Background / Scenario
Every IPv4 address is comprised of two parts: a network portion and a host portion. The network portion of an
address is the same for all devices that reside in the same network. The host portion identifies a specific host
within a given network. The subnet mask is used to determine the network portion of an IP address. Devices
on the same network can communicate directly; devices on different networks require an intermediary Layer 3
device, such as a router, to communicate.
To understand the operation of devices on a network, we need to look at addresses the way devices doin
binary notation. To do this, we must convert the dotted decimal form of an IP address and its subnet mask to
binary notation. After this has been done, we can use the bitwise ANDing operation to determine the network
address.
This lab provides instructions on how to determine the network and host portion of IP addresses by converting
addresses and subnet masks from dotted decimal to binary, and then using the bitwise ANDing operation. You
will then apply this information to identify addresses in the network.
Binary
192
11000000
168
10
255
2
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 1 of 4
Binary
11000000.10101000.00001010.00001010
209.165.200.229
172.16.18.183
10.86.252.17
255.255.255.128
255.255.192.0
Step 1: Determine the number of bits to use to calculate the network address.
Description
Decimal
Binary
IP Address
192.168.10.131
11000000.10101000.00001010.10000011
Subnet Mask
255.255.255.192
11111111.11111111.11111111.11000000
Network Address
192.168.10.128
11000000.10101000.00001010.10000000
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
Decimal
IP Address
172.16.145.29
Subnet Mask
255.255.0.0
Binary
Network Address
b. Enter the missing information into the table below:
Description
Decimal
IP Address
192.168.10.10
Subnet Mask
255.255.255.0
Binary
Network Address
c.
Decimal
IP Address
192.168.68.210
Subnet Mask
255.255.255.128
Binary
Network Address
d. Enter the missing information into the table below:
Description
Decimal
IP Address
172.16.188.15
Subnet Mask
255.255.240.0
Binary
Network Address
e. Enter the missing information into the table below:
Description
Decimal
IP Address
10.172.2.8
Subnet Mask
255.224.0.0
Binary
Network Address
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 3 of 4
Reflection
Why is the subnet mask important in determining the network address?
_______________________________________________________________________________________
_______________________________________________________________________________________
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 4 of 4