Calculating IPv4 Subnets - ANSWER - KEY
Calculating IPv4 Subnets - ANSWER - KEY
Background / Scenario
The ability to work with IPv4 subnets and determine network and host information based on a given IP
address and subnet mask is critical to understanding how IPv4 networks operate. The first part is designed to
reinforce how to compute network IP address information from a given IP address and subnet mask. When
given an IP address and subnet mask, you will be able to determine other information about the subnet.
Required Resources
1 PC (Windows 7 or 8 with Internet access)
Optional: IPv4 address calculator
© 2021 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 8
Lab – Calculating IPv4 Subnets
© 2021 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 8
Lab – Calculating IPv4 Subnets
© 2021 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 8
Lab – Calculating IPv4 Subnets
The following example shows a sample problem along with the solution for solving this problem:
Given:
Find:
© 2021 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 8
Lab – Calculating IPv4 Subnets
Finally, you need to determine the first host, last host, and broadcast address for each subnet. One method to
determine the host range is to use binary math for the host portion of the address. In our example, the last 12
bits of the address is the host portion. The first host would have all significant bits set to zero and the least
significant bit set to 1. The last host would have all significant bits set to 1 and the least significant bit set to 0.
In this example, the host portion of the address resides in the 3 rd and 4th octets.
Description 1st Octet 2nd Octet 3rd Octet 4th Octet Description
Step 1: Fill out the tables below with appropriate answers given the IPv4 address, original
subnet mask, and new subnet mask.
a. Problem 1:
Given:
Find:
© 2021 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 8
Lab – Calculating IPv4 Subnets
b. Problem 2:
Given:
Find:
c. Problem 3:
Given:
Find:
© 2021 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 8
Lab – Calculating IPv4 Subnets
d. Problem 4:
Given:
Find:
e. Problem 5:
Given:
Find:
© 2021 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 8
Lab – Calculating IPv4 Subnets
f. Problem 6:
Given:
Find:
Reflection
Why is the subnet mask so important when analyzing an IPv4 address?
- The subnet mask determines everything about the address. Subnet mask tells you the network,
number of host, and the broadcast address.
© 2021 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 8