Subnetting Problems
Subnetting Problems
Subnetting Problems
A) 30,30
B) 8,30
C) 8,8
Step 1: Determine the classful mask.
192 = Class C
Class C default mask = 255.255.255.0
Step 2: Determine how many additional subnet bits exist beyond the classful
boundary.
Since this is a class C address, we are only going to look at the fourth octet. Since the
decimal mask is 224, we know there were three subnet bits added (counting up
from the bottom of our cheat sheet).
Step 3: Determine how many host bits remain.
We are still only working in the fourth octet. Since three bits went to the subnet instep
2, we have five host bits (0's) remaining.
Step 4: Find the exponents of both subnet bits and host bits using the cheat sheet:
Subnet Bits = 2^3 = 8
Host Bits = 2^5-2 = 30
The answer is 8 subnets and 30 hosts per subnet
• You have been asked to create a subnet mask for
the 172.16.0.0 network. Your organization requires
900 subnets, with at least 50 hosts per subnet.
What subnet mask should you use?
Step 1: Determine how many subnet bits (1's), you have to add to the
classful boundary to cover the number of required subnets.
The IP address given was a class B address, making the first 16 subnet
bits static.
• Using the cheat sheet, find the exponent of 2 that is equal to or
greater than the number of subnets we require (900). We can
quickly see that 10 additional subnet bits will give us 1,024 subnets.
Make note of the corresponding subnet mask. In this case,
255.255.255.192. The third octet is eight 1's, and the four is two 1's.
We can count up from the bottom on our cheat sheet to get to 192.
Step 2: Confirm the number of remaining 0's will cover our required
hosts. In this case, there are 6 remaining 0's - 2^6-2=62, which is
more than enough for our host requirements.
Our subnet mask is 255.255.255.192. Giving us 1024 subnets and 62
hosts per subnet.
An organization is granted the block 130.56.0.0/16.
The administrator wants to create 1024 subnets.
• a. Find the number of addresses in each subnet.
• b. Find the subnet prefix.
• c. Find the first and the last address in the first
subnet.
• d. Find the first and the last address in the last
subnet
A) 2^n = 1024 Therefore, n = 10. The address given here is a Class B address,
therefore the default mask is /16. 10 bits are required for subnets and hence the
required subnet mask is /(16+10) = /26. In dotted decimal format, it shall be 192
and therefore, the subnet mask will be 255.255.255.192 . B) The remaining bits
must be used for the address in each subnet i.e. there will be 32 - 26 = 6 bits
available for the address component. Therefore, there will be a total of 2^6=64
bits available. Also, 2 bits per subnet cannot be allocated and hence, each subnet
mask will be able to maintain 62 valid addresses .
C)First address in subnet 1 = 130.56.0.1 Last address is subnet 1 = 130.56.0.62
The first address for the block can be calculated by ANDing the address
130.56.0.0 with the subnet mask /26 like below: 10000010 00111000 00000000
00000000 (130.56.0.0) This address can not be allocated, so we will consider the
next address: 10000010 00111000 00000000 00000001 (130.56.0.1) In the similar
manner, the last address that can be allocated before the broadcast address will be
130.56.0.62. D)First address in the 1024 subnet = 130.56.255.193 Last address in
1024 subnet = 130.56.255.254
• What is the network ID portion of the IP address
191.154.25.66 if the default subnet mask is used? What
if /24 is used