BITS-PILANI – DUBAI, Dubai International Academic City, Dubai, UAE
II Semester 2020-2021 Course Title : Computer Networks
Tutorial-8
1. You have been allocated a class A network address of 29.0.0.0. You need to create at
least 20 networks and each network will support a maximum of 160 hosts. Would the
following two subnet masks Work?
255.255.0.0 and or 255.255.255.0
Ans:
Yes both would work.
Mask 255.255.0.0 has 8 bits for the subnet and 16 bits for the host
8 bits would accommodate 28=256 subnets
16 bits would accommodate 216= over 64000 hosts
Mask 255.255.255.0 has 16 bits for the subnet and 8 bits of the host.
Have possible 28 -2 hosts =254 which is enough
2. You have been allocated a class B network address of 135.1.0.0 and and need to create 4
subnets each with around 200 hosts what is the easiest mask to use to satisfy the criteria?
Ans:
Easiest is to sub net on a byte boundary which would mean a subnet mask of
255.255.255.0
This would allocate 8 bits for the subnet and 8 bits for the host.
We need to accommodate around 200 hosts which requires 8 bits which we have.
We need 4 subnets which require 4 bits and we have 8 bits. So we have more than
enough.
3. You have been allocated a class C network address of 211.1.1.0 and are using the default subnet
mask of 255.255.255.0 how may hosts can you have?
Ans:
A class C address has 8 bits of the host which will give 28 -2 =254 hosts
4. Subnet the Class C IP Address 195.1.1.0 So that you have 10 subnets each with a maximum 12
hosts on each subnet. List the Address on host 1 on subnet 0,1,2,3,10
Ans:
Current mask= 255.255.255.0
Bits needs for 10 subnets =4 =24 =16 possible subnets
Bits needs for 12 hosts = 4 = 24 = 16-2=14 possible hosts.
So our mask in binary =11110000= 240 decimal
Final Mask =255.255.255.240
5. Fill the following table
6. Subnet the following IP Address 30.40.50.10/25 So that you have 16
subnets each with a maximum 6 hosts on each subnet.