Assignment 2
Assignment 2
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 do—in
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.
De ccimal Binary
192 11000000
168
10
Page 1 of 4
Lab – Converting IPv4 Addresses to Binary
Decimal Binary
192.168.10.10 11000000.10101000.00001010.00001010
209.165.200.229
172.16.18.183
10.86.252.17
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?
Page 2 of 4
Lab – Converting IPv4 Addresses to Binary
IP Address 172.16.145.29
Subnet Mask 255.255.0.0
Network Address
IP Address 192.168.10.10
Subnet Mask 255.255.255.0
Network Address
IP Address 192.168.68.210
Subnet Mask 255.255.255.128
Network Address
IP Address 172.16.188.15
Subnet Mask 255.255.240.0
Network Address
IP Address 10.172.2.8
Subnet Mask 255.224.0.0
Network Address
Page 3 of 4
Lab – Converting IPv4 Addresses to Binary
Reflection
Why is the subnet mask important in determining the network address?
Page 4 of 4
Lab– Identifying IPv4 Addresses
Objectives
Part 1: Identify IPv4 Addresses
Identify the network and host portion of an IP address.
Identify the range of host addresses given a network/prefix mask pair.
Part 2: Classify IPv4 Addresses
Identify the type of address (network, host, multicast, or broadcast).
Identify whether an address is public or private.
Determine if an address assignment is a valid host address.
Background / Scenario
Addressing is an important function of network layer protocols because it enables data communication
between hosts on the same network, or on different networks. In this lab, you will examine the structure of
Internet Protocol version 4 (IPv4) addresses. You will identify the various types of IPv4 addresses and the
components that help comprise the address, such as network portion, host portion, and subnet mask. Types
of addresses covered nclude public, private, unicast, and multicast.
Required Resources
Device with Internet access
Optional: IPv4 address calculator
Step 1: Analyze the table shown below and identify the network portion and host portion of the
given IPv4 addresses.
The first two rows show examples of how the table should be completed.
Key for table:
N = all 8 bits for an octet are in the network portion of the address
n = a bit in the network portion of the address
H = all 8 bits for an octet are in the host portion of the address
h = a bit in the host portion of the address
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Publiic. Page 1 of 4
Lab– Identifying IPv4 Addresses
Network/Host
N,n = Network
IP Address/Prefix H,h = Host Subnet Mask Network Address
Step 1: Analyze the table shown below and identify the type of address (network, host,
multicast, or broadcast address).
The first row shows an example of how the table should be completed.
Page 2 of 4
Lab– Identifying IPv4 Addresses
Step 2: Analyze the table shown below and identify the address as public or private.
209.165.201.30/27
192.168.255.253/24
10.100.11.103/16
172.30.1.100/28
192.31.7.11/24
Step 3: Analyze the table shown below and identify whether the address/prefix pair is a valid
host address.
127.1.0.10/24
172.16.255.0/16
241.19.10.100/24
192.168.0.254/24
192.31.7.255/24
Reflection
Why should we continue to study and learn about IPv4 addressing if the available IPv4 address space is
depleted?
Page 3 of 4
Lab– Identifying IPv4 Addresses
Page 4 of 4