Networking
Networking
First, you need to determine the number of host bits in the subnet mask.
Because you know that an IPv4 address consists of 32 bits, you can subtract the number
of bits in the subnet mask (28, in this case) from 32 to determine the number of host bits:
Number of host bits = 32 Number of bits in subnet mask
Number of host bits = 32 28 = 4
Number of assignable IP addresses in a subnet = 2h 2 where h is the number of host bits
in the subnet mask
Number of assignable IP addresses in a subnet = 24 2 = 16 2 = 14
From this calculation, you can conclude that each of the 192.168.1.0/28 subnets has
14 usable IP addresses.
--------------------------------------------------------------------------------------------------------------------5) Your company has been assigned the 172.20.0.0/16 network for use at one of its sites.
You need to use a subnet mask that will accommodate 47 subnets while simultaneously
accommodating the maximum number of hosts per subnet. What subnet mask will you
use?
Default subnet mask = 255.255.0.0
5 borrowed bits = 32 subnets
6 borrowed bits = 64 subnets
Subnet mask is now /22 = 255.255.252.0
--------------------------------------------------------------------------------------------------------------------6) Your company has been assigned the 172.20.0.0/16 network for use at one of its sites.
You need to calculate a subnet mask that will accommodate 100 hosts per subnet while
maximizing the number of available subnets. What subnet mask will you use?
Default subnet mask = 255.255.0.0
6 borrowed bits = 64 subnets
7 borrowed bits = 128
Subtract 7 from 32(because IPV4 is 32 bits) = 32 -7 = 25-bit subnet mask
Subnet mask is now /25 = 255.255.128.0
--------------------------------------------------------------------------------------------------------------------7) Based on your network design requirements, you determine that you should use a 26-bit
subnet mask applied to your 192.168.0.0/24 network. You now need to calculate each of
the created subnets. Additionally, you want to know the broadcast address and the range
of usable addresses for each of the created subnets.
Step 1: The subnet mask (in binary) is 11111111.11111111.11111111.11000000.
The interesting octet is the fourth octet because the fourth octet contains
the last 1 in the subnet mask.
Step 2: The decimal value of the fourth octet in the subnet mask is 192 (11000000 in
decimal).
Therefore, the block size is 64 (256 192 = 64).
Step 3: The first subnet is 192.168.0.0/26 (the value of the original 192.168.0.0 network
with the
borrowed bits [the first 2 bits in the last octet] set to 0).
Step 4: Counting by 64 (the block size) in the interesting octet (the fourth octet) allows
you to
calculate the remaining subnets, resulting in the following subnets:
192.168.0.0
192.168.0.64
192.168.0.128
192.168.0.192
--------------------------------------------------------------------------------------------------------------------8) How many assignable IP addresses exist in the 172.16.1.10/27 network?
Number of host bits = 32 27 = 5
Number of assignable IP addresses = 25 2 = 32 2 = 30
--------------------------------------------------------------------------------------------------------------------9) Your company has been assigned the 192.168.30.0/24 network for use at one of its sites.
You need to use a subnet mask that will accommodate seven subnets while
simultaneously accommodating the maximum number of hosts per subnet. What subnet
mask should you use?
Default subnet mask = 255.255.255.0
Borrowed bits = 3
New subnet mask = 255.255.255.224 = 192.168.30.0/27
--------------------------------------------------------------------------------------------------------------------10) The network address of 172.16.0.0/19 provides how many subnets and hosts?
Default subnet mask = 255.255.0.0
New subnet mask = 255.255.224.0
Prefix notation = /19
# of borrowed bits = 3
# of subnets = 23 = 8
# hosts = 213 2 = 8192 2 = 8190