You are on page 1of 7

10/3/2019

IP Addressing and Subnetting


Submitted to Ma’am Sara Sarwar
Submitted by Kamil Jawad
Roll No 17581556-034

UNIVERSITY OF GUJRAT
Question 1:
Default Masks
Class A Class B Class B
255.0.0.0 255.255.0.0 255.255.255.0
Question 2:
CLASS Address range
A 1.0.0.0 126.255.255.255
B 128.0.0.0 191.255.255.255
C 192.0.0.0 223.255.255.255
D 224.0.0.0 239.255.255.255
E 240.0.0.0 255.255.255.255

Range of First octet


CLASS Decimal Binary
A 126 01111110
B 191 10111111
C 223 11011111
D 239 11101111
E 255 11111111
Question 3:
IP Address Default subnet mask
179.65.225.4 255.255.0.0
222.35.20.18 255.255.255.0
111.7.80.0 255.0.0.0
Question 4:
The Internet Assigned Numbers Authority (IANA) reserves the following IP
addresses as private IP addresses.
 10.0.0.0 to 10.255.255.255
 172.16.0.0 to 172.31.255.255
 192.168.0.0 to 192.168.255.255
Question 5:
a. 129.65.225.4
(IP Address) 129.65.225.4 10000001.01000001.11111111.100
(Subnet Mask)255.255.0.0 11111111.11111111.00000000.000
NOT of Subnet mast 00000000.00000000.11111111.111
Broadcast Address 10000001.01000001.11111111.111
b. 211.35.20.18
(IP Address) 211.35.20.18 11010011.00100011.00010100.10010
(Subnet Mask)255.255.255.0 11111111.11111111.11111111.00000
NOT of Subnet mast 00000000.00000000.00000000.11111
Broadcast Address 11010011.00100011.00010100.11111
c. 180.47.115.6
(IP Address) 180.47.115.6 10110100.00101111.01110011.110
(Subnet Mask)255.255.255.0 11111111.11111111.00000000.000
NOT of Subnet mast 00000000.00000000.11111111.111
Broadcast Address 10110100.00101111.11111111.111
Question 6:
To find out how many bits are used for network id and how many bits are
used for network id we just convert subnet mast into bits and count the
number of 1’s as network id and number 0’s as host id.
a) IP Address: 135.65.225.4 Subnet Mask: 255.255.240.0
255.255.240.0 11111111.11111111. 11110000.00000000
Bit for Network id = 20bits
Bits for Host id= 12bits
b) IP Address: 210.35.20.18 Subnet Mask: 255.255.255.248
255.255.255.248 11111111.11111111.11111111. 11111000
Bit for Network id = 29bits
Bits for Host id= 03bits
c) IP Address: 190.47.115.6 Subnet Mask: 255.255.254.0
255.255.254.0 11111111.11111111. 11111110. 00000000
Bit for Network id = 23bits
Bits for Host id= 09bits
Question 7:
a) IP Address: 135.65.225.4 Subnet Mask: 255.255.240.0
135.65.225.4 10000111.01000001.11100001.00000100
255.255.240.0 11111111.11111111.11110000.00000000
Network Address 10000111.01000001.11100000.00000000
b) IP Address: 210.35.20.18 Subnet Mask: 255.255.255.248
210.35.20.18 11010010.00100011.00010100.00010010
255.255.255.248 11111111.11111111.11111111.11111000
Network Address 11010010.00100011.00010100.00010000

c) IP Address: 190.47.115.6 Subnet Mask: 255.255.254.0


190.47.115.6 10111110.00101111.01110011.00000110
255.255.254.0 11111111.11111111.11111110.00000000
Network Address 11010010.00100011.00010100.00010000
Question 8:
For allowing 150 hosts minimum 8 bits of host part should be available.
And for allowing 164 subnets 8 bits are minimal required. All of these will
allow to have up to 8 host’s bits and 8 network bits available. According
to the formula
2n >= required hosts For Hosts
n
2 >= required subnets For Subnets

Question 9:
1. Suppose you have a class C Network 208.94.115.0. Your task is to design a
subnet scheme so that we can create 16 Network segments (subnets) within
this Network. Each subnet should support 10-14 hosts.
2n >= 14
24 >= 14
16 > 14
So, n = 4.
a. How many bits would you use for the subnet ID?
28 bits are used for subnet ID.
b. How many bits would you use for the Host ID?
4 bits are used for Host ID
c. How many maximum possible subnets will be there?
24 subnets are possible because we have 8 bits for Host ID. So,
16 maximum subnets are possible.
d. How many maximum possible hosts will be there in each subnet?
24 subnets are possible because we have 8 bits for Host ID. So,
16 maximum hosts are possible per subnet.
e. Write down the Subnet Mask of your scheme.
208.94.115.11110000
255.255.255.240
f. Write down All the valid IP addresses
Valid IP’s

 208.94.115.0/28
 208.94.115.16/28
 208.94.115.32/28
 208.94.115..48/28
 208.94.115.64/28
 208.94.115.80/28
 208.94.115.96/28
 208.94.115.112/28
 208.94.115.128/28
 208.94.115.160/28
 208.94.115.176/28
 208.94.115.192/28
 208.94.115.208/28
 208.94.115.224/28
 208.94.115.240/28

g. The broadcast address of the First subnet of your scheme.

208.94.115.15 /28
Question 10:
2 Network Segment support 30 Hosts
4 Network Segment support 14 Hosts
8 Network Segment support 6 Hosts
14 Network Segment support 2 Hosts

Steps
1- Write IP
220.94.115.0
2- Convert to binary
220.94.115.00000000
3- Find n
2n >= max host value
2n >= 30
25 >= 30
N=5
4- Give bits to network
220.94.115.11100000
5- IP of this network
220.94.115.224
6- Subnet Mask of IP
255.255.255.224/27
7- Subnets
 220.94.115.0/27
 220.94.115.32/027
 220.94.115.64/027
 220.94.115.96/027
 220.94.115.128/027
 220.94.115.160/027
 220.94.115.192/027
 220.94.115.224/027
These are the network segments that can be created. Each subnet will
support up to 32 hosts.
To make the 28 segments we can use Class A or B for more segments

You might also like