You are on page 1of 2

Name: Maaz Ali

Reg.No#46419

Assignment #1
Question#1
One of the IP addresses of a network range is 172.15.16.17 /20. Write down all the subnets of a
network. Which subnet the given IP address belongs to?

172.15.16.0/20 - First Subnet


172.15.16.16/20
172.15.16.32/20
172.15.16.48/20
172.15.16.64/20
172.15.16.80/20
172.15.16.96/20
172.15.16.112/20
172.15.16.128/20
172.15.16.144/20
172.15.16.160/20
172.15.16.176/20
172.15.16.192/20
172.15.16.208/20
172.15.16.224/20
172.15.16.240/20
...
... 172.15.255.240/20 - Last Subnet
 
172.15.16.17/20 is belong to the subnet 172.15.16.16/20, because 172.15.16.17/20 is within
172.15.16.16/20-172.15.16.31/20 before the next subnet which is 172.15.16.32/20.

Explanation:
From the first subnet, you just add +16 on the last octet which the zero (0), and keep repeating
the process until you reach 240.
 
(Why +16? Not +17 or +15, etc.? This is because /20 (number of '1s' in binary
11111111.11111111.11110000.00000000 or 255.255.240.0) the max octet is 255.255.255.0 or
255+0 = 256 bits. So, 256-240 = 16bits.)
 
Now, you cannot add +16 more because 240+16 is 256, and that is an invalid number, because
the maximum octet number is 255 only.
 
Ex. 255.255.255.0
 
So, the last subnet here will be 172.15.16.240/20. (above partial answer)
 
But since this is a Class B network, you need to keep repeating the process until you reach
172.15.255.240/20 from 172.15.16.0/20.
 
After the 172.15.16.240/20, the next one will be 172.15.17.0/20. And repeat the process by
adding +16, til you get the last subnet 172.15.255.240/20.

Question#2
One of the IP addresses of a network range is 10.1.5.6/11. Write down all the subnets of a
network. Which subnet the given IP address belongs to?

10.1.5.6/11 is a class A address.

/11 = 11111111.11100000.00000000.00000000 = 255.224.0.0

3 bits borrowed from the host


2^3 = 8 subnets created

21 bits remaining on the host portion.


2^21 = 2,097,152 IPs per subnet (Increments on the 2nd octet by 32)

Subnet 1 = 10.0.0.0/11
Subnet 2 = 10.32.0.0/11
Subnet 3 = 10.64.0.0/11
Subnet 4 = 10.96.0.0/11
Subnet 5 = 10.128.0.0/11
Subnet 6 = 10.160.0.0/11
Subnet 7 = 10.192.0.0/11
Subnet 8 = 10.224.0.0/11

You might also like