Networking - Subnetting - Discussion
Discussion Forum : Subnetting - Subnetting (Q.No. 4)
4.
What is the maximum number of IP addresses that can be assigned to hosts on a local subnet that uses the 255.255.255.224 subnet mask?
Answer: Option
Explanation:
A /27 (255.255.255.224) is 3 bits on and 5 bits off. This provides 8 subnets, each with 30 hosts. Does it matter if this mask is used with a Class A, B, or C network address? Not at all. The number of host bits would never change.
Discussion:
23 comments Page 3 of 3.
Narsing said:
9 years ago
Decimal to binary conversion:
255.255.255.255
128 64 32 16 8 4 2 1 2 to the power of 7 = 128.
2 to the power of 6 = 64 .
1 1 1 1 1 1 1 1
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255.
11111111.11111111.11111111.11111111
255 255 255 255
Eg: 192.168.10.10
192-- 128 64 32 16 8 4 2 1
------> 1 1 0 0 0 0 0 0
168 --> 1 0 1 0 1 0 0 0
10 ---> 0 0 0 0 1 0 1 0
10 ---> 0 0 0 0 1 0 1 0
That means where is the 1 is there will add those numbes, so will get decimal number.
255.255.255.255
128 64 32 16 8 4 2 1 2 to the power of 7 = 128.
2 to the power of 6 = 64 .
1 1 1 1 1 1 1 1
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255.
11111111.11111111.11111111.11111111
255 255 255 255
Eg: 192.168.10.10
192-- 128 64 32 16 8 4 2 1
------> 1 1 0 0 0 0 0 0
168 --> 1 0 1 0 1 0 0 0
10 ---> 0 0 0 0 1 0 1 0
10 ---> 0 0 0 0 1 0 1 0
That means where is the 1 is there will add those numbes, so will get decimal number.
Pratik said:
1 decade ago
Thanks @Nikhil but can you explain that binary conversions till 255?
Rahul said:
1 decade ago
Simple.
= 256-224 = 32.
And here first add is network add and last one is broadcast so we are supposed to subtract these two add from 32. So max host we will connect = 30.
= 256-224 = 32.
And here first add is network add and last one is broadcast so we are supposed to subtract these two add from 32. So max host we will connect = 30.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers