In: Computer Science
1) Suppose we have the following IP addresses for two different organizations, we have to create 5 networks having 30 hosts in it. Find first sub network ID, Fist address, Last address and Broadcast for each of the following given addresses?
a) 14.23.120.8
b) 252.5.15.111
Network ID |
First address |
Last address |
Broadcast |
14.23.120.0 |
14.23.120.1 |
14.23.120.30 |
14.23.120.31 |
14.23.120.32 |
14.23.120.33 |
14.23.120.62 |
14.23.120.63 |
14.23.120.64 |
14.23.120.65 |
14.23.120.94 |
14.23.120.95 |
14.23.120.96 |
14.23.120.97 |
14.23.120.126 |
14.23.120.127 |
14.23.120.128 |
14.23.120.129 |
14.23.120.158 |
14.23.120.159 |
We need 30 hosts per subnet and formula of IPv4 is 2^n where n is number of bits to borrow from default subnet mask where here default subnet mask is used for class c which is 255.255.255.0 where 256 hosts are available but we divide it into 5 subnet so we cant get that exact number as 2^n is applied so we will get 8 subnet 2^3=8 so we need 3 bits to borrow from 255.255.255.0 so new subnet mask will be 255.255.255.224 and bits are borrowed from binary so for clarification.
11111111.11111111.11111111.00000000 for 255.255.255.0
11111111.11111111.11111111.11100000 new subnet mask with 8 subnet
255.255.255.224
same calculation for 2nd network
Network ID |
First address |
Last address |
Broadcast |
252.5.15.0 |
252.5.15.1 |
252.5.15.30 |
252.5.15.31 |
252.5.15.32 |
252.5.15.33 |
252.5.15.62 |
252.5.15.63 |
252.5.15.64 |
252.5.15.65 |
252.5.15.94 |
252.5.15.95 |
252.5.15.96 |
252.5.15.97 |
252.5.15.126 |
252.5.15.127 |
252.5.15.128 |
252.5.15.129 |
252.5.15.158 |
252.5.15.159 |
if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and i can edit and change the answers if you argue, thanks :)